View Full Version : Error Add to Cart
nguyen376810
04-12-2009, 07:06 PM
When you click Add to Cart button to add a product to cart if the product name has characters such as ầ Unicode characters , the cart landing lose formatting. How to cart understands unicode font? please just fix.
Thank you.
Ray Borduin
04-13-2009, 07:53 AM
You probably just need to use the correct charcode on your html page to support the characters you are using. Do you have a sample page demonstrating the problem?
nguyen376810
04-13-2009, 10:45 AM
When the product name with character ầ (code 109) will crash when click the button Add to cart.
My Site: http://testcart.netfast.org/index.php?mod=loctin&loctin=5
How do I fix this?
Thank you
Ray Borduin
04-13-2009, 11:33 AM
try adding the charset definition to the page with the add to cart button in the <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
nguyen376810
04-13-2009, 06:39 PM
All page was set charset = UTF-8 but still failed
Ray Borduin
04-14-2009, 07:57 AM
All it does is stores the values in the Session. I can't imagine why it would mangle it.
If you simply store and retrieve a session variable with these characters outside of eCart does it demonstrate the same problem?
I think at this point you need to debug exactly where the problem is occurring. Since it appears it happens when you add to the cart it is possible it is a general problem with storing those values in the session. I would test that first.
nguyen376810
04-15-2009, 07:24 PM
If I enter the characters "Ầ" uppercase when added to cart will not fail also enter lowercase will fail. When saving names in the database product SQL code of 2 characters is also different. So we must handle the input will be converted into characters or flowers at the end of the data will move from character to character usually flowers and then add it to the new cart? Or we must handle session variables to understand the characters lowercase it?
Ray Borduin
04-16-2009, 08:40 AM
I'm afraid I am not familiar with this problem, so I don't know the solution. You might try different character encoding settings besides utf-8.... anybody else have experience with this problem?
info369746
12-24-2009, 03:38 AM
Hello Ray,
Yes, I do experience the same problem. Mine is caused by the 'ç' character. The error happens on line 483 of WA_eCart_Definition_PHP.php:
$theItemArray = explode("§",$theCartString);
$theCartString is not "exploded" correctly and messes up the rest of execution.
I am going to try to solve the problem by converting special characters to HTML entities before feeding it to the database, but there is definitely a bug to solve in this portion of code with languages that use special entities.
Ray Borduin
01-05-2010, 07:00 AM
I have opened a support incident in order to investigate this issue further. It sounds like it could be a bug we will need to look into.
vBulletin® v3.8.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.