Woocommerce Product Sync
Here are steps we follow to fulfilled needs:
- Parse Product XML feed and populate products into the database. The cron script will import products, images, featured images, product attributes.
- Parse Product Stock XML API which runs frequently to update Stock on daily basis.
- CRON set up in a round-robin fashion, We created a text file with pagination so when cron run then read from the last offset because XML feed is too big (around 1.5 GB with 30k products).
- The program will update 30k records in 4 days :) cron frequency set every 4 minutes and process 20 products :)
Git used for processing large XML files:
It was a superb experience to work with the TheFoxLab team, We have many obstacles due to the large XML feed but hopefully, everything works fine and getting support even after 2 months of work delivery when the supplier changed the feed attributes. Thanks.