Home Forums Event Espresso Premium Shortcode for price (without surcharge added)

Shortcode for price (without surcharge added)

Posted: January 1, 2014 at 1:54 pm

Angela Haddon

January 1, 2014 at 1:54 pm

Hi, my client would like to display the pre-surcharge price for an event. I’m currently using the following, but it displays the total price (including the surcharge):

<?php $x = do_shortcode(‘[EVENT_PRICE event_id=”‘.$event_id.'” number=”0″]’); echo number_format($x, 2, ‘.’, ”); ?>

Is there a way to exclude the surcharge from the display price? Thanks for your continued help and support.


January 2, 2014 at 12:04 am

Hi Angela,

In short, no. The shortcode uses a function (pricing.php- espresso_return_single_price) which calculates the price using the surcharge if one is available.

The only way I know to change this would be to use the Custom Files addon or a custom plugin to create a similar function but without the surcharge and a new shortcode to display it.

The support post ‘Shortcode for price (without surcharge added)’ 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.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  Dean 5 years, 8 months ago ago

Topic Tags


This topic is: not resolved
Do NOT follow this link or you will be banned from the site!