Support

Home Forums Event Espresso Premium Limit promotion codes used per event?

Limit promotion codes used per event?

Posted: August 24, 2020 at 2:40 pm


LLSI

August 24, 2020 at 2:40 pm

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.

Is this possible?


Tony

  • Support Staff

August 26, 2020 at 5:00 am

Hi there,

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:

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

You must be logged in to reply to this support post. Sign In or Register for an Account

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3 Documentation for Event Espresso 4

Status: publish

Updated by  Tony 1 month ago ago

Topic Tags

Tagged: 

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!