You are here:  » Comnine Filters

Support Forum



Comnine Filters

Submitted by philstone on Fri, 2008-09-26 10:29 in

Hi Dave

was wondering if there is anyway it would be possible to comine filters. three of my merchants feeds come from one company, and all the filter ammendments are the same, just thinking it would save time doing it once instead of three times

look forward to hearing from you, thanks for looking at the code the other day for me!

phil

Submitted by support on Fri, 2008-09-26 11:10

Hi Phil,

There is the copyfilters.php script which you could use to do this if you have shell (SSH or Telnet) access to your server. After registering one of the feeds and setting up the required filters (say for merchantA.xml); you could then login and use the following commands:

$cd path/to/pricetapestry/scripts
$php copyfilters.php merchantA.xml merchantB.xml
$php copyfilters.php merchantA.xml merchantC.xml

(where $ is your command prompt)

This would copy the filters and their configurations from Merchant A to Merchant B and Merchant C...

Cheers,
David.