Type
magento2-module
Magento 2 Webhook Extension
magento2-module
proprietary
None
None
None
None
None
Mageplaza Webhook for Magento 2 supports online store to send an API request via a webhook to a configurable destination (URL) when specific trigger events take place. Webhook a very useful and necessary tool which allows stores to update instant and real-time notifications.
IMPORTANT NOTE: This version of Mageplaza Webhook extension on Github is free as a contribution to the Magento community from Mageplaza. This package does not include the technical support. Should you need technical support for this extension, you will have to buy a license from Mageplaza. Click here to buy.
Q: I got error: Mageplaza_Core has been already defined
A: Read solution here
Q: How can I set time for abandoned cart?
A: This can be done easily from admin backend. The time will be calculated by hours. .
Q: I am using CRM system. Does this extension support to send data to this system?
A: Yes, absolutely. You just need to create hooks with specific trigger events you want to send data to CRM, then insert the CRM payload URL from the admin backend.
Q: If a request of a hook fails, how can I get notice?
A: Please enable the function “Alert on Error” and add the emails of recipients you wish.
Run the following command in Magento 2 root folder:
With Marketing Automation (recommend):
composer require mageplaza/module-webhook mageplaza/module-smtp
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy
Without Marketing Automation:
composer require mageplaza/module-webhook
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy
Mageplaza Webhook module quickly detect any updates of stores and send API requests to other servers or applications right when the specific events take place. The hooks can be created based on such events as below:
One of the typical features of Webhook is to allow sending the notice at the exact time when cart abandonment happens.
This is really practical in stores with Sales and Customer Care departments which need this information to keep up with customers’ behaviors.
Webhook is a supportive tool to CRM or Email Marketing systems used in e-commerce businesses. The data of customers or orders or any related updates is necessary to be sent instantly to these systems. Then, the stores can appoint quickly sales actions accordingly.
Status and error messages of hooks can be updated quickly via hook logs. Admin can quickly preview the response of Log ID easily.
Notices of error requests sent via emails.
Clean logs daily when the total reaches a specific number.
Resend replaced requests after fixing errors.
Login to the Magento Admin, choose Store > Settings > Configuration > Mageplaza Extensions > Webhook
.
Yes
to enable the module and No
to disable.Send to: Input email addresses to receive error notice.
Email Template: Follow Marketing > Email Templates > Add New Template
to create your wished templates. You can select Default Mageplaza Webhook Email Template(Default).
From the Admin Panel, go to Mageplaza > Webhook > Manage Hooks
.
Enable
to activate the hook.Add new
button to select Trigger events (New Order, New Product, Update Product, Delete Product,...) to Create New Hook và sending to other servers.Select Trigger events (New Order, New Product, Update Product, Delete Product,...) to create new Hook
Payload URL:
Select Insert Variable button to insert variable. For example: Method POST: https://domain.freshsales.io/api/leads, GET: https://domain.freshsales.io/leads/view/4000831345 or https://domain.freshsales.io/leads/view/4000831345 new_shipment={inserted variable}
Domain is the API account name. To sign up API account, follow the link: https://www.freshworks.com/freshsales-crm/. Find more about API here.
This is a required field, not allow leaving blank
Method : Select method to send HTTP request. If leave this blank, the default method will be GET
Authentication: Select the type of data access authentication you want from the server. When you submit a request, you typically have to include parameters to make sure the request has access and returns the data you want. You should leave this field blank to limit access.
- **Basic**: Display 2 Username and Password fields. Fill in the information to authenticate access.
- **Note**: In the process of being strictly enforced throughout the entire data cycle to SSL for security, authentication is transmitted over unsafe lines.
- **Digest**: Fill out some credentials below:
Headers: Click Add button to add the values of headers such as Name and Value to be seen as an API. For example, Name is Authorization, Value is Token token= “Your API Key”
Content-type: Select the content type to send the data. For Method GET you can leave this field blank.
Insert Variable
to select the variable.From the Admin Panel, go to Mageplaza > Webhook > Logs
This section will record Webhooks change logs such as Name, Status, Entity, Message, etc.
Click view to view the log details
You need to run the following command to install the library:
composer require liquid/liquid
From June 23th 2019, this extension is licensed under the MIT License, feel free to fork and develop this module.