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 5199 Views

Checkout email validation error

21 June 2011 at 3:21am Last edited: 21 June 2011 3:47am

Hi Team - when I attempt to checkout, the email validation wont accept any email address provided that has .co.nz, gives an error message: Bitte geben Sie eine gültige Email Adresse an. Any ideas why this is happening? Thanks.

Re: Checkout email validation error

21 June 2011 at 8:27am Last edited: 21 June 2011 8:27am

Hi xmark,

thanks for finding that bugger.

Sounds like an over-strikt and paranoid validation (sub-domains not allowed). We will look at it ;-)

Cheers
Ramon

Re: Checkout email validation error

21 June 2011 at 10:36am

Hi xmark,

we fixed this issue and pushed it into the actual tip of our public bitbucket repository.
You can get it by downloading the tip version from http://code.silvercart.org/customhtmlform/downloads.

The given error message should be in english, when i18n is enabled and set to en_US.

i18n::enable();
i18n::set_default_locale('en_US');

Cheers,
Sebastian

Re: Checkout email validation error

21 June 2011 at 11:03am Last edited: 21 June 2011 11:23am

Thanks for checking it out guys. On the language issue.. I have enabled en_US as you suggest but it has not worked so far.. will try the new tip version.
Update: new version working perfectly!
Now I need to get the English translations to work... still wont cooperate!

Re: Checkout email validation error

21 June 2011 at 11:53am

When I switch the i18n default locale from en_US to de_DE and back, the behaviour is like expected. All translations are switching to the correct language.

Are the german translations displayed for the hole installation or only for form field error messages?

Re: Checkout email validation error

21 June 2011 at 12:27pm

I have tried putting the i18 code in several places but no luck - where is the correct place? The german is coming through on the error messages only.
I'm also having difficulty getting the default currency to be NZ$... is this associated with the language issue? Cheers, Mark

Re: Checkout email validation error

21 June 2011 at 12:45pm

The right place to set the i18n settings is the /mysite/_config.php or your projects _config.php.

But the behaviour, that only error messages are displayed in german, could be a browser cache issue. Perhaps the browser cached some javascript of the older version of CustomHtmlForm?

You should be able to set the currency to NZ$ by setting the default currency in 'SilverCart Configuration' -> 'General configuration' (then choosing the DataObject displayed in TableListField).

The value of 'Default Currency' should be 'NZD'.
The currency of your products should be set to this currency, too (manually).
This could be a little bit more comfortable, but we are working on it ;-)

Re: Checkout email validation error

21 June 2011 at 1:02pm

Yeah I have the i18 code in the right place, but even in a new browser that has not seen this site, I still get german error messages..
I got the currency sorted thanks...