Price Range for Ticket Prices

Home Forums Ticket Products Event Tickets Plus Price Range for Ticket Prices

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #987182
    Lewis
    Participant

    we are trying to have our ticket prices listed in a range for our events, and we found this forum post: https://theeventscalendar.com/support/forums/topic/higest-ticket-price-shown-in-event-page/

    We’ve followed the instructions, but it’s still not displaying a range of the ticket prices. Not sure if we’ve done something wrong, or if that post has outdated information.

    We saw a comment on that particular post that says:

    You’ll also want to make a similar change in single-event.php and any views your using in your calendar:

    – list\single-event.php
    – day\single-event.php

    But we can’t find what to change in the single-event.php file as the original bit of code we are supposed to change doesn’t exist in that file.

    Can you help us out?

    Currently, our site can be found here:

    http://myinternetpartner.com/~brewhaha

    We purchased the events calendar pro plugin and the woocommerce tickets plugin.

    #987434
    Brian
    Keymaster

    Hi,

    Thanks for using our plugins. I can help out here.

    I retested the snippet in 3.10.1 and it is working for me.

    The coding does not always match the example I gave, but you want to look for this function:

    <?php echo tribe_get_cost( null, true ); ?>

    And replace it with this:

    <?php echo esc_html( get_tribe_woocommerce_tickets_price_range() ); ?>

    Cheers!

    #989000
    Lewis
    Participant

    Ok, so we’ve added the snippet you gave above to these two:
    – list\single-event.php
    – day\single-event.php

    And it sort of worked….the price now displays a range of ticket prices in the details, but not at the top when you first view the single event (It displays the Event Name, the date and time, and then a dollar amount – still only displaying one price there.) I took a screenshot and uploaded it, so you can see what I’m talking about here:
    http://myinternetpartner.com/~brewhaha/wp-content/uploads/2015/07/brewhaha-screenshot-pricing-for-ticket.jpg

    We think it may be the actual single-event.php (not list/single-event.php or day/single-event.php) that we have not altered at all. What code goes in there?

    #989347
    Brian
    Keymaster

    Hi,

    Glad it is moving forward.

    You can use that same coding anywhere.

    Look through the templates for this function:

    <?php echo tribe_get_cost( null, true ); ?>

    And replace that with the range function and that should show it.

    For single events that function is around line 39 of this template:

    the-events-calendar\src\views\single-event.php

    Cheers

    #994175
    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 ‘Price Range for Ticket Prices’ is closed to new replies.