I’m using 4.10.2.p, and I just installed the Promotions add-on. I’ve added 7 promotion codes for the event I’m running – all for 100% discounts – and none of them appear to be working.
When I enter the promotion code on Step 1: Attendee Information, the price doesn’t change, but I don’t get an error message, either. When I enter it on Step 2: Payment Options, I get an error message that I need to complete the required CC fields. But that’s the whole point: it should be free, and I don’t want my guests to have to enter a CC thinking they’ll be charged.
I followed the setup and I haven’t added custom coding or anything to the pages. Here’s what I’m working on:
You’ll more than likely find that deactivating the Autoptimize plugin will fix this. The Autoptimize plugin has a “feature” that has the unintended effect of removing a localized script variable that the Promotions add-on requires. There’s probably a way to set up Autoptimize so it doesn’t do that and I can look into this.
In the meantime can you try deactivating Autoptimize to see if that fixes the issue?
You could try adding to the “Exclude scripts from Autoptimize:” setting on the Autoptimize plugin settings page. You add a comma then: wp-content/plugins/event-espresso-core-reg
The support post ‘Promotion codes won't apply’ 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.