diff --git a/Block/Info/CashOnDelivery.php b/Block/Info/CashOnDelivery.php index 8772783..d3fcf45 100644 --- a/Block/Info/CashOnDelivery.php +++ b/Block/Info/CashOnDelivery.php @@ -25,21 +25,21 @@ class CashOnDelivery extends Info { protected function _prepareSpecificInformation($transport = null) { - if (is_null($this->_paymentSpecificInformation)) { - $transport = parent::_prepareSpecificInformation($transport); - $data = []; - - /** @var Order $order */ - $order = $this->getInfo()->getOrder(); - - $taxes = $order->getMspCodTaxAmount(); - $amount = $order->getMspCodAmount() - $taxes; - - $data[(string) __("Cash On Delivery Amount")] = $order->getOrderCurrency()->formatPrecision($amount, 2, [], false); - $data[(string) __("Cash On Delivery Tax")] = $order->getOrderCurrency()->formatPrecision($taxes, 2, [], false); - - $this->_paymentSpecificInformation = $transport->setData(array_merge($data, $transport->getData())); - } +// if (is_null($this->_paymentSpecificInformation)) { +// $transport = parent::_prepareSpecificInformation($transport); +// $data = []; +// +// /** @var Order $order */ +// $order = $this->getInfo()->getOrder(); +// +// $taxes = $order->getMspCodTaxAmount(); +// $amount = $order->getMspCodAmount() - $taxes; +// +// $data[(string) __("Cash On Delivery Amount")] = $order->getOrderCurrency()->formatPrecision($amount, 2, [], false); +// $data[(string) __("Cash On Delivery Tax")] = $order->getOrderCurrency()->formatPrecision($taxes, 2, [], false); +// +// $this->_paymentSpecificInformation = $transport->setData(array_merge($data, $transport->getData())); +// } return $this->_paymentSpecificInformation; } diff --git a/etc/module.xml b/etc/module.xml index e8fd1c8..07d5823 100644 --- a/etc/module.xml +++ b/etc/module.xml @@ -21,7 +21,7 @@ --> - + diff --git a/view/frontend/layout/sales_email_order_items.xml b/view/frontend/layout/sales_email_order_items.xml new file mode 100644 index 0000000..8ae3008 --- /dev/null +++ b/view/frontend/layout/sales_email_order_items.xml @@ -0,0 +1,28 @@ + + + + + + + + + \ No newline at end of file