You are here:  » Characters in product name problem


Characters in product name problem

Submitted by london on Tue, 2006-06-27 16:07 in

There seems to be a problem with linking through to the product details page when the product name has a character. For example product name FLYMO 9232571-0 links to FLYMO-9232571-0.html but no product is found. I assume it has something to do with the '-' in the product name? Thanks

Submitted by support on Tue, 2006-06-27 18:16

Hiya,

The hyphen in the product name should have been stripped by the normalisation function during import, so the product should be in the database as "FLYMO 9232571 0". Would it be possible for you to drop me an email with a URL showing this particular example in your search results so I can try and see what's going on...(reply to your Magic Parser reg code email if you don't have my address)

Cheers,
David.

Submitted by london on Tue, 2006-06-27 20:15

David,

Thanks for getting back to me. After a little more investigation it seems as though the hyphen is not being removed from the product name when using the insert text before filter to create the product name. For some feeds, I'm using merchant name as the default product name when registering. Then I add a search and replace filter on this to remove it then add a text before filter to generate the product name I want by getting data from two other fields in the feed using %brand% %productcode% for example. I then end up with a product name like FLYMO 9232571-0.

Hope this makes sense.

Submitted by support on Tue, 2006-06-27 20:46

Ah yes, that does make sense!

The best way to deal with this without making code changes will be to add a final Search and Replace filter on the product name using search for "-", replace with " ".

Filters are applied in sequence, and any subsequent filter on the same field sees the "new" value of that field as affected by previous filters, so doing this should have the same effect as the normalise function.

Hope this does the trick...
Cheers,
David.