Support

Home Forums Event Espresso Premium Is there any way to make a promo for a specific ticket in a specific event

Is there any way to make a promo for a specific ticket in a specific event

Posted: December 9, 2019 at 2:59 am

Viewing 1 reply thread


liatoss

December 9, 2019 at 2:59 am

Hello,

I have a specific question with regard our business as follows:

  • We organize an event which has several tickets, some for individuals, some for pairs (2 persons)
  • Now, we started a promo campaign “BLACKSEE”, which is focused only on 2 tickets from our event list: https://www.russiannights.ch/events/treasures-of-russia-ball-2020/#tickets_en
  • This promo is applicable only for Black See tickets from the list above…
  • Is there any way to reprogram the Promotion module, which checks at checkout process to which ticket the promo is applied and accept only for those 2 tickets, while it ignores the promo for other tickets?

Thank you in advance for any tips / ideas, Vlad.


Tony

  • Support Staff

December 9, 2019 at 5:08 am

Hi Vlad,

Whilst not officially support we do have a snippet that allows you to specific promotion ID’s that work on specific ticket ID’s here:

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

You set up the $applicable_promotion_tickets array on Line 5 to have the ID of the promotion as the key, then and array of ticket IDs

So lets say you promotion ID is 10 and the ID of the 2 tickets you want it to be available on is 22 and 26, your array would look like this:

$applicable_promotion_tickets = array(
    10 => array( 22, 26)
);

That promotion will then only apply to those tickets.

Viewing 1 reply thread

The support post ‘Is there any way to make a promo for a specific ticket in a specific 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.

Event Espresso