Jump to:

2088 Posts in 1008 Topics by 455 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, Sean, frankmullenger, biapar, Willr, Ingo, Jedateach, swaiba, simon_w

Page: 1
Go to End
Author Topic: 984 Views
  • Futureweb
    Avatar
    Community Member
    232 Posts

    check out page Javascript problems Link to this post

    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

  • Futureweb
    Avatar
    Community Member
    232 Posts

    Re: check out page Javascript problems Link to this post

    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!

  • Futureweb
    Avatar
    Community Member
    232 Posts

    Re: check out page Javascript problems Link to this post

    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

    984 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.