Welcome Guest, Not a member yet? Register   Sign In
Cart class and product_name_rules - problem with national characters - please fix this
#1

[eluser]Unknown[/eluser]
Hi guys,

Im not sure im reporting this bug/update request in right place. I couldn't find CI project in EllisLab bug tracker.

I had some issue with product names in cart. I could not find reason, why I can't add some of my products to cart. After several minutes of testing i realized, that I can't add any product with non-latin characters in name.

I live in Poland and we have some additional, non-latin characters in our alphabet. I think russian, german, french, greek and many more programmers have same problem, so changing this will help many people.

The problem is here, in system/libraries/Cart.php:

Code:
var $product_name_rules = '\.\:\-_ a-z0-9'; // alpha-numeric, dashes, underscores, colons or periods

I think that should be changed to something more non-latin friendly, or remove these rules completely.




Theme © iAndrew 2016 - Forum software by © MyBB