WebsiteBaker Community Forum

WebsiteBaker Support (2.8.x) => Bakery Shop => Topic started by: cleverdesigner on October 14, 2010, 11:46:01 PM

Title: Bakery 1.5.6: Pound symbol in Address Field?
Post by: cleverdesigner on October 14, 2010, 11:46:01 PM
Bakery has been working fantastically for my little project site for a client; however I ran into an issue with special characters being placed in the order form.

Particularly the pound sigh "#" (for obvious reason) throws up an erro when a user enters it into the address field.

I tried popping in a '/ to see if it would pass, but no go.

I'm sure I'm missing a lang/config file that allows me to spec legal characters; as I can't be the only one running into this when people order.

Yeah, I *could* just put a "use 'no.' instead of # when ordering," but really? That's not good UX, forcing a user to comply to the mechanics.

Thanks, and be kind if I missed this and it's in the forums elsewhere.  :-)
Title: Re: Bakery 1.5.6: Pound symbol in Address Field?
Post by: instantflorian on October 15, 2010, 09:32:20 AM
Hi,

look at modules/bakery/languages/en.php and add the needed characters in line 45:
Code: [Select]
$MOD_BAKERY['ADD_REGEXP_CHARS'] = '/#';
Then it should work...

BR
-instantflorian.
Title: Re: Bakery 1.5.6: Pound symbol in Address Field?
Post by: cleverdesigner on October 15, 2010, 04:44:32 PM
Thank you, instantflorian.

Looked it up, found it, and made the change, works fine now.