I've got products in the datafeeds that are using characters like "(quote) and :(colon) that are normalized during the import.
I found this solution, http://www.pricetapestry.com/node/184, for leaving these characters in the description field. I've extrapolated this to the product name field as well. Some of the products use the "(quote) as a symbol for inches, as in a unit of measurement.
As far as importing, it works ok, but there is a little problem... the product names that are displayed on the site and searched as part of the $q don't match the ones in the database.
Is there a way to allow the " (quote) character in the product name other than commenting out the importrecordhandler? If not, what modification would be needed to have the names listed in the $q match the names in the database?
Hi,
The query is also normalised at the top of search.php, so anything you have done to permit additional characters during import will also have to be done here. The code is on line 4 as follows:
$q = (isset($_GET["q"])?tapestry_normalise($_GET["q"],":\."):"");
You can permit additional characters by adding them to the list of allowed characters in the call to tapestry_normalise() currently :\. in the above code. Remember to escape the quotes if you wish to permit this character, for example:
:\.\"
Hope this helps,
Cheers,
David.