Jump to content

JavaScript error in the "One page checkout"


Mando

Recommended Posts

Hello,

I just discovered a glitch on my shop's "one page checkout" page.

 

Normally, payment mods are only displayed when the "I agree with the terms blah blah" checkbox get checked, but on mine, nothing happens.

First reaction, checking Javascript errors with FireBug, and there, I got a message :

 

ReferenceError: resizeAddressesBox is not defined
	   resizeAddressesBox();					  

 

After investigation, there are two files, /themes/template_name/js/tools.js (where the function is declared), and /themes/template_name/js/order-address.js (where the function is called), which I haven't altered since the shop's creation.

 

On the other side, I have altered a lot the file /js/tools.js, can it come from there ? If yes, not cool, if no, where can it come from ?

 

Thanks

Edited by Mando (see edit history)
Link to comment
Share on other sites

Hello

 

You gave yourself the answer.

www.yoursite.com/js/jsTools must be override by jsTools in your theme,

but if www.yoursite.com/js/jsTools is broken, you run into trouble.

 

Make an html page linking to www.yoursite.com/js/jsTools and try to excute one function or checked if firebug consider it as broken.

 

Good repair

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...