You are here:  » How to import product only if product info has changed


How to import product only if product info has changed

Submitted by askmeoffer on Thu, 2018-04-05 06:09 in

Hi ,

I want to import product via api only when any info has changed

Please share code and implementation way

Thanks
Ratnesh

Submitted by support on Thu, 2018-04-05 07:10

Hello Ratnesh,

The import process of DELETE / INSERT is the easiest and most efficient way to ensure that the database stays consistent with the feeds - and bear in mind, when cron.php runs the zero down-time method is used whereby products are imported into a temporary table which is then quickly swapped over to become the live table after import, so your site is never offline at all during the process.

If you did however wish to keep the id field preserved on the products table which some users like to do in order to maintain association with other information you can move to an UPDATE / INSERT method instead, which is described in this thread...

Cheers,
David.
--
PriceTapestry.com