WooCommerce and Zoho Inventory Integration is only full catalog sync with Zoho Inventory which sync your WooCommerce store Products, Categories, Customers and Orders with Zoho Inventory's Items, Item Groups, Composite Items, Customers and Sales Orders. This plugin supports one way synchronization i.e. Your WooCommerce store (Products, Customers, Orders) to Zoho Inventory Sync. Zoho Inventory to WooCommerce sync will work only for Customers.
Login to your WordPress admin area and go to WooCommerce > Settings > Zoho Inventory.
If your store was active before this plugin installed and you need to sync old products, orders to Zoho then setup cron like this. First, you need to disable the script to be executed every time someone loads one of your pages. To do this, open the wp-config.php file in your main WordPress folder and add the following line before the "/* That's all, stop editing! Happy blogging. */" line:
define('DISABLE_WP_CRON', true);
Once you do that, you need to setup a real cron job and execute the wp-cron.php file with it. You don't want to trigger it too often - hourly should be fine for most of the websites. To do this, login to your cPanel and go to the Cron jobs tool located in the Advanced section.
Then, add the following command to be executed every 1 hour:
wget -q -O - http://yourdomain.com/wp-cron.php?doing_wp_cron >/dev/null 2>&1
Then click on Start Sync button as shown below. Do this only once automatic sync for new products, orders and customer is working.
Create a Webhook: Go to Settings > Automations > Webhooks > New Webhook. Add Module and URL https://[SITE_URL]/wc-api/els-zoho-contacts as per below screenshot.
Create a Workflow: Go to Settings > Automations > Workflow Rules > New Workflow Rule. Add Module and select webhook as per below screenshot.
add_filter( 'els_zohoi_request', 'els_zohoi_custom_fields', 20, 2 ); function els_zohoi_custom_fields($module, $data) { if($module == 'Products'){ // $data['your_custom_field_api_name'] = 'value'; } elseif($module == 'Customers'){ // $data['your_custom_field_api_name'] = 'value'; } elseif($module == 'Guest_Customers'){ // $data['your_custom_field_api_name'] = 'value'; } elseif($module == 'Sales_Orders'){ // $data['your_custom_field_api_name'] = 'value'; } return $data; }
Please visit our profile page or ask question tech@elsner.com
Support for my items includes:----------------------------------------------------------------------------------------- Version 1.0 - June 2nd, 2023 ----------------------------------------------------------------------------------------- - New plugin to sync Customers, Products, Orders with Zoho Inventory.