Support

Home Forums Event Espresso Premium Promotion Code for specific ticket

Promotion Code for specific ticket

Posted: October 8, 2019 at 8:20 am

Viewing 1 reply thread


GoatCloud

October 8, 2019 at 8:20 am

This was covered here: https://eventespresso.com/topic/promo-code-for-specific-ticket-2/

However, a question arises. Does the Github code referenced to limit a promotion code to specific ticket(s) limit every promotion code to the specific ticket(s)?

I have multiple events (each with multiple tickets) and multiple promotion codes. I need to ensure that the ticket limitation on a promotion code applies only to a single promotion code.


Josh

  • Support Staff

October 8, 2019 at 9:22 am

Hi,

Yes, in the code example the one thing you edit is where you specify the promo code ID, followed by the specific ticket IDs.

So for example if your applicable promotion ID is 2, and the ticket IDs that can accept the promotion are 30 and 35, then line 5 of the example will be changed to:
$applicable_promotion_tickets = array( 2 => array( 30, 35 ) );

Viewing 1 reply thread

The support post ‘Promotion Code for specific ticket’ 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