Support

Home Forums Event Espresso Premium Promotion Code for specific ticket

Promotion Code for specific ticket

Posted: October 8, 2019 at 8:20 am


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 ) );

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  Josh 1 week, 1 day ago ago

Topic Tags

Tagged: 

Notifications

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