I'm working on a slightly different way of categorising things.
Before I update a feed (by a cron job, or through the admin), I need to export the product names and category names for that merchant to a temporary table.
Can you let me know any files where I'd need to add my export code?
Cheers!
Hi Matthew,
When importing a feed, whichever method (command line or via the admin interface), it all starts in the admin_import() function which begins on line 300 of includes/admin.php.
Therefore, this would be the place to insert your code. If you look down the function for the following line:
$admin_importFeed = $rows[0];
...then after this point you can use the $admin_importFeed array to access, for example, the merchant name which is the main key to the products table by using:
$admin_importFeed["merchant"]
Cheers,
David.