Hi David, hope all is well!
I couldn't find recent discussions on this topic, but think it may have been addressed.
Is there a way to allow use of "&" in both merchant and brand name..? I have tried this code in /includes/admin.php:
if ($admin_importFeed["field_merchant"])
{
$record[$admin_importFeed["field_merchant"]] = tapestry_normalise($record[$admin_importFeed["field_merchant"]],"&");
}
It still says merchant name contains invalid characters. Is there a workaround for this?
Thanks!
Hi,
The character would need to be permitted in admin/feeds_register_step2.php also. In that file (original distribution of Price Tapestry), look for the following code starting at line 24:
elseif( !ereg("^[0-9a-zA-Z\. ]{1,255}$",$_POST["merchant"]) )
{
widget_errorSet("merchant","merchant name missing or contains invalid characters");
}
...and REPLACE with:
elseif( !$_POST["merchant"]) )
{
widget_errorSet("merchant","merchant name missing");
}
That will permit all characters, but after doing so, double check for any consequential problems in generating merchant specific URLs, particularly if using clean URLs. If this does happen, the best thing to do is probably to email me an example page where invalid URLs are being generated as a result of this so that I can see exactly what is being generated, and perhaps also attach merchants.php and search.php and I'll check it out for you...
Cheers,
David.