Please enable JavaScript.
Coggle requires JavaScript to display documents.
VidaXL - Coggle Diagram
VidaXL
Use WooCommerce API
Recurring requests in WP plugin
Request for sync products (once per day) -
the XML gets the update only once per day
ML uses WC API to sync products in shop
Request for update WC orders (once per day) created in VidaXL
ML checks orders in VidaXL
ML updates WC order metadata
Request update stock (hourly) -
VidaXL updates XML hourly
ML uses WP plugin custom update stock endpoint for mass update
If a product has stock 0 trigger the sync product to remove/draft out of stock products
Non recursive functionality
New order webhook will be triggerd -
We do not need to update or delete orders from VidaXL since they do not support that
ML creates orders in VidaXL
Then updates order metadata using WC API
Shop pulling data from ML
Recursive functionality
Request to get new products (once per day)
Plugin will request data in batches and create the products
Deleted products (once per day)
Plugin will remove/draft listed products
Changed products ( depending on settings ) ( once per day )
The plugin will request data in batches and update the products that requries this
The plugin will request the stock calculated by ML from the data in the request ( product price range, categories selected ) and on the response, the plugin will update the products using mass update
Get orders status for already submitted orders
The plugin will update the orders in the shop in batches
Non recursive functionality
Categories creation ( when the synchronization starts )
Send order to ML to be sent to vidaXL
The plugin will check on a short interval of time the status of pending orders to save their vidaXL ID