Current version: v1.9.0
...
The module synchronizes customer data, order data and shopping cart information between Magento and Maileon. Magento is the primary system, which means that the customer information in Magento is considered the main information and changes to that data are synchronized with Magento. Conversely, only certain information is synchronized: the DOI confirmation and unsubscription. For order details and cart abandonments, this information is sent to Maileon as transactions (events) and can be used either to analyze data using contact filters or to activate a trigger mailing. All functions can be set via a configuration panel in Magento.
Install the Module
Below version 1.0.8
The first step is to copy the Maileon directory into the /app/code
directory of the Magento installation. If the app
directory doesn't already contain a code
subdirectory please create it. After this the module must be enabled using the following steps:
...
php bin/magento setup:upgrade
Configuration in Magento
The configuration can be found under “Stores” “Configuration” and, since version 1.8, can be set on Storeview level. This means, that for each Storeview, you can select an own API key, to use different Maileon accounts or you can select different DOI mail keys to send out DOIs in e.g. different languages.
...
Field name | Type | Description |
---|---|---|
|
Abandoned Cart Settings
Figure 7: Shopping Cart Abandonnment Mail Settings
...
Active: This enables the cart abandonment module. This module synchronizes abandoned cart events to Maileon.
...
string | Customer full name | |
| string | The changed field name (email, password) |
| string | Store id |
| string | Store name |
| string | Store email address |
| string | Store phone |
Transaction type magento_password_reminder_v1
Field name | Type | Description |
---|---|---|
| string | Customer full name |
| string | Customer account url |
| string | Customer password reset url |
| string | Store id |
| string | Store name |
Transaction type magento_password_reset_confirmation_v1
Field name | Type | Description |
---|---|---|
| string | Customer full name |
| string | Customer password reset url |
| string | Store id |
| string | Store name |
Transaction type magento_new_account_v1
Field name | Type | Description |
---|---|---|
| string | Customer full name |
| string | Notification type:
|
| string | Customer account url |
| string | Customer account confirmation url |
| string | Customer password reset url |
| string | Store id |
| string | Store name |
Order Related Email Notification Settings
...
Payment status change: If this option is enabled, it will send a transaction to Maileon in cases when a credit memo is created or updated for the order. Transaction type:
magento_order_creditmemo_v1
,magento_order_creditmemo_update_v1
Invoice: If this option is enabled, it will send a transaction to Maileon in cases when a invoice is created or updated for the order. Transaction type:
magento_order_invoice_v1
,magento_order_invoice_update_v1
Order status change: If this option is enabled, it will send a transaction to Maileon in cases when the order status changed. Transaction type:
magento_order_status_changed_v1
Shipment status change: If this option is enabled, it will send a transaction to Maileon in cases when a shipment is created or updated for the order. Transaction type:
magento_order_shipment_v1
,magento_order_shipment_update_v1
Transaction types magento_order_creditmemo_v1
, magento_order_creditmemo_update_v1
Field name | Type | Description |
---|---|---|
| string | Order id (incremental id) |
| timestamp | Order timestamp |
| string | Order status |
| float | Order grand total |
| float | Order tax amount |
| float | Order total without shipping cost |
| string | Order currency |
| string | Shipping method |
| string | Payment id |
| string | Payment name |
| JSON | Ordered items in json |
| string | Shipping address first name |
| string | Shipping address last name |
| string | Shipping address phone |
| string | Shipping address region |
| string | Shipping address city |
| string | Shipping address zip |
| string | Shipping address street |
| string | Billing address first name |
| string | Billing address last name |
| string | Billing address phone |
| string | Billing address region |
| string | Billing address city |
| string | Billing address zip |
| string | Billing address street |
| string | Order credit memo id |
| string | Order comment |
| string | Store id |
| string | Store name |
Transaction types magento_order_invoice_v1
, magento_order_invoice_update_v1
Field name | Type | Description |
---|---|---|
| string | Order id (incremental id) |
| timestamp | Order timestamp |
| string | Order status |
| float | Order grand total |
| float | Order tax amount |
| float | Order total without shipping cost |
| string | Order currency |
| string | Shipping method |
| string | Payment id |
| string | Payment name |
| JSON | Ordered items in json |
| string | Shipping address first name |
| string | Shipping address last name |
| string | Shipping address phone |
| string | Shipping address region |
| string | Shipping address city |
| string | Shipping address zip |
| string | Shipping address street |
| string | Billing address first name |
| string | Billing address last name |
| string | Billing address phone |
| string | Billing address region |
| string | Billing address city |
| string | Billing address zip |
| string | Billing address street |
| string | Order invoice id |
| string | Order comment |
| string | Store id |
| string | Store name |
Transaction type magento_order_status_changed_v1
Field name | Type | Description |
---|---|---|
| string | Order id (incremental id) |
| timestamp | Order timestamp |
| string | Order status |
| float | Order grand total |
| float | Order tax amount |
| float | Order total without shipping cost |
| string | Order currency |
| string | Shipping method |
| string | Payment id |
| string | Payment name |
| JSON | Ordered items in json |
| string | Shipping address first name |
| string | Shipping address last name |
| string | Shipping address phone |
| string | Shipping address region |
| string | Shipping address city |
| string | Shipping address zip |
| string | Shipping address street |
| string | Billing address first name |
| string | Billing address last name |
| string | Billing address phone |
| string | Billing address region |
| string | Billing address city |
| string | Billing address zip |
| string | Billing address street |
| string | Order comment |
| string | Store id |
| string | Store name |
Transaction types magento_order_shipment_v1
, magento_order_shipment_update_v1
Field name | Type | Description |
---|---|---|
| string | Order id (incremental id) |
| timestamp | Order timestamp |
| string | Order status |
| float | Order grand total |
| float | Order tax amount |
| float | Order total without shipping cost |
| string | Order currency |
| string | Shipping method |
| string | Payment id |
| string | Payment name |
| JSON | Ordered items in json |
| string | Shipping address first name |
| string | Shipping address last name |
| string | Shipping address phone |
| string | Shipping address region |
| string | Shipping address city |
| string | Shipping address zip |
| string | Shipping address street |
| string | Billing address first name |
| string | Billing address last name |
| string | Billing address phone |
| string | Billing address region |
| string | Billing address city |
| string | Billing address zip |
| string | Billing address street |
| string | Order shipment id |
| string | Order comment |
| string | Store id |
| string | Store name |
| string | Carrier code |
| string | Tracking popup url |
| string | Tracking code |
order.items
json content
Field name | Type | Description |
---|---|---|
| string | Product id |
| string | Product title |
| float | Product single price |
| float | Item total price |
| string | Product sku |
| integer | Item quantity |
| string | Product url |
| string | Product image url |
| string | Product categories list separated with , |
| string | Product short description |
Abandoned Cart Settings
Active: This enables the cart abandonment module. This module synchronizes abandoned cart events to Maileon.
Fallback permission: the permission a contact will get when added to Maileon. This should be set to none in most cases.
# Of Hours Before Sending Reminder: This is the number of hours after an open cart is considered abandoned.
Shadow Email: This email address also receives a copy of the cart abandonment email.
Email Override: If this field is set customers won’t receive cart abandonment emails. This address will receive them instead.
...
Transaction type magento_abandoned_carts_v2
Field name | Type | Description |
---|---|---|
Configuring Custom Forms
In order to submit other standard or custom data to Maileon, the following scheme must be used:
...
Example: custom_MySpecialField
Enhancing Transactional Data
In some cases, it is required to add custom data transactions. E.g. if you use a plugin, which allows customizing products with names, custom images, etc., and the image shall be displayed in the order confirmation mail, you need to pass this URL to Maileon. Or this case, the plugin provides a simple way to add data to the transactions by overriding class “Maileon\SyncPlugin\Helper\External\Data” from an external plugin.
...
Figure 9: Additional information attached to a transaction
Webhook Settings in Maileon
Changed parameters in version 1.8:
Since Magento 2.4, an email can be added as newsletter subscriber for each storeview, thus, the email can exist multiple times in the Magento newsletter module. As of version 1.8 of the plugin, configuration is based on storeview level, thus, an email can be added to different Maileon newsletter accounts based on its origin. Thus, when Maileon reports back a DOI confirmation or unsubscription, it needs to identify the correct storeview for a given contact. This is done by adding a new parameter “storeview_id”.
...
Figure 11: Webhook Settings for DOI-Confirmations
Changelog
30.08.2022 – v 1.8.9
Added payment method ID and name to order transactions
...