• My account
    • (X)Sign in

      I am a returning customer at TYPO3 Multishop

      Enter your username and password here in order to log in on the website:

      Forgot your password?

      Not yet customer of TYPO3 Multishop?

      • Order history
      • Automatic generated e-mail history
      • Track your Order
      New at TYPO3 Multishop
You are here:

Help by translating Multishop in your local language

On the following page you can help by translating Multishop in your local language:

https://translation.typo3.org/projects/TYPO3.ext.multishop/

Spanish:

https://translation.typo3.org/es/TYPO3.ext.multishop/pi1/locallang.xlf

The following language are already translated by our supporters:

  • Dutch
  • German
  • French

Form freezes if email address too long


Author Message
mirco2
Mirco
Multishop newbie
Topic creator
registered since: 06.05.2012
Posts: 4
Hi there,

I recently noticed that the address form freezes if the email address is too long.
It doesn't freeze suddenly. After one entered about 25 characters the forms' response time gets uncomfortably long while checking if the address is correct. Two or three characters later it feels like the form doesn't react anymore.

I'm using most recent version 2.0.31

Looking forward to your answers.
Best regards,
Mirco
Written on: 06. 05. 2012 [17:29]
mirco2
Mirco
Multishop newbie
Topic creator
registered since: 06.05.2012
Posts: 4
do you have any suggestions? icon_wink.gif
Written on: 13. 05. 2012 [11:32]
bas
Bas van Beek
Multishop guru
registered since: 12.05.2010
Posts: 644
The jQuery validate regex is giving troubles. Open checkout_address.php and find:

PHP
$regex = "/^[^\\W][a-zA-Z0-9\\_\\-\\.]+([a-zA-Z0-9\\_\\-\\.]+)*\\@[a-zA-Z0-9\\_\\-\\.]+([a-zA-Z0-9\\_\\-\\.]+)*\\.[a-zA-Z]{2,4}$/";


Change it to:

PHP
$regex = '/^[-a-z0-9~!$%^&*_=+}{\'?]+(\.[-a-z0-9~!$%^&*_=+}{\'?]+)*@([a-z0-9_][-a-z0-9_]*(\.[-a-z0-9_]+)*\.(aero|arpa|biz|com|coop|edu|gov|info|int|mil|museum|name|net|org|pro|travel|mobi|[a-z][a-z])|([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}))(:[0-9]{1,5})?$/i';
Written on: 13. 05. 2012 [17:49]
mirco2
Mirco
Multishop newbie
Topic creator
registered since: 06.05.2012
Posts: 4
Hi,

the problem remains even with your suggestion.
I chose a very basic regex, which fits my needs:

PHP
$regex = '/^[a-zA-Z0-9-_]+@[a-zA-Z0-9-_]+\.[a-zA-Z0-9-_]+$/i';


Thanks for your help!
Best regards, Mirco
Written on: 13. 05. 2012 [21:40]
bas
Bas van Beek
Multishop guru
registered since: 12.05.2010
Posts: 644
Always nice to see developers improving things. icon_smile.gif
Written on: 14. 05. 2012 [22:41]