Support

Home Forums Event Espresso Premium EE4 – Promotion plugin

EE4 – Promotion plugin

Posted: October 18, 2017 at 1:35 am


JacquesMivi

October 18, 2017 at 1:35 am

Hello,

With the promotion plugin activated, on the chechkout page, can I display the input “submit code” only if a code have been generated for this event ?

Thanks,


Tony

  • Support Staff

October 23, 2017 at 7:19 am

Hi there,

Sure you can, but you’ll need some custom code to do it.

You can pull current checkout object, then the registrations from that and loop through them all to pull the events. Assign the event ID’s to an arry and pull any promotions assigned to those event ID’s.

Then remove the filter users to add the promotion code submit button.

Take a look here for an example:

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

The support post ‘EE4 – Promotion plugin’ 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