0

I've enabled backorders, and it works as expected - showing a message in the checkout when required.

How can I show the same message in the order email that is sent?

Thanks.

1

To add it to the Email:

app/design/frontend/default/<your_template>/template/email/order/items/order/default.phtml

or

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

You can add this code:

<?php if ($_item->getQtyBackordered()): ?>
  Your message
<?php endif; ?>
  • that's great - thanks! Do you know the code that replicates the original message in the checkout? (ie, tells you the number that is on backorder) – egg Aug 13 '14 at 12:28
  • I don't understand where you say, you can specify it more, please. – osrecio Aug 14 '14 at 8:54
  • by default, when I am in the checkout, I get a message under the ordered item that says "* "iphone 5" is not available in the requested quantity. 3 of the items will be backordered." – egg Aug 14 '14 at 11:48
  • $_item->getQtyBackordered() returns you the number of products will be backordered. In your example the value of $_item->getQtyBackordered() will be 3. – osrecio Aug 14 '14 at 11:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.