Support

Home Forums Event Espresso Premium Display Early Bird Discount and Volume Discount in Regirstration

Display Early Bird Discount and Volume Discount in Regirstration

Posted: April 14, 2015 at 11:03 pm

Viewing 2 reply threads


Rosemarie Withee

April 14, 2015 at 11:03 pm

I want to display the Early Bird Discount and Volume Discount below the Multi Event Discount. I want to breakdown the discount for my customer.

On my conclusion i need to edit the shoppin_cart.php and edit the do_action(‘action_hook_espresso_shopping_cart_after_total’). The problem is i don’t where to find the do_action(‘action_hook_espresso_shopping_cart_after_total’). Can someone knows where to find that?
Display Discount


Rosemarie Withee

April 15, 2015 at 1:15 am

Display Discount


Dean

April 15, 2015 at 1:26 am

Hi,

The do_action(‘action_hook_espresso_shopping_cart_after_total’) is in the shopping_cart.php file, it is not a function, it is an action hook.

Here’s some info about action hooks:
https://codex.wordpress.org/Plugin_API/Action_Reference
http://www.nathanrice.net/blog/an-introduction-to-wordpress-action-hooks/

In brief, you would create your own function, in a plugin, or a site specific plugin, or even in the themes functions.php file and use the do_action to launch the function.

E.g. if you function is called My_Function, you would create an add_action like so:

add_action(‘action_hook_espresso_shopping_cart_after_total’, ‘My_Function’);

This would then fire the My_Function function when the code gets to the do_action.

You could also copy the shopping_cart.php file over to wp-content/uploads/espresso/templates and edit the copy there to make changes to it.

The “Multi Event Discount: You Saved” is the Volume Discount saving, and you can modify the text for this in the volume Discount settings page.

The Early Bird discount is noted in the ticket line already. Getting it to show in the total area may be complicated especially as it’s possible to have multiple events listed with and without early bird pricing.

Viewing 2 reply threads

The support post ‘Display Early Bird Discount and Volume Discount in Regirstration’ 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