You are here:  » Search and Replace Filtering with Parentheses

Support Forum



Search and Replace Filtering with Parentheses

Submitted by kend on Mon, 2008-02-04 17:50 in

Hi David,

I have a product name partially enclosed by parentheses, e.g. "BrandX (Blue) Product123" without quotes.

I can import the item into the Product table with or without the parentheses by modifying Admin.php line ~157 as follows:

$record[$admin_importFeed["field_name"]] = tapestry_normalise($record[$admin_importFeed["field_name"]],"\"\/\.\+()");

However, I need the name be filtered with Search and Replace to result in something like "BrandX Red Product123".

Whether I import the name with or without the parentheses, the search and replace filter cannot make the change for some reason. Having added hundreds of filters, I have no idea what's going on with this one!

How might I go about importing and filtering (search and replace) a normalized product name? Should I experiencing this problem, or is it possibly something I'm doing wrong?

Thanks!

Submitted by support on Mon, 2008-02-04 17:53

Hi Ken,

Because the filters are applied AFTER the normalisation, the text that you are SEARCHing should be from exactly as you see the product name having been imported into the site, rather than what is in the feed...

Cheers
David.

Submitted by kend on Mon, 2008-02-04 18:19

Ah! After normalization thanks - Got it sorted.