// implement update
$defaultLangId =
$this->
fetchLanguageId('en-GB',
$connection);
$deLangId =
$this->
fetchLanguageId('de-DE',
$connection);
// update order confirmation email templates
$this->
updateMailTemplate( MailTemplateTypes::MAILTYPE_ORDER_CONFIRM,
$connection,
$defaultLangId,
$deLangId,
$this->
getOrderConfirmationHtmlTemplateEn(),
$this->
getOrderConfirmationPlainTemplateEn(),
$this->
getOrderConfirmationHTMLTemplateDe(),
$this->
getOrderConfirmationPlainTemplateDe() );
// update delivery email templates
$this->
updateMailTemplate( MailTemplateTypes::MAILTYPE_STATE_ENTER_ORDER_DELIVERY_STATE_CANCELLED,
$connection,
$defaultLangId,
$deLangId,