WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.

Donate with PayPal buttonSpenden mit dem PayPal-Button

  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Bakery Shop »
  • Customer address error
  • Print
Pages: [1]   Go Down

Author Topic: Customer address error  (Read 5697 times)

Offline scratch

  • Posts: 9
Customer address error
« on: February 28, 2012, 12:46:41 AM »
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?
Logged

jacobi22

  • Guest
Re: Customer address error
« Reply #1 on: February 28, 2012, 09:00:50 AM »
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: [Select]
$MOD_BAKERY['ADD_REGEXP_CHARS'] = '[:print:]ÄÖÜäöüßéçèñàûôÊåúøÈËÍÎŒÓÔÙ??ÁÉÍÓÚáéíóúñÑC(ŠŽc(šž';
in view.php - Line 437 change this code from here

Original

Code: [Select]
$_POST = array_map('strip_tags', $_POST);

 to this new code

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

Offline svsanchez

  • Posts: 589
Re: Customer address error
« Reply #2 on: November 22, 2013, 06:29:40 AM »
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?
Logged

jacobi22

  • Guest
Re: Customer address error
« Reply #3 on: November 22, 2013, 01:18:46 PM »
maybe you need utf8-encodet chars, like this from the bakery version 1.70

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

Offline svsanchez

  • Posts: 589
Re: Customer address error
« Reply #4 on: November 22, 2013, 09:54:41 PM »
Hello Jacobi, I have my page encoded as UTF-8 but it's not working.
Logged

Offline svsanchez

  • Posts: 589
Re: Customer address error
« Reply #5 on: November 29, 2013, 03:16:07 AM »
Hello again, I am using Bakery V1.6.

I have this in my <head> section:

<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

I also changed the file to accept special characters:
$MOD_BAKERY['ADD_REGEXP_CHARS'] = 'áéíóúñÑ';

But Bakery still doesn't allow me to use characters like á, é, í...
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Bakery Shop »
  • Customer address error
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2