Hi David
Just a quick question
Many of my merchants I use %BRAND% as the product name then use the Text After Filter to add say %MODEL% to make the %BRAND% %MODEL% product name, many products have eg.CEK or /XEU at the end of the product name and many don't, so when I use global filters to remove /XEU etc it doesnt work, but when the merchant feed is imported with %MODEL% as the Product name and use a merchant filter Text Before to add the %BRAND% to the Product name, the global filter does work, how would I make it that the global filter works for instances like this when I use a %BRAND% %MODEL% to produce a more accurate Product name?
Regards
Phil
Hi David
sorry not explaining this to well
Say I create a Product Name (%BRAND%)
Is it set at the minute that the Global Filters are applied before or after the Merchant Filters? and if so can merchant filters be applied before Global Filters?
It just seems Global Filters only work against the feed column I choose as Product Name when registering a feed for import, then in Merchant Filters I would be adding the filter text after %MODEL%,
So my Product Name is now %BRAND% %MODEL%
But any Global Filters I would apply to the Product Name field would not edit the %MODEL% part of the Product Name,
I hope this is explained a bit better this time...sorry! is this something that can be ammended?
regards
Phil Stone
www.buy24-7.net
Hello Phil,
Ah - OK, yes the order can be changed easily. In includes/admin.php, look for the following code at line 432:
$sql = "SELECT * FROM `".$config_databaseTablePrefix."filters` WHERE filename='".database_safe($admin_importFeed["filename"])."' OR filename='' ORDER BY filename,created";
It's the "ORDER BY filename" that makes global filters be applied first (filename is empty for global filters), so this can be changed by adding DESC to the ORDER BY clause. Try replacing the above line with:
$sql = "SELECT * FROM `".$config_databaseTablePrefix."filters` WHERE filename='".database_safe($admin_importFeed["filename"])."' OR filename='' ORDER BY filename DESC,created";
Hope this helps!
Cheers,
David.
--
PriceTapestry.com
Hi Phil,
If it varies by feed (whether the brand or model field is the one with the unwanted CEK or /XEU), I would make sure that you select the field that contains that text as the Product Name field, and then a Search and Replace global filter will remove CEK or /XEU (so 2 Search and Replace filters);and then for each feed either use Text After or Text Before with the other field as required...
Apologies if i've not quite understoood correctly...
Cheers,
David.
--
PriceTapestry.com