PrestaShop Developer Conference
PrestaShop Developer Conference
Paris, France - November 6, 2024
Let's talk code, commerce and open source.

Warning: You are browsing the documentation for PrestaShop 1.7, which is outdated.

You might want to read an updated version of this page for the current version, PrestaShop 8. Read the updated version of this page

Learn how to upgrade to the latest version.

MailTemplate domain

MailTemplate Commands

GenerateThemeMailTemplatesCommand

PrestaShop\PrestaShop\Core\Domain\MailTemplate\Command\GenerateThemeMailTemplatesCommand Class GenerateThemeMailsCommand generates email theme's templates for a specific language. If folders are not overridden in the command then MailTemplateGenerator will use the default output folders (in mails folder).

Command details
Constructor parameters
  • $string $themeName
  • $string $language
  • $?bool $overwriteTemplates = false
  • $?string $coreMailsFolder = ''
  • $?string $modulesMailFolder = ''
Handler class PrestaShop\PrestaShop\Core\Domain\MailTemplate\CommandHandler\GenerateThemeMailTemplatesCommandHandler

Implements:

  • PrestaShop\PrestaShop\Core\Domain\MailTemplate\CommandHandler\GenerateThemeMailTemplatesCommandHandlerInterface
Return type void

MailTemplate Queries