$sql = <<<SQL
UPDATE `s_core_config_mails` SET `content` = "
$content", `contentHTML` = "
$contentHtml" WHERE `name` = "
$name" AND dirty = 0
SQL;
$this->
addSql($sql);
} /**
* Update translations of mail templates
*/
private function updateTranslations() { $this->
updateTranslation( 'sORDER',
"Hello {\$billingaddress.firstname} {\$billingaddress.lastname},\n\nThank you for your order at {config name=shopName} (Number: {\$sOrderNumber}) on {\$sOrderDay} at {\$sOrderTime}.\nInformation on your order:\n\nPos. Art.No. Quantities Price Total\n{foreach item=details key=position from=\$sOrderDetails}\n{\$position+1|fill:4} {\$details.ordernumber|fill:20} {\$details.quantity|fill:6} {\$details.price|padding:8} EUR {\$details.amount|padding:8} EUR\n{\$details.articlename|wordwrap:49|indent:5}\n{/foreach}\n\nShipping costs: {\$sShippingCosts}\nTotal net: {\$sAmountNet}\n{if !\$sNet}\nTotal gross: {\$sAmount}\n{/if}\n\nSelected payment type: {\$additional.payment.description}\n{\$additional.payment.additionaldescription}\n{if \$additional.payment.name == \"debit\"}\nYour bank connection:\nAccount number: {\$sPaymentTable.account}\nBIN:{\$sPaymentTable.bankcode}\nWe will withdraw the money from your bank account within the next days.\n{/if}\n{if \$additional.payment.name == \"prepayment\"}\n\nOur bank connection:\nAccount: ###\nBIN: ###\n{/if}\n\n{if \$sComment}\nYour comment:\n{\$sComment}\n{/if}\n\nBilling address:\n{\$billingaddress.company}\n{\$billingaddress.firstname} {\$billingaddress.lastname}\n{\$billingaddress.street}\n{\$billingaddress.zipcode} {\$billingaddress.city}\n{\$billingaddress.phone}\n{\$additional.country.countryname}\n\nShipping address:\n{\$shippingaddress.company}\n{\$shippingaddress.firstname} {\$shippingaddress.lastname}\n{\$shippingaddress.street}\n{\$shippingaddress.zipcode} {\$shippingaddress.city}\n{\$additional.countryShipping.countryname}{if \$billingaddress.ustid}\n\n\nYour VAT-ID: {\$billingaddress.ustid}\nIn case of a successful order and if you are based in one of the EU countries, you will receive your goods exempt from turnover tax.{/if}",
"<p>Hello {\$billingaddress.firstname} {\$billingaddress.lastname},<br/><br/>\n\nThank you for your order with {config name=shopName} (Nummer: {\$sOrderNumber}) on {\$sOrderDay} at {\$sOrderTime}.\n<br/>\n<br/>\n<strong>Information on your order:</strong></p>\n <table width=\"80%\" border=\"0\" style=\"font-family:Arial, Helvetica, sans-serif; font-size:10px;\">\n <tr>\n <td bgcolor=\"#F7F7F2\" style=\"border-bottom:1px solid #cccccc;\"><strong>Art.No.</strong></td>\n <td bgcolor=\"#F7F7F2\" style=\"border-bottom:1px solid #cccccc;\"><strong>Pos.</strong></td>\n <td bgcolor=\"#F7F7F2\" style=\"border-bottom:1px solid #cccccc;\"><strong>Art-Nr.</strong></td>\n <td bgcolor=\"#F7F7F2\" style=\"border-bottom:1px solid #cccccc;\"><strong>Quantities</strong></td>\n <td bgcolor=\"#F7F7F2\" style=\"border-bottom:1px solid #cccccc;\"><strong>Price</strong></td>\n <td bgcolor=\"#F7F7F2\" style=\"border-bottom:1px solid #cccccc;\"><strong>Total</strong></td>\n </tr>\n\n {foreach item=details key=position from=\$sOrderDetails}\n <tr>\n <td rowspan=\"2\" style=\"border-bottom:1px solid #cccccc;\">{if \$details.image.src.1}<img src=\"{\$details.image.src.1}\" alt=\"{\$details.articlename}\" />{else} {/if}</td>\n <td>{\$position+1|fill:4} </td>\n <td>{\$details.ordernumber|fill:20}</td>\n <td>{\$details.quantity|fill:6}</td>\n <td>{\$details.price|padding:8}{\$sCurrency}</td>\n <td>{\$details.amount|padding:8} {\$sCurrency}</td>\n </tr>\n <tr>\n <td colspan=\"5\" style=\"border-bottom:1px solid #cccccc;\">{\$details.articlename|wordwrap:80|indent:4}</td>\n </tr>\n {/foreach}\n\n </table>\n\n<p>\n <br/>\n <br/>\n Shipping costs:: {\$sShippingCosts}<br/>\n Total net: {\$sAmountNet}<br/>\n {if !\$sNet}\n Total gross: {\$sAmount}<br/>\n {/if}\n <br/>\n <br/>\n <strong>Selected payment type:</strong> {\$additional.payment.description}<br/>\n {\$additional.payment.additionaldescription}\n {if \$additional.payment.name == \"debit\"}\n Your bank connection:<br/>\n Account number: {\$sPaymentTable.account}<br/>\n BIN:{\$sPaymentTable.bankcode}<br/>\n We will withdraw the money from your bank account within the next days.<br/>\n {/if}\n <br/>\n <br/>\n {if \$additional.payment.name == \"prepayment\"}\n Our bank connection:<br/>\n {config name=bankAccount}\n {/if}\n <br/>\n <br/>\n <strong>Selected dispatch:</strong> {\$sDispatch.name}<br/>{\$sDispatch.description}\n</p>\n<p>\n {if \$sComment}\n <strong>Your comment:</strong><br/>\n {\$sComment}<br/>\n {/if}\n <br/>\n <br/>\n <strong>Billing address:</strong><br/>\n {\$billingaddress.company}<br/>\n {\$billingaddress.firstname} {\$billingaddress.lastname}<br/>\n {\$billingaddress.street}<br/>\n {\$billingaddress.zipcode} {\$billingaddress.city}<br/>\n {\$billingaddress.phone}<br/>\n {\$additional.country.countryname}<br/>\n <br/>\n <br/>\n <strong>Shipping address:</strong><br/>\n {\$shippingaddress.company}<br/>\n {\$shippingaddress.firstname} {\$shippingaddress.lastname}<br/>\n {\$shippingaddress.street}<br/>\n {\$shippingaddress.zipcode} {\$shippingaddress.city}<br/>\n {\$additional.countryShipping.countryname}<br/>\n <br/>\n {if \$billingaddress.ustid}\n Your VAT-ID: {\$billingaddress.ustid}<br/>\n In case of a successful order and if you are based in one of the EU countries, you will receive your goods exempt from turnover tax.\n {/if}</p>"
);
} /**
* Helper method to update the translations of a mail template
*
* @param string $name
* @param string $content
* @param string $contentHtml
*/