We are looking to modify the total price of an order. We want to be able to reduce the order value by a dynamic value and show this reduction on the page before the user pays.
Please could you let us know the action hook to allow us do this and if you have an example function with the available parameters that would be ideal.
If there is an alternative way e.g. by adding a dynamic discount on the fly rather than reducing the price then this would work too.
However, you can’t just modify the total to suit, you’ll need to add a line item(s) to apply a discount to the transaction. The above applies a surcharge but its similar for a discount just using negative values.
Is this discount applied based on something else on the registration form, or just applied on the event as a whole for a specific time etc?
Is this discount applied based on something else on the registration form, or just applied on the event as a whole for a specific time etc?
The discount is based on a custom function we are running on the ticket selection page. We are using an action hook to insert a form at the top that looks up the users email and checks if they previously purchased tickets for a different event. If so we are applying a custom discount based on the amount they paid for this previous event.
It is all around allowing people to re-book tickets due to previously cancelled tickets due to COVID.
Viewing 2 reply threads
The support post ‘Modify Order Total Price – Action Hook’ 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.