Posted: 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? |
|
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. |
|
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. |
|
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). |
|
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” |
|
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? |
|
That should do it. |
|
Then you need a function like this: https://gist.github.com/Pebblo/8ca7e0ada54d6b615eff8b76ded48461 But your strings array would look something like:
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/ |
|
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.