Home › Forums › Ticket Products › Event Tickets Plus › Price Range for Ticket Prices
- This topic has 4 replies, 3 voices, and was last updated 8 years, 8 months ago by Support Droid.
-
AuthorPosts
-
July 16, 2015 at 2:48 pm #987182LewisParticipant
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.phpBut 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.
July 17, 2015 at 9:07 am #987434BrianKeymasterHi,
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!
July 22, 2015 at 11:28 am #989000LewisParticipantOk, so we’ve added the snippet you gave above to these two:
– list\single-event.php
– day\single-event.phpAnd 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.jpgWe 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?
July 23, 2015 at 7:15 am #989347BrianKeymasterHi,
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
August 7, 2015 at 7:05 am #994175Support DroidKeymasterThis 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. -
AuthorPosts
- The topic ‘Price Range for Ticket Prices’ is closed to new replies.