Support

Home Forums Event Espresso Premium Exclude Event Category from Promotional Codes?

Exclude Event Category from Promotional Codes?

Posted: February 4, 2020 at 3:31 pm

Viewing 3 reply threads


melissa smith

February 4, 2020 at 3:31 pm

Can I create a Global Promotional Code but have it be excluded to be used on certain event categories in EE4?


Tony

  • Support Staff

February 5, 2020 at 11:58 am

Hi Melissa,

So, the official answer for this is no, we don’t have an option within the promotion code to exclude specific event categories.

However, with some custom development, what you could do is check the events in the cart during checkout and simply remove the Promotion field input from the payment options if any of the events in the cart are in a specific category (or multipe categories).

For example, this snippet removes the input field based on the ID of the tickets added to the cart:

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

Something similar could be done based on event category.

Would that work for you?


melissa smith

February 5, 2020 at 3:36 pm

Yes I believe that could work. I am just an artist so how would I implement this?


Tony

  • Support Staff

February 6, 2020 at 2:22 am

This is something we can create for you if you’d like to purchase a support token:

https://eventespresso.com/product/premium-support-token/

If you not you could try contacting a developer familiar with Event Espresso who may be able to build something for you, we have some listed here:

https://eventespresso.com/developers/event-espresso-pros/

Viewing 3 reply threads

The support post ‘Exclude Event Category from Promotional Codes?’ 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