WooCommerce and Zoho Inventory Integration


Introduction


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.

Features: The Plugin supports the following synchronizations.

  1. Real time synchronization of product catalog, inventory and orders from WooCommerce to Zoho Inventory.
  2. Sync WooCommerce Customers to Zoho Inventory Customers (Contacts).
  3. Sync WooCommerce Products to Zoho Inventory items, items groups and composite items.
  4. Sync WooCommerce Orders to Zoho Inventory Sales Orders.
  5. Sync WooCommerce Categories, Taxes and Variable Products with Zoho.
  6. Sync Zoho Inventory Customers to WooCommerce Customers.
  7. Developed with most secure Zoho Inventory REST APIs.

Installation #back to top

Upload via WordPress Admin

  1. Go to your WordPress admin area and click on Plugins » Add New.
  2. Click on Upload Plugin button and select zip file and click on the install now button.
  3. Once installed, you need to click on the Activate Plugin link to start using the plugin.

Upload via FTP Server

  1. Download the plugin’s source file (it will be a zip file). Next, you need to extract the zip file on your computer.
  2. Open the FTP client on your computer and connect to your website using the login credentials provided by your web host. Once connected, you need to access the path /wp-content/plugins/
  3. Upload the folder you extracted from the zip file to the /wp-content/plugins/ folder on your web server.
  4. Visit the WordPress admin area and click on the Plugins link in the admin menu. You will see your plugin successfully installed on the plugins page.
  5. Click on the Activate link below the plugin.
Get Installation Service

Configuration #back to top

Register Zoho Application to get Client ID and Secret

  1. Go to the site: https://api-console.zoho.com/ and Get started.
  2. Select Server based application.
  3. Enter the Client name, domain and redirect URL. redirect URL should be https://yourwebsite.com/wc-api/els-zoho-oauth
  4. Click Create.
  5. Note down your client ID and Client Secret

Manage Settings

Login to your WordPress admin area and go to WooCommerce > Settings > Zoho Inventory.

  1. Select Zoho Data Center. i.e. COM, EU, CN. You can find the user's DC from your browser URL of Zoho Account.
  2. Add Client ID and Client Secret which is generated while register your app in Zoho Account.
  3. Select Organization of your Zoho Inventory account.
  4. Enable/Disable synchronization for Zoho Inventory modules like Customers, Products and SalesOrders.

Setup WordPress Cron for old data synchronization

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.


Zoho Customers to WooCommerce Customers Sync Setup

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.

Custom Fields Mapping #back to top

If you want to sync custom fields from WooCommerce to Zoho then use following filter hook.

									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;
									}

                                

Support Desk #back to top

Please visit our profile page or ask question tech@elsner.com

Support for my items includes:
  • * Responding to questions or problems regarding the item and its features
  • * Fixing bugs and reported issues
  • * Providing updates to ensure compatibility with new software versions
Item support does not include:
  • * Customization and installation services
  • * Support for third party software and plug-ins
Before seeking support, please...
  • * Make sure your question is a valid plugin issue and not a customization request.
  • * Make sure you have read through the documentation before asking support on how to accomplish a task.
  • * Try disabling any active plugins to make sure there isn't a conflict with a plugin. And if there is this way you can let us know.
  • * Make sure to state the name of the plugin you are having issues with when requesting support via CodeCanyon.

Version History (Changelog) #back to top


                                        -----------------------------------------------------------------------------------------
                                        Version 1.0 - June 2nd, 2023
                                        -----------------------------------------------------------------------------------------

                                        - New plugin to sync Customers, Products, Orders with Zoho Inventory.