You are here:  » Product Mapping - Invalid Characters

Support Forum



Product Mapping - Invalid Characters

Submitted by paddyman on Mon, 2007-11-12 23:31 in

Hi David,

Hope all is well.

Using the new product mapping feature and looking at entering names containing a colon (:). Getting "product name contains invalid characters".

I see the code in productsmap.php

if(!ereg("^[0-9a-zA-Z\. ]{0,255}$",widget_posted($_POST["name"])))
{
widget_errorSet("name","product name contains invalid characters");
}

Any way of allowing the colon through, or is there a reason it shouldn't be used. Using colon in product names instead of a hyphen as hyphens don't seem to work in urls when rewrite is turned on.

Thanks

Adrian

Submitted by support on Tue, 2007-11-13 08:39

Hi Adrian,

The : characters is used by Price Tapestry's search mechanism to separate out components of the query, for example category:Electronics, so it would not be straight forward to allow it to feature in product names without lots of modification.

When setting up Product Mapping, remember to take the product name as it has previously been imported (i.e. after "normalisation"), where characters such as : will have been removed.

Cheers,
David.