• 01 Oct 2021
  • Working period : 1 months, 24 days

Drag or to slide a image

We have created custom code to import Product data in WordPress Woocommerce Database. As per requirement, we have to import 2 Feed APIs. We also need to modify the price, category mapping, product image mapping, and other woocommerce product attributes.  Keep up to date product inventory, stocks, images, category wise products with load sharing algorithm by TheFoxLab which will run even in shared hosting. We highly recommended using dedicated hosting for your e-commerce website if more than 30k products. 

Here are steps we follow to fulfilled needs:
  1. Parse Product XML feed and populate products into the database. The cron script will import products, images, featured images, product attributes.
  2. Parse Product Stock XML API which runs frequently to update Stock on daily basis.
  3. 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).
  4. 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:  

https://github.com/prewk/xml-string-streamer
 
Technology used
  • TheFoxLab-technology-1620453197_be8eb499cc8b0b80cc08.png
    Wordpress
  • TheFoxLab-technology-1620452961_b634bbf08c824c9e5b1a.png
    Woocommerce
  • TheFoxLab-technology-1620453396_0a64c86c18349c26dfb7.png
    PHP
  • TheFoxLab-technology-1620455855_fb6fc59694f0e0e30454.png
    Ecommerce
Service offered