Author Topic: Bakery Doesn't Allow Commas in Address  (Read 1850 times)

Bakery Doesn't Allow Commas in Address
« on: September 07, 2011, 03:06:20 PM »
It appears that the Bakery Modules doesn't allow commas to be entered in address fields buy customers.

If a customer neees more lines, they tend to put house name and address in the same field

eg.

The Big House, 123 High Street

They then recieve an error message saying the address is not valid.

Is there a simple way of allowing commas without messing anything esle.

Thanks

jacobi22

  • Guest
Re: Bakery Doesn't Allow Commas in Address
« Reply #1 on: September 08, 2011, 12:01:04 PM »
Version?

In Vers 1.56 & 1.57 define some additional chars in your languages files, Row 45

Original in EN.php

$MOD_BAKERY['ADD_REGEXP_CHARS'] = '';

change to

$MOD_BAKERY['ADD_REGEXP_CHARS'] = ',&';

& for Entrys like "My Company & Co"

for some special chars you have to change the File view_confirmation.php

Row 130 from
$cust_name         =$invoice_array[3];
to
$cust_name         = htmlspecialchars_de code($invoice_array[3]);

Row 133 from
$address           = $invoice_array[11];
to
$address           = htmlspecialchars_de code($invoice_array[11]);

Row134 from
$cust_address      = $invoice_array[12];
to
$cust_address      = htmlspecialchars_de code($invoice_array[12]);

Row 135 from
$ship_address      =$invoice_array[13];
to
$ship_address      = htmlspecialchars_de code($invoice_array[13]);
« Last Edit: September 08, 2011, 12:36:32 PM by jacobi22 »

Re: Bakery Doesn't Allow Commas in Address
« Reply #2 on: September 17, 2011, 09:48:53 AM »
Thanks,

Your first suggestion/solution worked a charm!

Doc

Offline Bug

  • Posts: 237
Re: Bakery Doesn't Allow Commas in Address
« Reply #3 on: October 05, 2011, 07:07:40 AM »
I recently ripped out the whole form, i got so fed up by it and the almost impossible acts needed to add or delete fields

I still got some shitty thibg with validation in explorer, but it offers way better possibilities

 

postern-length