Still running WP 4.8 and just updated to to EE 4.10.1p plug-in from 4.7 (or so). After the database updates were done and all the relevant pages back out of Maintenance mode, the promotional discounts stopped working. I can still buy tickets at full price, but both the 100% and dollar off promotions won’t apply. I tried with both new and existing events. I also tried new and existing promotions. None of the 4 worked.
I checked your site and there’s some PHP code being output to the html of the page. This is the PHP code:
//* Removes conflict with Advanced Custom Fields Pro from Event Espresso 4.10.1 version add_filter('acf/settings/enqueue_datepicker', '__return_false');
The above may be interfering with the AJAX request that happens when a promo code is input and submitted. Can you fix the functions file so the code no longer outputs into the html of the site?
Removed the filter that was suggested by the 4.10.1p release notes – as we also have “Advanced Custom Fields PRO” plug-in installed.
Then tested both new and existing events, which appear to be working now.
So that line was interfering with the promotion code stuff. But how will it affect the Advanced Custom Fields Pro functionality?
The Event Espresso 4.10.1.p release notes do not include anything about an Advanced Custom Fields filter.
The line of code in of itself is OK to add to a functions file, and will be needed to avoid the conflict that happens when ACF pro overrides the datetime/ticket editor’s calendar scripts.
In this case though, the code on your site was added in such a way that the code couldn’t actually execute (or do anything). Instead, the code was printed to the the site’s header. I can advise to add the code into the site, but this time follow this guide that shows how to add code to a functions file within its own plugin:
The support post ‘Promotion codes stoped working after update to EE 4.10.1’ 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.