sailthru / sailthru-magento2-extension
Sailthru Module for Magento
Installs: 39 435
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 38
Forks: 12
Open Issues: 6
Type:magento2-module
Requires
- php: ~5.6.0|~7.0.0|~7.1.3|~7.2.0|~7.3.0|~7.4.0|~8.0
- sailthru/sailthru-php5-client: 1.2.4
Suggests
- magento/module-catalog: ^101.*
- magento/module-customer: ^100.1.*
- magento/module-newsletter: ^101.*
- dev-master
- 2.5.4
- 2.5.3
- 2.5.2
- 2.5.1
- 2.5.0
- 2.4.4
- 2.4.2
- 2.4.1
- 2.4.0
- 2.3.1
- 2.3.0
- 2.2.4
- 2.2.3
- 2.2.2
- 2.2.1
- 2.2.0
- 2.1.0
- 2.0.4
- 2.0.3
- 2.0.2
- 2.0.1
- 2.0.0
- 1.5.2
- 1.5.1
- 1.5.0
- 1.4.1
- 1.4.0
- 1.3.0
- 1.2.0
- 1.1.0
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- dev-INt-958-update-magento-dependencies
- dev-INT-628-regular-upgrade
- dev-INT-186-magento2-purchase-error
- dev-Magento-Update-v2.4.3
- dev-magento-2.2.x
- dev-magento-2.3.2
- dev-support-233
- dev-develop
- dev-SAIL-20
- dev-FixAdminEmails
- dev-DataModeling
- dev-Patch3
- dev-AttributeDebug
- dev-1.1.0-dev
- dev-IN-562/IN-633
- dev-SegmentingTool
This package is auto-updated.
Last update: 2025-01-11 10:06:48 UTC
README
Sailthru Magento 2 Extension
Installation Instructions
- Get the module via composer
composer require sailthru/sailthru-magento2-extension
- Enable the module
bin/magento module:enable Sailthru_MageSail
- Upgrade the database
bin/magento setup:upgrade
(Depending on Magento mode, you may need to runmagento setup:di:compile
) - Go to Magento Admin > Stores > Configuration > Sailthru to configure. Visit the Sailthru Documentation Site for setup documentation.
Note: If sync'ing variant products with no visible individual URL, you should enable "Preserve Fragments" in Sailthru here.
Javascript Setup
The Sailthru MageSail module comes ready to use Sailthru's new PersonalizeJs javascript. To add page-tracking and gather onsite data like pageviews and clicks:
- Add your Customer ID (found here) to vendor/sailthru/sailthru-magento2-extension/view/frontend/web/spm.js
Please contact Sailthru to learn more about and enable Site Personalization Manager.
To define transactional template to be overriden by Sailthru
Declare new transactional email template in ./etc/template_config.xml
file that can be created within any module.
Each template definition in ./etc/template_config.xml
has four required parameters that are defined in ./etc/template_list.xsd
file.
Required parameters are:
- id - transactional email template identifier in Magento 2
- name - template title which will be displayed in
Admin Panel -> Stores -> Configuration -> Sailthru -> Transactionals -> General Transactionals
dropdown list - custom_template_source -
Core Config Path
to native Magento 2 transactional email template ID value. Is utilized when custom email template overrides default Magento 2 email template - sort_order - template sort order
After updating the ./etc/template_config.xml
file run php bin/magento cache:clean config
to clean Config cache.
To extend or change structure of a transactional email templates override config file use ./etc/template_list.xsd
file.
Use Magento Email Queue
Sailthru Magento 2 extension utilizes standard Magento queueing functionality.
- Go to Admin > Stores > Configuration > Sailthru > Messaging > Advanced
- Set flag "Use Magento Email Queue" to Yes and save configuration
- Make sure Magento cron is setup and running
- To test Sailthru messages queue consumer execute:
$ php bin/magento queue:consumers:start sailthru.email.send.consumer.db
OR
$ php bin/magento queue:consumers:start sailthru.email.send.consumer.amqp
RabbitMQ integration
Instead of standard database based queue broker RabbitMQ can be used
Refer to Magento Guide: RabittMQ Setup