WebsiteBaker Support (2.8.x) > Bakery Shop

Bakery 1.5.6: Pound symbol in Address Field?

(1/1)

cleverdesigner:
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.  :-)

instantflorian:
Hi,

look at modules/bakery/languages/en.php and add the needed characters in line 45:

--- Code: ---$MOD_BAKERY['ADD_REGEXP_CHARS'] = '/#';
--- End code ---

Then it should work...

BR
-instantflorian.

cleverdesigner:
Thank you, instantflorian.

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

Navigation

[0] Message Index

Go to full version