Hi David,
Just wondering if its possible only to display products which are in the products map table. Have a niche site where I only want a few products displayed. Would still like all products to be imported to the database so I could use the product finder feature.
Hope this makes sense !!
Adrian
Hi Adrian,
There's no both straight forward and efficient solution to that i'm afraid. The best option I think would be a modification to the main site where any products not part of a product mapping are dropped; and then have a second "development" installation; pointing at the same feeds directory but importing all products; from where you can use the Product Finder feature; and then use the results to configure Product Mapping on the main site.
For the main site; to import only mapped products; look for the following comment around line 268 of includes/admin.php:
/* check product record for minimum required fields */
...and then insert the following code immediately BEFORE that line (i.e. right after the Apply Product Mapping block of code)
if (!in_array($importRecord["name"],$admin_importProductMappings))
{
return;
}
If you create your development installation in a sub-directory of the site; let's say /dev/ then in config.advanced.php of that installation change line 4 of as follows:
$config_feedDirectory = "../../feeds/";
You can then use the Database Tool to backup feed registrations on the main site; and then restore them in the /dev/ site to save you from having to re-register all feeds.
Hope this helps!
Cheers,
David.