Show hightest priced ticket price in case of multiple tickets

Home Forums Ticket Products Event Tickets Plus Show hightest priced ticket price in case of multiple tickets

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1104146
    marlieinthesouth
    Participant

    Hi,

    Hi, we’ve got a normal ticket, or a “reserve your spot” deposit. We need to show the hightest priced ticket (e.g 150€) price instead of “lowest to hightest “( e.g 50 to 150€).`

    I have use the <?php echo tribe_get_maximum_cost ( ) ?> you have given here: https://theeventscalendar.com/support/forums/topic/show-hightest-priced-ticket-price-instead-of-lowest/.

    It works but we lost the currency information (i.e it shows : 150)

    Also how can I change this on the event list page?

    #1104445
    George
    Participant

    Hey @Marlieinthesouth,

    Thanks for reaching out!

    Instead of just tribe_get_maximum_cost(), does anything improve if you use tribe_format_currency( tribe_get_maximum_cost() )?

    So instead of this:

    <?php echo tribe_get_maximum_cost(); ?>

    You would do this:

    <?php echo tribe_format_currency( tribe_get_maximum_cost() ); ?>

    I hope this helps!
    George

    #1104764
    marlieinthesouth
    Participant

    Hi @george,

    thanks it works great !
    In which should I do the same to change this on the event list by month ?

    I have also a second issue, although I had unchecked it in my event setting, the option” Don’t list me on the public attendee list” is showing on the event

    thanks for your help

    #1105605
    George
    Participant

    Hi there,

    You asked this follow-up question:

    In which should I do the same to change this on the event list by month ?

    I am not 100% certain what you mean, unfortunately, but I think you are trying to make this change in the month view too?

    The best way to make these changes is just to use a “Find in folder” feature of a text editor software, like Sublime Text. Use that feature to find all instances of the function tribe_get_cost(), and then replace that function with the code I shared above.

    In regards to the second issue, what you describe is not behavior I can recreate. We do not have a known bug of that behavior either.

    I would recommend opening a new thread on these forums that describes that problem. Be sure to include your ‘System Information’ when doing so, which you can learn to do here → https://theeventscalendar.com/knowledgebase/sharing-sys-info/

    Thank you!
    George

    #1111525
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Show hightest priced ticket price in case of multiple tickets’ is closed to new replies.