Support

Home Forums Event Espresso Premium "Finalize Registration" button not working

"Finalize Registration" button not working

Posted: October 26, 2014 at 9:49 am


Heather Stover

October 26, 2014 at 9:49 am

http://www.charmcitybasketball.com/events/12th-annual-thanksgiving-hoop-fest-2014/

Everything works until you try to process a credit card payment. It’s like the button is broken?


Dean

October 27, 2014 at 2:43 am

Hi,

There is a JavaScript error that is occurring whent he payment button is clicked.

This is most likely due to the fact that your site is running jQuery version 1.7.2 (which is old, the most recent one that comes with WordPress is 1.11.1).

Event Espresso requires a minimum of jQuery 1.8.3, though we highly recommend using the version that ships with WordPress (1.11.1).

The cause of this is your theme. It is either out of date and requires updating or is (for some bizarre reason) deciding to use 1.7.2 regardless of the ill effects it will have.

Methods to resolve this:

Update your theme
Contact the theme author to request a fix
Manually/via a web developer modify the theme to fix this.

Edit:
I downloaded the “latest” version of the framework your theme runs on (http://www.cherryframework.com/) and lo and behold it does indeed load jQuery 1.7.2.
(file reference: /includes/theme-scripts.php)

As such updating your theme will have little effect so its a case of either contacting them about this or manually editing the files.


Heather Stover

October 31, 2014 at 7:07 am

Manually editing what files though? Can I just update the javascript or do I have to go through the theme or? If I know exactly what I need to do maybe I can google the steps to do it. The support for this theme has always sucked.

TYIA


Tony

  • Support Staff

October 31, 2014 at 9:51 am

Hi Heather,

Unfortunately we can not support products that are not built by Event Espresso, so whilst we can provide code to force the theme to load the ‘correct’ version of jQuery we can not support issues that may come from that (for example if other scripts within the theme are expecting jQuery 1.7.2, they may then break also) for that you will need to contact the theme author.

If you open up the file @dean referenced from within the theme:

/includes/theme-scripts.php

On lines 8, 9 & 10 you’ll find this:

wp_deregister_script('jquery');
wp_register_script('jquery', PARENT_URL.'/js/jquery-1.7.2.min.js', false, '1.7.2');
wp_enqueue_script('jquery');

The first line deregisters the version of jQuery that is included with WordPress, the second line adds the custom version of jQuery for the theme and the final line enques that custom version.

Simply comment out the first two lines like so:

//wp_deregister_script('jquery');
//wp_register_script('jquery', PARENT_URL.'/js/jquery-1.7.2.min.js', false, '1.7.2');
wp_enqueue_script('jquery');

The theme should then load version 1.11.1

Does the finalize registration button then work?


Tony

  • Support Staff

October 31, 2014 at 10:20 am

Just to note, a better way to do this is to just de-register the version Cherry frame work enqueues and then enqueue your own. This removes modifying the theme itself and can be done through a separate plugin.

@lorenzo-orlando-caum has already created a site specific plugin that can do this, which is available here:

https://gist.github.com/lorenzocaum/c7bd26b229fa4db033fc

You then don’t need to modify the file mentioned above, just install that plugin and it does it for you. The note above concerning other scripts within the theme expecting jQuery 1.7.2 still applies, but this removes modifying the themes code from the equation at least.

Hope that helps.


Heather Stover

November 7, 2014 at 7:20 pm

The plugin worked beautifully! THANK YOU SO MUCH!

The support post ‘"Finalize Registration" button not working’ 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