You are here:  » search and replace not working with & and - characters

Support Forum



search and replace not working with & and - characters

Submitted by mally on Mon, 2008-05-05 19:18 in

Hello David

I'm uploading a CJ feed for 1 merchant

the category in the feed is listed as

Computers & Electronics:Computers & Programming

When I import the feed it appears on my list of categories as below

Computers ElectronicsComputer Video Gaming

I tried doing a search and replace on my category replacing

"&" with "and"

also

":" with "includes"

( I never included the " in the search boxes)

I then reimported the feed but it makes no change, can you explain if I'm doing this wrong?

Cheers

/mally

Submitted by support on Tue, 2008-05-06 07:55

Hi Mally,

The issue here is that those characters are stripped (to make the content safe) before the filters are applied.

The easiest thing to do will be to permit those characters (& and :) by modifying the following code on line 172 of includes/admin.php:

$record[$admin_importFeed["field_category"]] = tapestry_normalise($record[$admin_importFeed["field_category"]]);

...as follows:

$record[$admin_importFeed["field_category"]] = tapestry_normalise($record[$admin_importFeed["field_category"]],"&:");

You will then be able to use the Search and Replace filter as expected...

Cheers,
David.