init
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
<!--@subject {{trans "Refund notification for order #%order_id" order_id=$order.increment_id}} @-->
|
||||
{{template config_path="design/email/header_template"}}<h1>{{trans "Order #%order_id" order_id=$order.increment_id}}</h1><p class="greeting">{{trans "Some items in your order have been refunded."}}</p><p class="esun-meta">{{trans "The refunded amount and original payment method are shown in the summary below."}}</p>{{depend comment}}<table class="message-info"><tr><td>{{var comment|escape|nl2br}}</td></tr></table>{{/depend}}<h2>{{trans "Order summary"}}</h2>{{layout handle="sales_email_order_creditmemo_items" creditmemo_id=$creditmemo_id order_id=$order_id area="frontend"}}{{template config_path="design/email/footer_template"}}
|
||||
@@ -0,0 +1,2 @@
|
||||
<!--@subject {{trans "Refund notification for order #%order_id" order_id=$order.increment_id}} @-->
|
||||
{{template config_path="design/email/header_template"}}<h1>{{trans "Order #%order_id" order_id=$order.increment_id}}</h1><p class="greeting">{{trans "Some items in your order have been refunded."}}</p><p class="esun-meta">{{trans "The refunded amount and original payment method are shown in the summary below."}}</p>{{depend comment}}<table class="message-info"><tr><td>{{var comment|escape|nl2br}}</td></tr></table>{{/depend}}<h2>{{trans "Order summary"}}</h2>{{layout handle="sales_email_order_creditmemo_items" creditmemo_id=$creditmemo_id order_id=$order_id area="frontend"}}{{template config_path="design/email/footer_template"}}
|
||||
@@ -0,0 +1,8 @@
|
||||
<!--@subject {{trans "Invoice #%invoice_id for order #%order_id" invoice_id=$invoice.increment_id order_id=$order.increment_id}} @-->
|
||||
{{template config_path="design/email/header_template"}}
|
||||
<h1 style="margin:0 0 14px;color:#171717;font-size:30px;line-height:1.25;font-weight:bold">{{trans "Invoice #%invoice_id" invoice_id=$invoice.increment_id}}</h1><p class="greeting">{{trans "Hi %name," name=$order_data.customer_name}}</p><p>{{trans "Thank you for your order. Your invoice for order #%order_id is below." order_id=$order.increment_id}}</p>{{depend comment}}<table class="message-info"><tr><td>{{var comment|escape|nl2br}}</td></tr></table>{{/depend}}
|
||||
<table width="100%" cellpadding="0" cellspacing="0" role="presentation" style="margin:34px 0 22px;border-collapse:collapse"><tr><td><h2 style="margin:0;padding:0 0 14px;border-bottom:2px solid #17a957;color:#171717;font-size:22px;line-height:1.25;font-weight:bold">{{trans "Invoice Summary"}}</h2></td></tr></table>
|
||||
{{layout handle="sales_email_order_invoice_items" invoice_id=$invoice_id order_id=$order_id area="frontend"}}
|
||||
<table width="100%" cellpadding="0" cellspacing="0" role="presentation" style="margin:38px 0 0;border-collapse:collapse"><tr><td><h2 style="margin:0;padding:0 0 14px;border-bottom:2px solid #17a957;color:#171717;font-size:22px;line-height:1.25;font-weight:bold">{{trans "Customer Information"}}</h2></td></tr></table>
|
||||
<table width="100%" cellpadding="0" cellspacing="0" role="presentation" style="width:100%;border-collapse:collapse"><tr><td width="50%" style="width:50%;padding:18px 24px 22px 0;border-bottom:1px solid #eee;vertical-align:top"><h3 style="margin:0 0 14px;color:#17a957;font-size:14px;text-transform:uppercase;font-weight:bold">{{trans "Billing Information"}}</h3><div style="color:#444;font-size:14px;line-height:1.65">{{var formattedBillingAddress|raw}}</div></td>{{depend order_data.is_not_virtual}}<td width="50%" style="width:50%;padding:18px 0 22px 24px;border-left:1px solid #eee;border-bottom:1px solid #eee;vertical-align:top"><h3 style="margin:0 0 14px;color:#17a957;font-size:14px;text-transform:uppercase;font-weight:bold">{{trans "Shipping Information"}}</h3><div style="color:#444;font-size:14px;line-height:1.65">{{var formattedShippingAddress|raw}}</div></td>{{/depend}}</tr><tr><td width="50%" style="width:50%;padding:20px 24px 4px 0;vertical-align:top"><h3 style="margin:0 0 12px;color:#17a957;font-size:14px;text-transform:uppercase;font-weight:bold">{{trans "Payment Method"}}</h3><div style="color:#444;font-size:14px;line-height:1.55">{{var payment_html|raw}}</div></td>{{depend order_data.is_not_virtual}}<td width="50%" style="width:50%;padding:20px 0 4px 24px;border-left:1px solid #eee;vertical-align:top"><h3 style="margin:0 0 12px;color:#17a957;font-size:14px;text-transform:uppercase;font-weight:bold">{{trans "Shipping Method"}}</h3><p style="margin:0;color:#444;font-size:14px">{{var order.shipping_description}}</p></td>{{/depend}}</tr></table>
|
||||
{{template config_path="design/email/footer_template"}}
|
||||
@@ -0,0 +1,2 @@
|
||||
<!--@subject {{trans "Invoice #%invoice_id for order #%order_id" invoice_id=$invoice.increment_id order_id=$order.increment_id}} @-->
|
||||
{{template config_path="design/email/header_template"}}<h1 style="margin:0 0 14px;color:#171717;font-size:30px;font-weight:bold">{{trans "Invoice #%invoice_id" invoice_id=$invoice.increment_id}}</h1><p class="greeting">{{trans "Hi %name," name=$order_data.customer_name}}</p><p>{{trans "Thank you for your order. Your invoice for order #%order_id is below." order_id=$order.increment_id}}</p><table width="100%" cellpadding="0" cellspacing="0" role="presentation" style="margin:34px 0 22px"><tr><td><h2 style="margin:0;padding:0 0 14px;border-bottom:2px solid #17a957;color:#171717;font-size:22px;font-weight:bold">{{trans "Invoice Summary"}}</h2></td></tr></table>{{layout handle="sales_email_order_invoice_items" invoice_id=$invoice_id order_id=$order_id area="frontend"}}<table width="100%" cellpadding="0" cellspacing="0" role="presentation" style="margin:38px 0 0"><tr><td><h2 style="margin:0;padding:0 0 14px;border-bottom:2px solid #17a957;color:#171717;font-size:22px;font-weight:bold">{{trans "Customer Information"}}</h2></td></tr></table><table width="100%" cellpadding="0" cellspacing="0" role="presentation"><tr><td width="50%" style="padding:18px 24px 22px 0;border-bottom:1px solid #eee;vertical-align:top"><h3 style="margin:0 0 14px;color:#17a957;font-size:14px;text-transform:uppercase">{{trans "Billing Information"}}</h3>{{var formattedBillingAddress|raw}}</td>{{depend order_data.is_not_virtual}}<td width="50%" style="padding:18px 0 22px 24px;border-left:1px solid #eee;border-bottom:1px solid #eee;vertical-align:top"><h3 style="margin:0 0 14px;color:#17a957;font-size:14px;text-transform:uppercase">{{trans "Shipping Information"}}</h3>{{var formattedShippingAddress|raw}}</td>{{/depend}}</tr><tr><td style="padding:20px 24px 4px 0;vertical-align:top"><h3 style="margin:0 0 12px;color:#17a957;font-size:14px;text-transform:uppercase">{{trans "Payment Method"}}</h3>{{var payment_html|raw}}</td>{{depend order_data.is_not_virtual}}<td style="padding:20px 0 4px 24px;border-left:1px solid #eee;vertical-align:top"><h3 style="margin:0 0 12px;color:#17a957;font-size:14px;text-transform:uppercase">{{trans "Shipping Method"}}</h3>{{var order.shipping_description}}</td>{{/depend}}</tr></table>{{template config_path="design/email/footer_template"}}
|
||||
@@ -0,0 +1,11 @@
|
||||
<!--@subject {{trans "Order #%increment_id confirmed" increment_id=$order.increment_id}} @-->
|
||||
<!--@vars {"var order.increment_id":"Order Id","var order_data.customer_name":"Customer Name","var created_at_formatted":"Order Date","layout handle=\"sales_email_order_items\" order=$order area=\"frontend\"":"Order Items","var payment_html|raw":"Payment Details","var formattedBillingAddress|raw":"Billing Address","var formattedShippingAddress|raw":"Shipping Address","var order.shipping_description":"Shipping Method","var order_data.is_not_virtual":"Order Type"} @-->
|
||||
{{template config_path="design/email/header_template"}}
|
||||
<h1>{{trans "Order #%increment_id" increment_id=$order.increment_id}}</h1><p class="greeting">{{trans "Hi, %name:" name=$order_data.customer_name}}</p>
|
||||
<p>{{trans "Thank you for your order from eSUN Official Store"}}</p>
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0" role="presentation" style="width:100%;border-collapse:collapse"><tr><td align="center" style="padding:30px 0;text-align:center"><table width="280" cellpadding="0" cellspacing="0" border="0" role="presentation" align="center" style="width:280px;border-collapse:collapse"><tr><td width="280" height="54" bgcolor="#17a957" align="center" valign="middle" style="width:280px;height:54px;padding:0;background-color:#17a957;text-align:center;vertical-align:middle"><a href="{{var this.getUrl($store,'sales/order/view/',[_query:[order_id:$order_id],_nosid:1])}}" style="display:inline-block;padding:15px 30px;border:0;color:#ffffff;font-family:Arial,sans-serif;font-size:16px;line-height:24px;font-weight:bold;text-align:center;text-decoration:none;white-space:nowrap">{{trans "View your order"}}</a></td></tr></table></td></tr></table>
|
||||
<table width="100%" cellpadding="0" cellspacing="0" role="presentation" style="margin:34px 0 22px;border-collapse:collapse"><tr><td><h2 style="margin:0;padding:0 0 14px;border-bottom:2px solid #17a957;color:#171717;font-size:22px;line-height:1.25;font-weight:bold">{{trans "Order Summary"}}</h2></td></tr></table>
|
||||
{{layout handle="sales_email_order_items" order_id=$order_id area="frontend"}}
|
||||
<table width="100%" cellpadding="0" cellspacing="0" role="presentation" style="margin:38px 0 0;border-collapse:collapse"><tr><td><h2 style="margin:0;padding:0 0 14px;border-bottom:2px solid #17a957;color:#171717;font-size:22px;line-height:1.25;font-weight:bold">{{trans "Customer Information"}}</h2></td></tr></table>
|
||||
<table class="order-details" width="100%" cellpadding="0" cellspacing="0" role="presentation" style="width:100%;margin:0;border:0;border-collapse:collapse"><tr><td width="50%" style="width:50%;padding:18px 24px 22px 0;border:0;border-bottom:1px solid #eeeeee;vertical-align:top"><h3 style="margin:0 0 14px;color:#17a957;font-size:14px;text-transform:uppercase;font-weight:bold">{{trans "Billing Information"}}</h3><div style="color:#444;font-size:14px;line-height:1.65">{{var formattedBillingAddress|raw}}</div></td>{{depend order_data.is_not_virtual}}<td width="50%" style="width:50%;padding:18px 0 22px 24px;border:0;border-left:1px solid #eeeeee;border-bottom:1px solid #eeeeee;vertical-align:top"><h3 style="margin:0 0 14px;color:#17a957;font-size:14px;text-transform:uppercase;font-weight:bold">{{trans "Shipping Information"}}</h3><div style="color:#444;font-size:14px;line-height:1.65">{{var formattedShippingAddress|raw}}</div></td>{{/depend}}</tr><tr><td width="50%" style="width:50%;padding:20px 24px 4px 0;border:0;vertical-align:top"><h3 style="margin:0 0 12px;color:#17a957;font-size:14px;text-transform:uppercase;font-weight:bold">{{trans "Payment Method"}}</h3><div style="color:#444;font-size:14px;line-height:1.55">{{var payment_html|raw}}</div></td>{{depend order_data.is_not_virtual}}<td width="50%" style="width:50%;padding:20px 0 4px 24px;border:0;border-left:1px solid #eeeeee;vertical-align:top"><h3 style="margin:0 0 12px;color:#17a957;font-size:14px;text-transform:uppercase;font-weight:bold">{{trans "Shipping Method"}}</h3><p style="margin:0;color:#444;font-size:14px;line-height:1.55">{{var order.shipping_description}}</p></td>{{/depend}}</tr></table>
|
||||
{{template config_path="design/email/footer_template"}}
|
||||
@@ -0,0 +1,4 @@
|
||||
<!--@subject {{trans "Order #%increment_id confirmed" increment_id=$order.increment_id}} @-->
|
||||
{{template config_path="design/email/header_template"}}<h1>{{trans "Order #%increment_id" increment_id=$order.increment_id}}</h1><p class="greeting">{{trans "Hi, %name:" name=$order_data.customer_name}}</p><p>{{trans "Thank you for your order from eSUN Official Store"}}</p>
|
||||
<table width="100%" cellpadding="0" cellspacing="0" role="presentation" style="margin:34px 0 22px;border-collapse:collapse"><tr><td><h2 style="margin:0;padding:0 0 14px;border-bottom:2px solid #17a957;color:#171717;font-size:22px;line-height:1.25;font-weight:bold">{{trans "Order Summary"}}</h2></td></tr></table>{{layout handle="sales_email_order_items" order_id=$order_id area="frontend"}}
|
||||
<table width="100%" cellpadding="0" cellspacing="0" role="presentation" style="margin:38px 0 0;border-collapse:collapse"><tr><td><h2 style="margin:0;padding:0 0 14px;border-bottom:2px solid #17a957;color:#171717;font-size:22px;line-height:1.25;font-weight:bold">{{trans "Customer Information"}}</h2></td></tr></table><table class="order-details" width="100%" cellpadding="0" cellspacing="0" role="presentation" style="width:100%;margin:0;border:0;border-collapse:collapse"><tr><td width="50%" style="width:50%;padding:18px 24px 22px 0;border:0;border-bottom:1px solid #eeeeee;vertical-align:top"><h3 style="margin:0 0 14px;color:#17a957;font-size:14px;text-transform:uppercase;font-weight:bold">{{trans "Billing Information"}}</h3><div style="color:#444;font-size:14px;line-height:1.65">{{var formattedBillingAddress|raw}}</div></td>{{depend order_data.is_not_virtual}}<td width="50%" style="width:50%;padding:18px 0 22px 24px;border:0;border-left:1px solid #eeeeee;border-bottom:1px solid #eeeeee;vertical-align:top"><h3 style="margin:0 0 14px;color:#17a957;font-size:14px;text-transform:uppercase;font-weight:bold">{{trans "Shipping Information"}}</h3><div style="color:#444;font-size:14px;line-height:1.65">{{var formattedShippingAddress|raw}}</div></td>{{/depend}}</tr><tr><td width="50%" style="width:50%;padding:20px 24px 4px 0;border:0;vertical-align:top"><h3 style="margin:0 0 12px;color:#17a957;font-size:14px;text-transform:uppercase;font-weight:bold">{{trans "Payment Method"}}</h3><div style="color:#444;font-size:14px;line-height:1.55">{{var payment_html|raw}}</div></td>{{depend order_data.is_not_virtual}}<td width="50%" style="width:50%;padding:20px 0 4px 24px;border:0;border-left:1px solid #eeeeee;vertical-align:top"><h3 style="margin:0 0 12px;color:#17a957;font-size:14px;text-transform:uppercase;font-weight:bold">{{trans "Shipping Method"}}</h3><p style="margin:0;color:#444;font-size:14px;line-height:1.55">{{var order.shipping_description}}</p></td>{{/depend}}</tr></table>{{template config_path="design/email/footer_template"}}
|
||||
@@ -0,0 +1,6 @@
|
||||
<!--@subject {{trans "Order #%order_id has shipped" order_id=$order.increment_id}} @-->
|
||||
{{template config_path="design/email/header_template"}}
|
||||
<h1>#{{var order.increment_id}}<br>{{trans "Your order is on the way."}}</h1><p class="greeting">{{trans "Hi %name," name=$order_data.customer_name}}</p><p>{{trans "Your order is on the way. Track your shipment to see the delivery status."}}</p>
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0" role="presentation"><tr><td align="center" style="padding:30px 0"><table width="280" cellpadding="0" cellspacing="0" border="0" role="presentation" align="center" style="width:280px;border-collapse:collapse"><tr><td width="280" height="54" bgcolor="#17a957" align="center" valign="middle" style="width:280px;height:54px;padding:0;background-color:#17a957;text-align:center;vertical-align:middle"><a href="{{var this.getUrl($store,'sales/order/view/',[_query:[order_id:$order_id],_nosid:1])}}" style="display:inline-block;padding:15px 30px;border:0;color:#ffffff;font-family:Arial,sans-serif;font-size:16px;line-height:24px;font-weight:bold;text-align:center;text-decoration:none;white-space:nowrap">{{trans "View your order"}}</a></td></tr></table></td></tr></table>
|
||||
<h2>{{trans "Shipment"}}</h2>{{layout handle="sales_email_order_shipment_track" shipment_id=$shipment_id order_id=$order_id}}<p class="esun-meta"><strong>{{trans "Shipping method:"}}</strong> {{var order.shipping_description}}</p><h2>{{trans "Items in this shipment"}}</h2>{{layout handle="sales_email_order_shipment_items" shipment_id=$shipment_id order_id=$order_id area="frontend"}}
|
||||
{{template config_path="design/email/footer_template"}}
|
||||
@@ -0,0 +1,2 @@
|
||||
<!--@subject {{trans "Order #%order_id has shipped" order_id=$order.increment_id}} @-->
|
||||
{{template config_path="design/email/header_template"}}<h1>#{{var order.increment_id}}<br>{{trans "Your order is on the way."}}</h1><p class="greeting">{{trans "Hi %name," name=$order_data.customer_name}}</p><p>{{trans "Your order is on the way. Track your shipment to see the delivery status."}}</p><h2>{{trans "Shipment"}}</h2>{{layout handle="sales_email_order_shipment_track" shipment_id=$shipment_id order_id=$order_id}}<p class="esun-meta"><strong>{{trans "Shipping method:"}}</strong> {{var order.shipping_description}}</p><h2>{{trans "Items in this shipment"}}</h2>{{layout handle="sales_email_order_shipment_items" shipment_id=$shipment_id order_id=$order_id area="frontend"}}{{template config_path="design/email/footer_template"}}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
<?xml version="1.0"?>
|
||||
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd" design_abstraction="custom"><update handle="sales_email_order_invoice_renderers"/><update handle="sales_email_item_price"/><body><block class="Magento\Sales\Block\Order\Email\Invoice\Items" name="items" template="Magento_Sales::email/invoice/items.phtml"><block class="Magento\Framework\View\Element\RendererList" name="sales.email.order.invoice.renderers" as="renderer.list"/><block class="Magento\Sales\Block\Order\Invoice\Totals" name="invoice_totals" template="Magento_Sales::order/totals.phtml" cacheable="false"><arguments><argument name="label_properties" xsi:type="string">colspan="2"</argument></arguments><block class="Magento\Tax\Block\Sales\Order\Tax" name="tax" template="Magento_Tax::order/tax.phtml"/></block></block></body></page>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0"?>
|
||||
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd" design_abstraction="custom">
|
||||
<update handle="sales_email_order_renderers"/><update handle="sales_email_item_price"/>
|
||||
<body><block class="Magento\Sales\Block\Order\Email\Items" name="items" template="Magento_Sales::email/items.phtml" cacheable="false"><block class="Magento\Framework\View\Element\RendererList" name="sales.email.order.renderers" as="renderer.list"/><block class="Magento\Sales\Block\Order\Totals" name="order_totals" template="Magento_Sales::order/totals.phtml"><arguments><argument name="label_properties" xsi:type="string">colspan="3"</argument></arguments><block class="Magento\Tax\Block\Sales\Order\Tax" name="tax" template="Magento_Tax::order/tax.phtml"><action method="setIsPlaneMode"><argument name="value" xsi:type="string">1</argument></action></block></block></block><block class="Magento\Framework\View\Element\Template" name="additional.product.info" template="Magento_Theme::template.phtml"/></body>
|
||||
</page>
|
||||
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0"?>
|
||||
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
|
||||
<body><referenceBlock name="sales.email.order.renderers"><block class="Esun\EmailPreview\Block\Order\Email\Items\DefaultItems" name="sales.email.order.renderers.default" as="default" template="Magento_Sales::email/items/order/default.phtml"/></referenceBlock></body>
|
||||
</page>
|
||||
@@ -0,0 +1 @@
|
||||
<?php $_invoice=$block->getInvoice(); $_order=$block->getOrder(); ?><?php if($_invoice&&$_order): ?><table class="email-items" width="100%" cellpadding="0" cellspacing="0" style="width:100%;border:1px solid #e2e5e3;border-radius:8px;border-collapse:separate;border-spacing:0;overflow:hidden"><thead><tr><th style="padding:16px 20px;background:#f7f8f7;border-bottom:1px solid #e2e5e3;text-align:left;font-size:14px;text-transform:uppercase"><?= $block->escapeHtml(__('Items')) ?></th><th style="width:72px;padding:16px 14px;background:#f7f8f7;border-bottom:1px solid #e2e5e3;text-align:center;font-size:14px;text-transform:uppercase"><?= $block->escapeHtml(__('Qty')) ?></th><th style="width:110px;padding:16px 20px;background:#f7f8f7;border-bottom:1px solid #e2e5e3;text-align:right;font-size:14px;text-transform:uppercase"><?= $block->escapeHtml(__('Price')) ?></th></tr></thead><?php foreach($_invoice->getAllItems() as $_item): ?><?php if(!$_item->getOrderItem()->getParentItem()): ?><tbody><?= $block->getItemHtml($_item) ?></tbody><?php endif ?><?php endforeach ?><tfoot style="background:#f8f9f8"><?= $block->getChildHtml('invoice_totals') ?></tfoot></table><?php endif ?>
|
||||
@@ -0,0 +1,2 @@
|
||||
<?php /** @var $block \Magento\Sales\Block\Order\Email\Items */ $_order=$block->getOrder(); ?>
|
||||
<?php if ($_order): ?><table class="email-items order-summary-table" width="100%" cellpadding="0" cellspacing="0" style="width:100%;border:1px solid #e2e5e3;border-radius:8px;border-collapse:separate;border-spacing:0;overflow:hidden"><thead><tr><th class="item-info" style="padding:16px 20px;background:#f7f8f7;border-bottom:1px solid #e2e5e3;text-align:left;font-size:14px;text-transform:uppercase"><?= $block->escapeHtml(__('Items')) ?></th><th class="item-qty" style="width:72px;padding:16px 14px;background:#f7f8f7;border-bottom:1px solid #e2e5e3;text-align:center;font-size:14px;text-transform:uppercase"><?= $block->escapeHtml(__('Qty')) ?></th><th class="item-price" style="width:110px;padding:16px 20px 16px 14px;background:#f7f8f7;border-bottom:1px solid #e2e5e3;text-align:right;font-size:14px;text-transform:uppercase"><?= $block->escapeHtml(__('Price')) ?></th></tr></thead><?php foreach($_order->getAllItems() as $_item): ?><?php if(!$_item->getParentItem()): ?><tbody><?= $block->getItemHtml($_item) ?></tbody><?php endif ?><?php endforeach ?><tfoot class="order-totals" style="background:#f8f9f8"><?= $block->getChildHtml('order_totals') ?></tfoot></table><?php endif ?>
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
<?php
|
||||
/** @var \Magento\Framework\Escaper $escaper */ $_item = $block->getItem();
|
||||
?>
|
||||
<tr><td class="item-info<?= $block->getItemOptions() ? ' has-extra' : '' ?>"><p class="product-name"><?= $escaper->escapeHtml($_item->getName()) ?></p><p class="sku"><?= $escaper->escapeHtml(__('SKU')) ?>: <?= $escaper->escapeHtml($block->getSku($_item)) ?></p><?php if ($block->getItemOptions()): ?><dl class="item-options"><?php foreach($block->getItemOptions() as $option): ?><dt><?= $escaper->escapeHtml($option['label']) ?>:</dt><dd><?= /* @noEscape */ nl2br($option['value']) ?></dd><?php endforeach ?></dl><?php endif ?></td><td class="item-qty"><?= (float)$_item->getQty() ?></td><td class="item-price"><?= /* @noEscape */ $block->getItemPrice($_item) ?></td></tr>
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
<?php /** @var \Magento\Framework\Escaper $escaper */ $_item=$block->getItem(); ?>
|
||||
<tr><td style="padding:22px 20px 24px;border-bottom:1px solid #e2e5e3;vertical-align:top"><p style="margin:0 0 5px;color:#222;font-size:16px;line-height:1.35;font-weight:bold"><?= $escaper->escapeHtml($_item->getName()) ?></p><p style="margin:2px 0;color:#999;font-size:14px"><?= $escaper->escapeHtml(__('SKU')) ?>: <?= $escaper->escapeHtml($block->getSku($_item)) ?></p><?php if($block->getItemOptions()): ?><div style="margin-top:8px;color:#555;font-size:14px;line-height:1.55"><?php foreach($block->getItemOptions() as $option): ?><div style="margin:1px 0"><strong><?= $escaper->escapeHtml($option['label']) ?>:</strong> <?= /* @noEscape */ nl2br($option['value']) ?></div><?php endforeach ?></div><?php endif ?></td><td style="width:72px;padding:22px 14px;border-bottom:1px solid #e2e5e3;vertical-align:top;text-align:center"><?= (float)$_item->getQty() ?></td><td style="width:110px;padding:22px 20px 22px 14px;border-bottom:1px solid #e2e5e3;vertical-align:top;text-align:right;white-space:nowrap;font-size:16px"><?= /* @noEscape */ $block->getItemPrice($_item->getOrderItem()) ?></td></tr>
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
/** @var $block \Magento\Sales\Block\Order\Email\Items\DefaultItems */
|
||||
/** @var \Magento\Framework\Escaper $escaper */
|
||||
$_item = $block->getItem();
|
||||
?>
|
||||
<?php $imageUrl = $block->getProductImageUrl(); ?>
|
||||
<tr class="product-row"><td class="item-info<?= $block->getItemOptions() ? ' has-extra' : '' ?>" style="padding:22px 20px 24px;border-bottom:1px solid #e2e5e3;vertical-align:top">
|
||||
<?php if ($imageUrl): ?><table width="100%" cellpadding="0" cellspacing="0" role="presentation" style="border-collapse:collapse"><tr><td width="106" style="width:106px;padding:0 14px 0 0;vertical-align:top"><img src="<?= $escaper->escapeUrl($imageUrl) ?>" width="92" height="92" alt="<?= $escaper->escapeHtmlAttr($_item->getName()) ?>" style="display:block;width:92px;height:92px;object-fit:contain;border:0"></td><td style="padding:0;vertical-align:top"><?php endif ?>
|
||||
<p class="product-name" style="margin:0 0 5px;color:#222;font-size:16px;line-height:1.35;font-weight:bold"><?= $escaper->escapeHtml($_item->getName()) ?></p><p class="sku" style="margin:2px 0;color:#999;font-size:14px"><?= $escaper->escapeHtml(__('SKU')) ?>: <?= $escaper->escapeHtml($block->getSku($_item)) ?></p>
|
||||
<?php if ($block->getItemOptions()): ?><div class="item-options" style="margin-top:8px;color:#555;font-size:14px;line-height:1.55"><?php foreach ($block->getItemOptions() as $option): ?><div style="margin:1px 0"><strong><?= $escaper->escapeHtml($option['label']) ?>:</strong> <?= /* @noEscape */ nl2br($option['value']) ?></div><?php endforeach ?></div><?php endif ?>
|
||||
<?php if ($imageUrl): ?></td></tr></table><?php endif ?>
|
||||
</td><td class="item-qty" style="width:72px;padding:22px 14px;border-bottom:1px solid #e2e5e3;vertical-align:top;text-align:center;white-space:nowrap"><?= (float)$_item->getQtyOrdered() ?></td><td class="item-price" style="width:110px;padding:22px 20px 22px 14px;border-bottom:1px solid #e2e5e3;vertical-align:top;text-align:right;white-space:nowrap;font-size:16px"><?= /* @noEscape */ $block->getItemPrice($_item) ?></td></tr>
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
<?php
|
||||
/** @var \Magento\Framework\Escaper $escaper */ $_item = $block->getItem();
|
||||
?>
|
||||
<tr><td class="item-info<?= $block->getItemOptions() ? ' has-extra' : '' ?>"><p class="product-name"><?= $escaper->escapeHtml($_item->getName()) ?> ×<?= (float)$_item->getQty() ?></p><p class="sku"><?= $escaper->escapeHtml(__('SKU')) ?>: <?= $escaper->escapeHtml($block->getSku($_item)) ?></p><?php if ($block->getItemOptions()): ?><dl class="item-options"><?php foreach($block->getItemOptions() as $option): ?><dt><?= $escaper->escapeHtml($option['label']) ?>:</dt><dd><?= /* @noEscape */ nl2br($option['value']) ?></dd><?php endforeach ?></dl><?php endif ?></td><td class="item-qty"><?= (float)$_item->getQty() ?></td></tr>
|
||||
@@ -0,0 +1,2 @@
|
||||
<?php /** @var $block \Magento\Sales\Block\Order\Totals */ $totals=$block->getTotals(); ?>
|
||||
<?php foreach($totals as $_code=>$_total): ?><?php if($_total->getBlockName()): ?><?= $block->getChildHtml($_total->getBlockName(), false) ?><?php else: ?><?php $grand=$_code==='grand_total'; ?><tr class="<?= $block->escapeHtmlAttr($_code) ?>"><td class="mark" colspan="2" style="padding:<?= $grand?'17px 14px 17px':'7px 14px' ?>;border:0;border-top:<?= $grand?'1px solid #e2e5e3':'0' ?>;background:#f8f9f8;text-align:right;color:<?= $grand?'#222':'#666' ?>;font-size:<?= $grand?'17px':'14px' ?>;font-weight:<?= $grand?'bold':'normal' ?>"><?= $block->escapeHtml($_total->getLabel()) ?></td><td class="amount" style="padding:<?= $grand?'17px 20px 17px 14px':'7px 20px 7px 14px' ?>;border:0;border-top:<?= $grand?'1px solid #e2e5e3':'0' ?>;background:#f8f9f8;text-align:right;white-space:nowrap;color:<?= $grand?'#17a957':($_code==='discount'?'#e53935':'#666') ?>;font-size:<?= $grand?'18px':'14px' ?>;font-weight:<?= $grand?'bold':'normal' ?>"><?= /* @noEscape */ $block->formatValue($_total) ?></td></tr><?php endif ?><?php endforeach ?>
|
||||
Reference in New Issue
Block a user