Skip to content

Installing Email & Newsletter Templates

Beta release

This module is in beta and requires the Hyvä CMS 1.3.0-beta1 beta release as its base. Follow the beta upgrade notes for the exact Composer commands, including the stability constraint your root composer.json needs.

This guide covers installing the Hyvä Email & Newsletter Templates module with Composer. The module extends Hyvä CMS, so make sure Hyvä CMS is installed first.

Prerequisites

Installation

  1. Require the hyva-themes/commerce-module-email-templates package

    composer require hyva-themes/commerce-module-email-templates
    
  2. Run the Magento setup upgrade

    bin/magento setup:upgrade
    

Database changes

setup:upgrade creates three tables: hyva_commerce_email_template and hyva_commerce_newsletter_template (per-template settings such as the enabled flag, draft content, and preheader) and hyva_commerce_email_template_version_history (shared version history for both types).

After Installing

Head to Stores → Configuration → Hyvä Commerce → Hyvä CMS and open the Email Templates group:

  1. Set Enable for Email Templates to Yes (and Enable for Newsletter Templates in its own group, if you use newsletters).
  2. Use the Create Email Templates button to generate Hyvä versions of the standard transactional emails from the built-in presets.
  3. Use the Map Templates to Configuration button to point Magento's sales and customer email settings at the new templates.

See Configuration for what each setting does before you run the setup buttons.