Support

Home Forums Event Espresso Premium Surcharge, how to not include in price?

Surcharge, how to not include in price?

Posted: April 17, 2019 at 5:33 am

Viewing 7 reply threads


joyandraenton

April 17, 2019 at 5:33 am

The Tax is not included in the ticket price, which is the desired outcome. Rather it is calculated in the sub-total. But the surcharge changes the price. How can I make a surcharge not included in the price and sub-total after just like the tax?


Josh

  • Support Staff

April 18, 2019 at 8:12 am

Hi,

There’s a filter hook that allows for changing this. Here’s a link to a code example that does just that:

https://eventespresso.com/wiki/useful-php-code-snippets/#display-base-price

You can add the above to a functions plugin or, if available, into your WordPress child theme’s functions.php file.


joyandraenton

April 22, 2019 at 5:39 pm

Hi, Thanks. That works for the ticket selector on the Event page, but it doesn’t work on the Ticket Checkout page. The modified price shows on the Ticket checkout. Example, I’m adding a 3.75% surcharge to cover my credit card fees. But I don’t want this fee to modify the ticket price, rather it should be added on at the end with a line item sub-total, just like tax.


Josh

  • Support Staff

April 22, 2019 at 7:07 pm

Hi,

I’m afraid the Ticket checkout page display cannot be changed there since there are no filter hooks for changing the way the price is displayed. At some point that surcharge is included the ticket price (e.g. that’s the total that’s sent to the payment gateway).


joyandraenton

April 22, 2019 at 7:13 pm

Can I add small text on the Ticket Checkout that explains the extra cost? Just like the note that says “*price does not include taxes”


Tony

  • Support Staff

April 25, 2019 at 5:22 am

You could translate the above text to include more details, but it may start to look a little cluttered.

I can give you details on how to do that, but is there a specific location other than the above that you would like to add some text?


joyandraenton

April 25, 2019 at 8:16 pm

That should do it.


Tony

  • Support Staff

April 26, 2019 at 5:21 am

Then you need a function like this:

https://gist.github.com/Pebblo/8ca7e0ada54d6b615eff8b76ded48461

But your strings array would look something like:

$strings = array(
    '* price does not include taxes' => '{custom text to replace the text on the left here}',
    // Add some more strings here
);

You can add that to a custom functions plugin on your site, we have some documentation on creating one here:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/

Viewing 7 reply threads

The support post ‘Surcharge, how to not include in price?’ 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