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
<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.