Support

Home Forums Event Espresso Premium Promotion codes won't apply

Promotion codes won't apply

Posted: January 21, 2020 at 10:28 am

Viewing 4 reply threads


amachi

January 21, 2020 at 10:28 am

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:

https://amachicago.org/brand-smart/
Example promo code: Photographer

Any help is appreciated!


Josh

  • Support Staff

January 21, 2020 at 10:36 am

Hi,

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?


amachi

January 21, 2020 at 10:58 am

I deactivated it, and the promo codes are working! Hooray!

I appreciate you still looking into the issue so that I can still run Autoptimize, just in case.


Josh

  • Support Staff

January 21, 2020 at 11:29 am

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

Then you click Save Changes and Empty Cache


amachi

January 21, 2020 at 3:04 pm

That worked perfectly! Thank you so much!

Viewing 4 reply threads

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.

Event Espresso