Support

Home Forums Event Espresso Premium shortcode for adding in admin end in email settings of event espresso

shortcode for adding in admin end in email settings of event espresso

Posted: February 18, 2014 at 11:32 pm


Clear Group

February 18, 2014 at 11:32 pm

wordpress version:3.7.1
event espresso :3.1.36.4
upgraded one from 3.1.35.2 to 3.1.36.4
http://198.57.206.105/~ctmtstrk/

I want to display Total Amount Paid to Date: ( A$ ) in email template after payment done.
I saw that in email settings it uses [event_price] shortcode to display the price, but I also tried the one with [EVENT_PRICE event_id=1 number=0] , but it does not worked for me , I changed number=0 to 1 but nothing happened. Even if I directly add it to the email settings it appears as it is . So please do let me know shortcode to be added on admin section to get total amount paid.


Josh

  • Support Staff

February 19, 2014 at 12:30 pm

Hi there,

It turns out that there isn’t an amount paid email shortcode included in Event Espresso core. There is a way to add one and Dean wrote up some ready made code in a gist:

This code is a replacement for the replace_shortcode function in email.php and creates two new shortcodes, [amount_paid] and [amount_owed] which can be used in emails.

https://gist.github.com/Apina/df5f6d490c1fb35c5b18

Note that modifying core files like this isn’t generally recommended, so please back up your files first, and note that updates to the plugin will over write the code.

The support post ‘shortcode for adding in admin end in email settings of event espresso’ 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