SilverCart Forum

We moderate this Forum and we're here to help. Have you already run a forum search to check if your problem has already been solved?

You can help us helping you by providing detailed error messages, screenshots and logfile entries.

SebastianRamon

Page: 1 , 2
Topic Checkout email validation error 5437 Views

Re: Checkout email validation error

21 June 2011 at 2:25pm Last edited: 21 June 2011 3:16pm

Seems to be a little tricky...
Well, let's check SilverStripes requirements. Do you have the following javascript requirements(?):

http://your-site.tld/customhtmlform/javascript/lang/en_US.js
http://your-site.tld/sapphire/javascript/i18n.js

When sapphire/javascript/i18n.js is missing, try

i18n::set_js_i18n(true);


in your _config.php. But this should be set in SS default.

customhtmlform/javascript/lang/en_US.js is registered in customhtmlform/code/CustomHtmlFormPage.php (onBeforeInit() on line 216).

EDIT: Corrected CustomHtmlForms JavaScript path

Re: Checkout email validation error

21 June 2011 at 2:39pm Last edited: 21 June 2011 2:52pm

OK I seem to be missing customhtmlform/javascript/en_US.js, but have sapphire/javascript/i18n.js.
Found the en_US.js file in folder 'Lang' and moved it up to 'javascript' and that seems to have worked!
All error messages now in english...

Re: Checkout email validation error

21 June 2011 at 3:16pm

Wow, I'm surprised!
My last post got an error. I really meant the directory customhtmlform/javascript/lang/en_US.js. This should be the right place and this is the directory, which is registered in CustomHtmlFormPage.php.
So, I'm confused that it works for you by putting the JS-files into another directory.

Re: Checkout email validation error

30 September 2011 at 10:49pm

Hi guys

I encountered the same problem, isn't it because the error messages are hard coded into the template file silvercart\templates\Includes\SilvercartMyAccountLoginOrRegister.ss , so the translation procedure isn't even looking at the login form validation messages

cheers

will

Re: Checkout email validation error

2 October 2011 at 2:33pm

Hi Will,

thanks a lot for you feedback. We will look into that on tuesday (tomorrow is a german holiday).

This thingy should not be hardcoded, maybe it managed to sneak in somehow ;)

Cheers
Ramon

Re: Checkout email validation error

5 October 2011 at 9:40am

Hi Will,

what version of SilverCart are you using? SilverCart 1.0?

Indeed, the labels of the seperate forms of the first checkout step for not logged in users were not localized until May 25th this year (one day after releasing SilverCart 1.0 ;-)).

The Problem should be solved by updating to 1.1 or to the tip version.

btw: Do you have problems with the form error/validation messages, too, or only with its labels?

Regards,
Sebastian

Re: Checkout email validation error

14 October 2011 at 12:43am

Hi guys

thanks for the swift response, you were both right, upgrading to the latest version solved the problems.

thanks

Will