Magento 2: Set up subscriptions

Install Mollie Subscriptions

  1. Connect to your Magento 2 environment, for example using SSH↗.

  2. Navigate to the root directory of your Magento 2 store in the terminal, and install Mollie Subscriptions:

    composer require mollie/magento2-subscriptions
  3. Activate the module:

    php bin/magento module:enable Mollie_Subscriptions
  4. Deploy the content in your Magento 2 environment, and clean the cache:

    php bin/magento setup:upgrade
    php bin/magento cache:flush

Enable subscriptions

  1. Log in to Magento 2.

  2. Go to Stores > Configuration.

  3. Expand the Mollie section in the left sidebar, and select Subscriptions.

  4. Expand the Mollie in the sidebar, and then the Subscriptions section.

  5. In the General section, select Yes from the Enabled drop-down menu.

  6. Select a shipping method from the Shipping method drop-down menu.

  7. Save the changes.

Enable subscription emails

You can send emails to your admins and customers on various subscription-related events, such as pre-payment reminders, cancellation notifications, and errors.

  1. Log in to Magento 2.

  2. Go to Stores > Configuration.

  3. Expand the Mollie section in the left sidebar, and select Subscriptions.

  4. Select Yes from the drop-down menu of the email option that you want to enable.

  5. Save the changes.

Customise subscription emails

Mollie for Magento 2 provides various default templates for subscription-related emails to your admins and customers, such as pre-payment reminders, cancellation notifications, and errors.

To customise a template, follow these steps:

  1. Log in to Magento 2.

  2. Customise the default email template:

    1. Go to Marketing > Email templates and select Add new template.

    2. Open the Template drop-down menu, scroll tom its Mollie_Subscriptions section, and select the relevant subscription email option.

    3. Give the new template a name, and edit the template content and styling↗ as required.

    4. Save the template.

  3. Enable the email template:

    1. Log in to Magento 2.

    2. Go to Stores > Configuration.

    3. Expand the Mollie section in the left sidebar, and select Subscriptions.

    4. If you haven't already enabled the relevant subscription email option, do so by selecting Yes from the relevant drop-down menu.

    5. Select your template's name from the drop-down menu that appears when you enable the subscription email option.

    6. Save the changes.