You can restrict the use of coupon codes to over a certain price point per ticket by editing line 33 of includes/admin-files/coupon-management/use_coupon_code.php to read:
if ( ! $espresso_premium || $event_cost < 40.00) {
of course, substitute in your own cut-off point for the 40.00 I put in. You can preserve the customization by copying that whole function into the custom files add-on before you make the change. You could go further and put the cutoff limit into the event meta and pull it in your custom file based on the event id, so you could have different cut-off points for different events.
Note that it is a greater than, not a greater than or equal to, because you don’t want a coupon to apply to an event with a cost of 0, so if you want the coupon to apply at $40, then make the cutoff for it to be $39.99. And if a coupon is not in the array, it’s cutoff defaults to 0.
Viewing 3 reply threads
The support post ‘Promo code restrictions’ 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.
Support forum for Event Espresso 3 and Event Espresso 4.