Support

Home Forums Event Espresso Premium Promotion codes stoped working after update to EE 4.10.1

Promotion codes stoped working after update to EE 4.10.1

Posted: September 30, 2019 at 12:14 pm


awalzer

September 30, 2019 at 12:14 pm

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.

This is an example: http://www.camarilloyoga.com/events/testpromo/


Josh

  • Support Staff

September 30, 2019 at 12:36 pm

Hi,

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?


awalzer

September 30, 2019 at 2:01 pm

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?


Josh

  • Support Staff

September 30, 2019 at 2:25 pm

Hi,

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:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/


awalzer

September 30, 2019 at 2:42 pm

Thanks. Will keep this handy if ACFP starts causing problems on EE4 pages.


awalzer

September 30, 2019 at 2:43 pm

You can close this thread now.

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.

Event Espresso