You are here:  » Brackets in Product Name

Support Forum



Brackets in Product Name

Submitted by paddyman on Sat, 2006-12-30 00:32 in

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

Submitted by support on Sat, 2006-12-30 09:41

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.

Submitted by paddyman on Sun, 2006-12-31 14:50

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

Submitted by support on Sun, 2006-12-31 16:20

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.

Submitted by paddyman on Thu, 2007-01-04 00:05

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

Submitted by support on Thu, 2007-01-04 09:35

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.

Submitted by paddyman on Thu, 2007-01-04 21:58

Hi David,

Email sent. You might take a look whenever you get a chance.

Many thanks

Paddyman