Hello David
Can be possible to display only product-mapping product in Search and Catergory Page
technoarenasol
Ok..Thanx David....Need "$config_nicheMode = FALSE" at time of adding product in product mapping ?
Correct;
When you add a new feed and need to map its products they have to get imported before you can map them, so:
1. Set $config_nicheMode = FALSE;
2. Import new feed
3. Do Product Mapping for new feed
4. Set $config_nicheMode = TRUE;
5. Import new feed
Cheers,
David.
--
PriceTapestry.com
David,
Just wondering if we can code in some type of on|off switch in the admin panel for niche mode?
I am using Niche mode and the FTP in, alter the file, reupload, import etc is wearing thin!
Not sure how hard, or if possible!
Hi Mark,
An easy option would be a separate Import Link that imports with Niche Mode "off". To do this, edit admin/index.php and look for the following code at line 154 (13/03A)
admin_tool("Import","feeds_import.php?filename=".urlencode($filename),TRUE,($feeds[$filename]["imported"] < $modified));
...and REPLACE with:
admin_tool("Import","feeds_import.php?filename=".urlencode($filename),TRUE,($feeds[$filename]["imported"] < $modified));
admin_tool("Import (Full)","feeds_import.php?nicheMode=0&filename=".urlencode($filename),TRUE,($feeds[$filename]["imported"] < $modified));
And then edit admin/feeds_import.php and look for the following code at line 16:
$filename = $_GET["filename"];
...and REPLACE with:
$filename = $_GET["filename"];
if (isset($_GET["nicheMode"]) $config_nicheMode = $_GET["nicheMode"];
Cheers,
David.
--
PriceTapestry.com
Hello,
just a remark, as I was confused first with switching off niche mode for new product mappings. I tried the following:
I map new products (enter title and fill the field Alternatives) and without switching off niche mode I reimport all feeds and the newly mapped products (the matching alternatives) are found in the files and are imported correctly. No need to switch off niche mode for this.
Sure, I cannot find the products in product search without importing the whole file without niche mode.
By the way, great script David!
Best
Sven
Hello Sven, and welcome to the forum!
Thank you for your comments!
Yes - that is consistent with how Product Mapping is applied; the only reason one might wish to temporarily disable niche mode when working on the site is if you wanted to use the Product Mapping Helper Tool to add to your existing mappings, that's all...
Cheers,
David.
--
PriceTapestry.com
Hi,
This is what Niche Mode is for - if you change config.advanced.php line 53 as follows:
$config_nicheMode = TRUE;
..then only products set-up in Product Mapping are imported.
Bear in mind however, when adding new merchants, you would need to temporarily disable this setting, import the new merchant, and then use the Product Mapping / Helper Tool to map the new merchant's products (otherwise they wouldn't be imported) and finally, re-enable niche mode again once product mapping is complete...
Cheers,
David.
--
PriceTapestry.com