Magento 2 MSG91 Campaign

Table of Contents

  1. Extension Installation Guide
  2. Configuration
  3. Manage and Create Campaign Rules

 

  1. Extension Installation
    • For Magento Marketplace Customers
      • Find the Composer name and version of the extension in the extension’s composer.json file.
      • Login to your SSH and run:
        • composer require meetanshi/magento-2-msg91-campaign --ignore-platform-reqs
    • Enter your authentication keys. Your public key is your username; your private key is your password.
    • Wait for Composer to finish updating your project dependencies and make sure there aren’t any errors.
    • To verify that the extension installed properly, run the command:
      • php bin/magento module:status Meetanshi_Msg --ignore-platform-reqs
          • By default, the extension is probably disabled.
          • Enable the extension and clear static view files:
      • php bin/magento module:enable Meetanshi_Msg --clear-static-content
      • php bin/magento setup:upgrade
      • For Magento version 2.0.x to 2.1.x - php bin/magento setup:static-content:deploy
      • For Magento version 2.2.x & above - php bin/magento setup:static-content:deploy –f
      • php bin/magento cache:flush
    • For Meetanshi Customers
      • Extract the zip folder and upload our extension to the root of your Magento 2 directory via FTP.
      • Login to your SSH and run below commands step by step:
        • php bin/magento setup:upgrade
        • For Magento version 2.0.x to 2.1.x - php bin/magento setup:static-content:deploy
        • For Magento version 2.2.x & above - php bin/magento setup:static-content:deploy –f
        • php bin/magento cache:flush
  1. Configuration
    To configure the extension, log into Magento backend, move to Stores move to Stores à Configuration à MSG91 Campaign where you can find various settings to configure the extension.
  • MSG91 Campaign: Enable the extension from here.
  • Authentication Key: Enter the authentication key from your MSG91 account. Click here to learn how to generate it.

  1. Manage and Create Campaign Rules
    In the extension, you can create and manage various rules for the MSG91 campaign. From the left side-bar, navigate to MSG91 Campaign à Msg91 Campaign Rules and you’ll find all the active/inactive campaign rules in a grid.

You can create or edit existing campaign rules from the backend and configure the following settings:

  • General Information
    • Is Active: Switch to Yes to enable the extension.
    • Rule Name: Enter the name for the campaign rule.
    • Entity: Select the Magento entity to trigger theMsg91 campaign.
    • Customer Group: Select the applicable customer groups eligible for the campaign.
    • Websites: Select the applicable website to enable the campaigns for.
    • Campaign Slug: Enter the respective campaign slug from your Msg91 account.
    • From & To: Select the applicable date range for the campaign.
  • Campaign Variables

In order to use Magento variables in Msg91 campaigns, we need to map them. You can do this for each of the individual campaign rules.

Note: The store variables you can use are: email, store_name, shop_url, first_name, last_name, order_id, order_total, shipment_id, invoice_id, and tracking_number.

  • Conditions

You can set various conditions and rules to trigger the campaigns in Msg91. You can make use of the various Magento variables and operators to build rules. Here’s an example to create a condition to active the campaign in case of condition: Subtotal > 20.

You can create multiple rules and set the extension to trigger campaigns in case all/any of the rules are true/false.

Now, you’ve successfully connected Magento 2 to the Msg91 campaign and are ready to create campaigns using Magento variables.