Product variable name with commas truncated

General ShopSite user discussion

Product variable name with commas truncated

Postby b2tech » Tue Sep 11, 2012 6:24 am

Hello,

After upgrading to the latest version (11sp2r3) of shopsite I've noticed variable product names getting truncated if they have a comma in the name.

A number of products in our inventory have options listed in the name separated by comma. In addition, we have 'outlet' items that have a comma separated list of defects in the name.

One option I see to preserve the product names would be to dynamically replace the commas with colons before adding items to the cart but this isn't exactly ideal.

Is there a better way to handle commas in product names?

Thanks for any suggestions.
b2tech
 
Posts: 21
Joined: Tue Aug 03, 2010 2:51 pm
Location: MN

Re: Product variable name with commas truncated

Postby Jim » Tue Sep 11, 2012 6:46 am

When a form is submitted elements in the form are separated by a comma. So using a comma in a name could be construed by the cart to be two different parameters to the same element. I suspect that is what is happening, although I don't know why it would be just be happening since an upgrade to the latest version.

Can you give me an exact example of where this is happening and I'll try to reproduce it on a test store.

As for how to get around this, you might be able to use the html equivalent of the comma, "," (without the quotes).
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah


Return to User Forum

Who is online

Users browsing this forum: No registered users and 91 guests