You are here:  » Replace text on import

Support Forum



Replace text on import

Submitted by paddyman on Mon, 2009-12-28 17:06 in

Hi David,

Would like to replace Men's with Mens for all feeds on import. Can you advise, what I would put in includes/admin.php ?

Many thanks

Adrian

Submitted by support on Tue, 2009-12-29 10:43

Hi Adrian,

If you look for the following comment around line 186 of includes/admin.php...

/* apply user filters */

And then insert "global filter" code immediately before this point. For example, to replace "Men's" with "Men" in the name field, use:

$importRecord["name"] = str_replace("Men's","Mens",$importRecord["name"]);

(note that this will be applied before Product Mapping)

Cheers,
David.