Skip to content
Code-Schnipsel Gruppen Projekte
Commit 1d840f7a erstellt von Henning Leutz's avatar Henning Leutz :martial_arts_uniform:
Dateien durchsuchen

refactor: shipping data in order mail -> removed

Übergeordneter 7cd12041
No related branches found
No related tags found
Keine zugehörigen Merge Requests gefunden
......@@ -22,9 +22,4 @@
<event on="onQuiqqer::order::orderProcessCustomerDataEnd"
fire="\QUI\ERP\Shipping\EventHandler::onOrderProcessCustomerDataEnd"
/>
<!-- Mails -->
<event on="onQuiqqer::order::mail::orderConfirmation::end"
fire="\QUI\ERP\Shipping\EventHandler::onOrderConfirmationEnd"
/>
</events>
\ No newline at end of file
......@@ -368,11 +368,6 @@
<de><![CDATA[Wählen Sie bitte hier Ihre standard Versandaddresse aus.]]></de>
<en><![CDATA[Please select your standard shipping address here.]]></en>
</locale>
<locale name="mail.order.confirmation.title">
<de><![CDATA[Lieferaddresse]]></de>
<en><![CDATA[Delivery address]]></en>
</locale>
</groups>
......
......@@ -264,40 +264,4 @@ public static function onUserSaveBegin(QUI\Users\User $User)
QUI\System\Log::writeDebugException($Exception);
}
}
/**
* @param Collector $Collector
* @param $Order
*/
public static function onOrderConfirmationEnd(
Collector $Collector,
QUI\ERP\Order\OrderInterface $Order
) {
$Shipping = Shipping::getInstance()->getShippingByObject($Order);
if (!$Shipping) {
return;
}
try {
$Address = $Shipping->getAddress();
$address = $Address->render();
if (empty($address)) {
return;
}
$Engine = QUI::getTemplateManager()->getEngine();
$Engine->assign([
'address' => $address
]);
$Collector->append(
$Engine->fetch(dirname(__FILE__).'/Mails/orderConfirmation.html')
);
} catch (QUI\Exception $Exception) {
QUI\System\Log::writeDebugException($Exception);
}
}
}
<div style="clear: both; padding-top: 40px;"></div>
<div style="padding: 10px; clear: both; background: #f8f8f8;">
<h4>{locale group="quiqqer/shipping" var="mail.order.confirmation.title"}</h4>
{$address}
</div>
\ No newline at end of file
0% oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren