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.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Bakery Shop »
  • Bakery Doesn't Allow Commas in Address
  • Print
Pages: [1]   Go Down

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

Offline david doc watson

  • Posts: 88
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
Logged

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 »
Logged

Offline david doc watson

  • Posts: 88
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
Logged

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
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Bakery Shop »
  • Bakery Doesn't Allow Commas in Address
 

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