Welcome Guest, Not a member yet? Register   Sign In
Cart class adding "french named" items
#1

[eluser]Unknown[/eluser]
Hi,

When trying to add a new product to the cart with the following data:

Array
(
[id] => 1
[qty] => 1
[price] => 7.99
[name] => Livre électronique Maigrir l\'approche rebelle
[options] => Array
(
[type] => produit
)
)

The class outputs the following message in the log file:

An invalid name was submitted as the product name: Livre électronique Maigrir l\'approche rebelle The name can only contain alpha-numeric characters, dashes, underscores, colons, and spaces.

Is there any things I can do about it since all my products title will be french and will contain characters like these: é, à, ç, o.

Thanks!
Nicolas.
#2

[eluser]Aken[/eluser]
Extend the class or copy it and give it its own name, and modify/remove the regular expression that checks the name.




Theme © iAndrew 2016 - Forum software by © MyBB