Because every time you sync, the system has to retrieve all
products from woo for comparison, this causes the server to be overloaded.
So I have optimized again, after synchronizing products
between CRM and Woo Store, all products between Woo and CRM will be linked
together through an intermediate table. After optimizing in this way, only the
first synchronization takes a long time, subsequent synchronizations of the
same product will be shortened.
If you do not add webhook secret, after deleting the
item on the Woo store, the connective in the intermediate table will not be
deleted, the system will determine that this product has been synced, so the
product will not be recreated on the woo store.
On the contrary, if you add webhook secret (product
deleted), after deleting the item on the Woo store, the connective in the
intermediate table will be deleted, the product will be recreated on woo when
resynchronization is performed ( by click on Product (Full)).
Steps to add secret webhook:
At Delivery URL, enter your domain + string “omni_sales/omni_sales_link/woo_product_delete"