Support

Home Forums Event Espresso Premium Promotion Code Dollar Amount Discount Per Ticket for Qty Discounts

Promotion Code Dollar Amount Discount Per Ticket for Qty Discounts

Posted: August 12, 2019 at 4:40 pm


lisa burgess

August 12, 2019 at 4:40 pm

I’ve read through post in the forum dating back to 2015 where it said that having a dollar amount promo discount wouldn’t work for if you purchased more than 1 ticket.

Example: SAVE10 $10 off ticket purchase

If I add 2 or more tickets to the cart, it still only gives me a $10 discount.

Has there been any update to allow for the scope to be per ticket, rather than per event?


Josh

  • Support Staff

August 12, 2019 at 4:48 pm

Hi,

Yes, there are now filter hooks that allow for setting specific promotions to specific tickets, so that they’ll allow the scope to be per ticket.

A code example follows:

https://github.com/eventespresso/ee-code-snippet-library/blob/master/addons/eea-promotions/bc_ee_ticket_scope_promotions.php

To active this feature, you can add the above to a functions plugin. Then, you plug in your promotion ID and ticket ID(s). For example if your Promotion ID is 2 and the applicable ticket IDs are 30 and 35, your code snippet will start with:

$applicable_promotion_tickets = array( 2 => array( 30, 35 ) );


lisa burgess

August 12, 2019 at 5:05 pm

Hi Josh,

Thank you. So this means that every time I create a coupon code I would need to hard code the promotion ID into a custom functions plugin?

Is there no way to utilize the existing “scope” dropdown that is included on the promotions page to change it to ticket instead of event?

Hard-coding ID’s every time a coupon needs to be created would require someone with programming/ftp knowledge just to create a coupon, which is something a data entry person should be able to handle.

Am i missing something?


Josh

  • Support Staff

August 12, 2019 at 5:13 pm

Is there no way to utilize the existing “scope” dropdown that is included on the promotions page to change it to ticket instead of event?

That’s correct, there isn’t. The plugin’s user interface would need to change significantly because there currently isn’t a way, in the user interface, to connect a specific ticket to a specific promotions. The current UI only connects an event to a promotion. The filters allow for assigning specific tickets to promotions, but currently that would need to be done programmatically.

The support post ‘Promotion Code Dollar Amount Discount Per Ticket for Qty Discounts’ 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