Hello! We have a variety of promotion codes that we want attendees to be able to use in conjunction with each other, but we want to limit the total amount they can use per event to two.
For example, Attendee #1 purchases a ticket to an event and uses “PROMO1” and “PROMO2” to have multiple discounts applied. If that same attendee during the same cart session tries to apply “PROMO3” to the event, they are unable to.
Whilst this is likely possible, we don’t have an option to do it within Event Espresso itself so you’ll need something custom.
There are a few ways you can go about this, but I would look into using the FHEE__EED_Promotions__get_applicable_items__applicable_items filter, count all of the current promotions line items within that and if there’s 2 then return an empty array (meaning no applicable line items). That’ll give a generic ‘Promotion could not be applied to any events error’ but you could also filter that (from within the same function above) to return something specific in the case of 2 promotions using FHEE__EED_Promotions__get_applicable_items__no_applicable_items_notice.
If you are working with a developer the above should help point them in the right direction, if not this is likely something we could create for you using a support token:
The support post ‘Limit promotion codes used per event?’ 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.