How to add webhook secret on Woo channel

  • Last Created On Dec 12, 2023
  • 127
0 0

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:

  • Step 1. Go to config file: application/config/config.php  à add 'omni_sales/omni_sales_link/woo_product_delete' to $config['csrf_exclude_uris']

  • Step 2. Log in to woo store à select WooCommerce à Select Settings à Select Advanced à Select Webhooks

  • Step 3. Select Add webhook

  • Step 4. Enter the information à then select Save webhook button

    At Delivery URL, enter your domain + string “omni_sales/omni_sales_link/woo_product_delete"

  • Step 5. After saving, copy the secret and paste it into Webhook Secret

Views: 127

Recent Articles

  • Manage Products & Sync with WooCommerce
    1
  • How to Configure WooCommerce Integration...
    6
  • Trade discount - Voucher
    3
  • Trade discount - Promotion
    4
  • Automatic sync config
    5

Popular Articles

  • Warehouse
    1182
  • Item Settings
    945
  • General Accounting Settings
    883
  • Mapping Setup
    822
  • Inventory Receiving Voucher
    701