Support

Home Forums Event Espresso Premium Automated promotion generation?

Automated promotion generation?

Posted: September 24, 2020 at 11:32 am


ComedieTriomphe

September 24, 2020 at 11:32 am

Hi,

I am trying to implement a ticket voucher for someone to gift to someone else. In the current implementation of EE4, my first idea was to use promotions to achieve this: every one who buys a ticket gift voucher gets a promotional code which they can give to their loved one, valid only once, and can use it on the website.
It’s a little tedious, though, to create a promo code every time sometimes buy a ticket voucher. Is there any easy way to create a ticket email template which is sent to the buyer with a generated promo code which is then automatically added to the promo codes list on EE?

If not, is there any alternative to creating ticket vouchers?

Thanks!


Tony

  • Support Staff

September 24, 2020 at 1:56 pm

Hi there,

This depends on your definition of easy.

It is possible to but you’ll need custom code to do it as we don’t have anything in Event Espresso that will create the codes automatically for you. The code itself wouldn’t be all that difficult but you’ll need a solid understanding of both PHP and EE’s model system to do is:

https://github.com/eventespresso/event-espresso-core/tree/master/docs/G–Model-System

Adding the promotion code to the Reg Approved email will need a custom message system shortcode, again not all that difficult but if you are comfortable with the above:

https://eventespresso.com/wiki/messages-system-how-to-add-custom-message-shortcodes/

The support post ‘Automated promotion generation?’ 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