Hi David,
I have a feed with brackets (more product info) in the product name. These are removed after the feed is registered. Anyway of displaying them. I think this is done for URL purposes?
Thanks
Paddyman
Hi David,
Thanks for the quick reply. Tried the above and brackets appearing in the product name but when i click on the product getting
"Price search results for Product Name 123 (product not found)"
Product is "Product Name (123)"
Anything else I should be changing. Testing this locally on my PC.
Cheers
Paddyman
Ooops - my mistake - one further modification is required.
At the top of search.php you will find this code:
$q = (isset($_GET["q"])?tapestry_normalise($_GET["q"],":\."):"");
This needs to be changed to keep the brackets as well, as follows:
$q = (isset($_GET["q"])?tapestry_normalise($_GET["q"],"():\."):"");
That should do the trick...
Cheers,
David.
Hi David,
Just got a chance to try as you suggested, but still the same. Have modified both files, but still saying product not found. Have also registered feed after each modification. Any other ideas?
Cheers
Paddyman
Hi,
Could you send me a link to search results on your site with links to products with brackets and i'll take a look. It would also help if you could let me know the URL to the feed, for example:
http://www.yoursite.com/feeds/merchant.xml
...then i'll download it and try the mods on my test server. If you reply to your reg code for forum registration email is the easiest way...
Cheers,
David.
Hi David,
Email sent. You might take a look whenever you get a chance.
Many thanks
Paddyman
Hi,
By default, the brackets are removed by the normalisation function. You can allow them by making a change to includes/admin.php. Look for the following code on Line 157:
$record[$admin_importFeed["field_name"]] = tapestry_normalise($record[$admin_importFeed["field_name"]]);
...and change this as follows:
$record[$admin_importFeed["field_name"]] = tapestry_normalise($record[$admin_importFeed["field_name"]],"()");
You will notice an additional parameter added in the call to tapestry_normalise containing the brackets. This parameter is a string of additional characters to allow through...
Hope this helps,
Cheers,
David.