WebsiteBaker Support (2.8.x) > Bakery Shop

Customer address error

(1/2) > >>

scratch:
I'm having some customers unable to submit an order as they address fields reject addresses that use certain special characters, such as commas (,).

Any ideas how to solve this issue?

jacobi22:
Set "new" allowed Characters in the Langauage-File(s)  - Directory: modules/bakery/languages/

Use this, it works for the most chars (be carefull with FR.php, french use other characters)


--- Code: ---$MOD_BAKERY['ADD_REGEXP_CHARS'] = '[:print:]ÄÖÜäöüßéçèñàûôÊåúøÈËÍÎŒÓÔÙ??ÁÉÍÓÚáéíóúñÑC(ŠŽc(šž';
--- End code ---

in view.php - Line 437 change this code from here

Original


--- Code: ---$_POST = array_map('strip_tags', $_POST);
--- End code ---


 to this new code


--- Code: ---$_POST = array_map('stripslashes', $_POST);
        foreach ($_POST as $key => $value) {
        $_POST[$key] = stripslashes($value);
        }
--- End code ---

svsanchez:
Hello, for some reason this is not working for me. I added the line to my en.php file (site is using English language file only) and also modified the view.php file with the lines of code provided here. On other 2 sites I built, they worked by just adding $MOD_BAKERY['ADD_REGEXP_CHARS'] = 'áéíóúñÑ';

What else could be causing bakery to not accept special characters on names?

jacobi22:
maybe you need utf8-encodet chars, like this from the bakery version 1.70


--- Code: ---ÁÀÂÃÄÅáàâãä寿ÇçČčÐðÉÈÊËéèêëÍÌÎÏíìîïÑñÓÒÔÕÖØóòôõöøŒœÞþÚÙÛÜúùûüŠšßÝŸýÿŽž°
--- End code ---

svsanchez:
Hello Jacobi, I have my page encoded as UTF-8 but it's not working.

Navigation

[0] Message Index

[#] Next page

Go to full version