Support

Home Forums Event Espresso Premium Display price before surcharge

Display price before surcharge

Posted: February 17, 2014 at 5:42 am


Linda Dessau

February 17, 2014 at 5:42 am

Hello, I was searching the forum for help with my ticket price displays and found this: https://eventespresso.com/topic/multiple-ticket-price-display-defaults/

The suggestion solved the issue and now the event with multiple ticket prices is showing the lowest one by default.

Here is what I did:

In event_list_display.php you can replace:

<?php echo $org_options[‘currency_symbol’].$event->event_cost; ?>

with

<?php echo $org_options[‘currency_symbol’].do_shortcode(‘[EVENT_PRICE event_id=”‘.$event_id.'” number=”0″]’); ?>

However, after doing that it is displaying all ticket prices including the surcharge. So instead of $29 it is showing $32.77. Before I made this change it was displaying as $29.

Can someone tell me what I need to alter to correct this?

My events listing is at http://www.contentmasteryguide.com/events and the event with three ticket prices is the third one down (http://www.contentmasteryguide.com/events?ee=1).

Thank you!
Linda


Sidney Harrell

February 17, 2014 at 7:29 am

Hi Linda, it just so happens that I have some code to let you do that. It adds a new shortcode, EVENT_PRICE_SANS_SURCHARGE, which you would use just like the EVENT_PRICE shortcode.
You can add this code to one of the following:
1 – Your theme’s functions.php file. It may get overwritten the next time you update your theme.
2 – The EE custom files add-on in the custom_functions.php file.
3 – Use this blank plugin to hold the custom function.


Linda Dessau

February 17, 2014 at 7:37 am

Thank you so much Sidney! This is getting beyond my capability so I am going to put my web team on it from this point, but I have sent them your thorough instructions and I am so grateful to hear this is available.

Have a great day,
Linda


Dean

February 18, 2014 at 12:44 am

Please let us know if you require any further assistance.


Linda Dessau

February 18, 2014 at 5:26 am

I will, thank you so much!


Jonathan Wilson

February 20, 2014 at 3:29 pm

Since this topic is resolved, I am going to close it. If you have anymore questions or issues, please start a new topic and we will be happy to help there. 🙂

The support post ‘Display price before surcharge’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso