public function update(Connection
$connection): void
{ // implement update
$enLangId =
$this->
fetchLanguageId('en-GB',
$connection);
$deLangId =
$this->
fetchLanguageId('de-DE',
$connection);
$mailTemplateContent =
require __DIR__ . '/../Fixtures/MailTemplateContent.php';
// update order confirmation email templates
$this->
updateMailTemplate( MailTemplateTypes::MAILTYPE_ORDER_CONFIRM,
$connection,
$enLangId,
$deLangId,
$mailTemplateContent['OrderConfirmation'
]['en-GB'
]['html'
],
$mailTemplateContent['OrderConfirmation'
]['en-GB'
]['plain'
],
$mailTemplateContent['OrderConfirmation'
]['de-DE'
]['html'
],
$mailTemplateContent['OrderConfirmation'
]['de-DE'
]['plain'
] );
// update delivery email templates