Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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

order.id

string

Order id (incremental id)

order.date

timestamp

Order timestamp

order.status

string

Order status

order.total

float

Order grand total

order.total_tax

float

Order tax amount

order.total_no_shipping

float

Order total without shipping cost

order.currency

string

Order currency

shipping.service.name

string

Shipping method

payment.method.id

string

Payment id

payment.method.name

string

Payment name

product.id

string

Product id

product.title

string

Product title

product.single_price

float

Product single price

product.total

float

Item total price

product.sku

string

Product sku

product.quantity

integer

Item quantity

product.image_url

string

Product image url

product.url

string

Product url

product.categories

string

Product categories list separated with ,

product.short_description

string

Product short description

shipping.address.firstname

string

Shipping address first name

shipping.address.lastname

string

Shipping address last name

shipping.address.phone

string

Shipping address phone

shipping.address.region

string

Shipping address region

shipping.address.city

string

Shipping address city

shipping.address.zip

string

Shipping address zip

shipping.address.street

string

Shipping address street

billing.address.firstname

string

Billing address first name

billing.address.lastname

string

Billing address last name

billing.address.phone

string

Billing address phone

billing.address.region

string

Billing address region

billing.address.city

string

Billing address city

billing.address.zip

string

Billing address zip

billing.address.street

string

Billing address street

Customer Related Email Notification settings

Image Added

  • Customer credentials changed (password and/or email): If this option is enabled, it will send a transaction to Maileon in cases where the customer changes their email address and/or password. Transaction type: magento_account_credentials_changed_v1

  • Customer password reminder: If this option is enabled, it will send a transaction to Maileon in case when the customer wants a password reminder. Transaction type: magento_password_reminder_v1

  • Customer password reset confirmation: If this option is enabled, it will send a transaction to Maileon in case when the customer wants a password reset. Transaction type: magento_password_reset_confirmation_v1

  • New account: If this option is enabled, it will send a transaction to Maileon in case when the customer create a new account. If Magento is configured to confirm the email address when creating a new account, it sends an email address confirmation notification, if not, it sends a welcome notification Transaction type: magento_new_account_v1

Transaction type magento_account_credentials_changed_v1

Field name

Type

Description

Abandoned Cart Settings

Figure 7: Shopping Cart Abandonnment Mail Settings

...

Figure 8: Transactiontype for Cart Abandonnments



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

...