This guide will show you how to add a new lead to Zoho CRM when a user submits a Quform form. In this guide we’ll create a new plugin to contain the code needed for the integration to work.
Step 1 – create a WordPress plugin
Create a new folder named quform-zoho-integration and inside it create a file named quform-zoho-integration.php
Inside the quform-zoho-integration.php file add the following code.
Step 2 – install the Zoho CRM PHP client
Next you need to install the Zoho CRM PHP client using composer. You can do this on your computer or on the web server. In a terminal navigate to the directory of the plugin you created in Step 1, then run this command:
composer require cristianpontes/zoho-crm-client-php
This will install all required files into the vendor folder within the plugin. Upload the quform-zoho-integration folder to the web server at wp-content/plugins then go to the Plugins page within WordPress and activate the plugin Quform Zoho Integration and you’re done.
If the integration does not work, try temporarily enabling debug logging then submit the form again and check for an error message in the wp-content/debug.log file.