Support

Home Forums Event Espresso Premium EE3 Wildcard Coupons

EE3 Wildcard Coupons

Posted: April 26, 2016 at 9:39 am


Invex09

April 26, 2016 at 9:39 am

I have a client that is set in stone with EE3 for now (no chance of an upgrade in the near future) and they have the need for wildcard coupons. Basically they want to allow an entire organization to get a 10% discount if they provide the code ‘MYPROMO’ followed by their Org ID # (ie so final code would be ‘MYPROMO1234’).

I’m comfortable modifying EE3 source code if need be, I was wondering if someone could just point me in the right direction or give me any insights as to the best way to do this if someone has achieved something similar. I’d also be open to using a plugin obviously, just couldn’t find anything similar online.

Thanks in advance for any help!


Josh

  • Support Staff

April 27, 2016 at 12:38 pm

One direction you could go is set up the promo code as MYPROMO in the EE admin, which will be good for all the events. Then you add some JavaScript to the registration page that targets the promo code field that does a little regex that validates, then removes any of the extra ID stuff. This way, they’ll enter their code, e.g. MYPROMO1234, and EE’s script will accept the promo code.

The support post ‘EE3 Wildcard Coupons’ 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