Show highest price tickets on event and list

Home Forums Ticket Products Event Tickets Plus Show highest price tickets on event and list

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1168699
    Charles Anderson
    Participant

    For our events we have tickets and meal packages. The ticket is the most expensive item.

    I would like this page: http://annarborarms.com/events/category/training/handgun-1-basics/
    To show only the highest priced ticket for that event.

    Then the same on this page: http://annarborarms.com/event/handgun-foundation/

    I made a change based on a previous ticket I found to the single event.php file

    <!– changed from <?php echo tribe_get_cost( null, true ) ?> to <?php echo tribe_get_maximum_cost ( ) ?> –>
    <span class=”tribe-events-cost”><?php echo tribe_get_maximum_cost ( ) ?></span>

    However now it is showing the highest priced ticket from all events not that specific event.

    How do I fix this?

    #1169110
    Andras
    Keymaster

    Hello Charles,

    Thanks for reaching out! Let me try to help you with your question.

    When you make modifications to the template files, then they will affect all events, not olny a specific one. Unless you put in some code that check which event you are showing. Event ID is a tricky one to use as you would need to update the code every time you have a new event that you want to show like that. Using a special event category for those events would make more sense.

    For this you can use the tribe_event_in_category function.

    And any customization you do, I would recommend you do it in a child theme. Here are some articles that can get you started on that:
    https://theeventscalendar.com/knowledgebase/themers-guide/

    https://theeventscalendar.com/knowledgebase/template-overview/

    Does this help?

    Cheers,
    Andras

    #1179125
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Show highest price tickets on event and list’ is closed to new replies.