1999 Posts in 530 Topics by 433 members
E-Commerce Modules
SilverStripe Forums » E-Commerce Modules » check out page Javascript problems
Discuss about the various e-commerce modules available:
Ecommerce, SS Shop, SilverCart and SwipeStripe
Alternatively, have a look the shared mailinglist.
Moderators: martimiz, Nicolaas, Howard, Sean, Ryan M., biapar, Willr, Ingo, Jedateach, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 818 Views |
-
check out page Javascript problems

3 June 2011 at 12:24pm
Hi there,
I'm gettings there, but on my checkout page, i'm getting various javascript errors - namely 'initialiseForm is not defined'looking at the source code in my shop, i dont have any javascript links to "sapphire/javascript/Validator.js" which i think i need.
the file exists in my site, but where would I go about adding the code to make the page load this?
also - what other javascript files do I need load to make it run properly?cheers folks
-
Re: check out page Javascript problems

3 June 2011 at 1:50pm
ok, notice on commerce/code/CheckoutPage.php this section is set to block the validor script?
seems strange, instead of blocking it, if i load it, it works.Requirements::block(THIRDPARTY_DIR . '/behaviour.js');
Requirements::block(THIRDPARTY_DIR . '/prototype.js');
Requirements::block(THIRDPARTY_DIR . '/prototype_improvements.js');
Requirements::block(SAPPHIRE_DIR . '/javascript/Validator.js');however, the country drop down list doesn't work, when i click on it nothing happens!
-
Re: check out page Javascript problems

3 June 2011 at 9:51pm
i realised the problem with the dropdown was something to do with the template i'd chosen. resetttign to the standard theme corrected this problem
| 818 Views | ||
|
Page:
1
|
Go to Top |

