0

Hope someone could help me with this. I have backorder enable on my website and I would like to add a backorder notifacation to the order email that displays the items that is backordered and the quantity.

It would help me a lot so I know witch items I have to order and dont have to have all the inventory in my head.

in magento 1 I added the following to

app/design/frontend/base/default/template/email/order/items/order/default.phtml

<strong style="font-size:11px;">
<?php echo $this->escapeHtml($_item->getName()) ?></strong>
<?php if ($_item->getQtyBackordered()): ?><br>
<span style="font-size: 10px">
(<?php echo $_item->getQtyBackordered()*1 ?> stk. bestilles hjem)</span>
<?php endif; ?>

How do I do the same in magento 2?

My version is 2.3.

  • <strong style="font-size:11px;"><?php echo $this->escapeHtml($_item->getName()) ?></strong><?php if ($_item->getQtyBackordered()): ?><br><span style="font-size: 10px">(<?php echo $_item->getQtyBackordered()*1 ?> stk. bestilles hjem)</span><?php endif; ?> – Kasper Elund Feb 2 at 9:53

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.