channels/module-channels

Connector which allows to integrate with Channels service.

Installs: 2

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 1

Type:magento2-module

1.0.1 2020-04-03 14:44 UTC

This package is auto-updated.

Last update: 2024-04-22 03:54:39 UTC


README

Overview

Module integrates Magento with Channels service. It allows synchronizing Magento customer accounts into Channels contacts.

Compatibility

  • Magento >= 2.3
  • Supports both Magento Open Source (Community) and Magento Commerce (Enterprise)

Installation Instructions

Install extension using composer by using commands:

composer require channels/module-channels --no-update
composer update channels/module-channels
bin/magento setup:upgrade
bin/magento cache:flush

Configuration

To integrate module with the service:

  1. Log in to Magento 2 backend
  2. Navigate to Stores -> Configuration
  3. Navigate to Services -> Channels App tab
  4. Enable integration, fill API details
  5. Save

API account and API key can be found in Channels backend in "Integrations" tab.

Scheduling existing customers

CLI

Module provides a command to schedule existing customers for export. It can be used when module is integrated in store which already have customers. To do so, run a command:

bin/magento channels:customer:export

Admin interface

It's also possible to schedule multiple customers for Channels export directly in the admin interface.

In order to do this, navigate to customer grid, select customers and use "Export to Channels" mass action.

Note that recommended way is CLI, especially if store contains significant number of customers.

Technical approach

Customer account synchronization is scheduled to queue on each account or address change. Queue is configured to use database by default, however it can be adjusted to use RabbitMQ or any other queue backend supported by Magento.

By default, Magento processes database queue on CRON basis. CRON job runs once per minute, executes queue messages and sends scheduled contacts to the service.

To start queue processing manually:

bin/magento queue:consumers:start channelsCustomerExport --max-messages=1

Copyright

Copyright © 2020 Wojciech Naruniec (https://naruniec.me/).