You are here:  » Global Filter

Support Forum



Global Filter

Submitted by babrees on Sun, 2011-07-31 16:51 in

Hi David

Using v. 12/10b. I want to set up a global filter so that only pink products are imported, so whenever the word pink is in either the product name or description, or in both fields.

I realise I have to add or change some code to includes/admin.php below /* apply user filters */ but just not sure what it should be!!

TIA
Jill

Submitted by support on Sun, 2011-07-31 17:09

Hi Jill,

At the point you have identified, have a go with:

  if (stripos($importRecord["name"].$importRecord["description"],"pink") === FALSE) return;

(using stripos makes the test case insensitive)

Cheers,
David.
--
PriceTapestry.com

Submitted by babrees on Sun, 2011-07-31 21:09

Thanks David! Will set it up tomorrow :)

---------
Jill