Bakery Doesn't Allow Commas in Address

Bug

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

david doc watson

Thanks,

Your first suggestion/solution worked a charm!

Doc

jacobi22

#2
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_decode($invoice_array[3]);

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

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

Row 135 from
$ship_address      =$invoice_array[13];
to
$ship_address      = htmlspecialchars_decode($invoice_array[13]);

david doc watson

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