Display min-max price for linked events

Home Forums Calendar Products Events Calendar PRO Display min-max price for linked events

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1134161
    André Gualhanone
    Participant

    Is there any way to display min-max event price (example: $ 40 – $ 120) when publishing external events (linked) that have tickets not being sold through event ticket plus?

    Thanks.

    #1134457
    Geoff
    Member

    Hi André and happy Friday!

    I think that depends on how the event price is being imported to The Events Calendar. For example, if the price range of the imported event is imported as the cost field for the event, then you could use both the tribe_get_minimum_cost() and tribe_get_maximum_cost() functions to display the range in a way like this:

    <?php echo tribe_get_minimum_cost() . ' - ' tribe_get_maximum_cost(); ?>

    Depending on the configuration, you might need to wrap that line of code in a conditional statement that checks whether the event has tickets or not before displaying that range, and we have the tribe_events_has_tickets() function for that.

    Does this make sense and will it help you get started? Please let me know. 🙂

    Cheers,
    Geoff

    #1140727
    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 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Display min-max price for linked events’ is closed to new replies.