Support

Home Forums Event Espresso Premium EE4 Promotion – Notification promotion use on ticket

EE4 Promotion – Notification promotion use on ticket

Posted: October 31, 2017 at 9:56 am


JacquesMivi

October 31, 2017 at 9:56 am

Hello,

Can I use a shortcode template to notify that a promotion have been use to buy a ticket ?

Thanks a lot,


Tony

  • Support Staff

November 1, 2017 at 5:34 am

Hi there,

You can use the [PROMOTIONS_USED] shortcode within the current messages to display which promotion was used during the registration.

However if are looking to send a message specifically for stating that a promotion code has been used that’s not something we have available so would require custom development.


JacquesMivi

November 2, 2017 at 8:02 am

Its almost perfect.
Do you have the same shortcode without the promotion code himself.

Actually its : Titre of the promotion [promotion code]
We would like : Titre of the promotion

In fact we are creating a code for each user, and for the security we don’t want to share it by email to the admin of the event.

Thanks,


Tony

  • Support Staff

November 2, 2017 at 10:11 am

Hi there,

No, we don’t currently have another shortcode for the promotions add-on.

However, before the promotions add-on added its own shortcode from within the add-on itself, I wrote a custom function to add a [PROMO_CODES_USED] to EE here:

https://gist.github.com/Pebblo/dc011b43b461064a831d

Then remove the code used to generate that output:

https://gist.github.com/Pebblo/dc011b43b461064a831d#file-tw_add_promo_shortcode-php-L42-L46

And just have $promo_codes[] = $promo_row[ 'Price.PRC_name' ]; within the foreach loop.

Then use that shortcode in place of the default one.

I’d recommend changing the shortcode from that function to something else, for example [PROMOTIONS_USED_CUSTOM] (change lines 12 and 21) so that its obviousl which code to use.

The support post ‘EE4 Promotion – Notification promotion use on ticket’ 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.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  Tony 1 year, 9 months ago ago

Topic Tags

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!