Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-sales domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the better-click-to-tweet domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-amazon domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-stats domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
Display price before surcharge | Event Espresso - Staging Server

Support

Home Forums Event Espresso Premium Display price before surcharge

Display price before surcharge

Posted: February 17, 2014 at 5:42 am

Viewing 5 reply threads


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: http://staging.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

  • Support Staff

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

  • Support Staff

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

  • Support Staff

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. :)

Viewing 5 reply threads

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 - Staging Server