I'm using OC 2.0.3.1
I would like to modify the confirmation email for the order to add informations about the quantity currently available for some products.
On my shop, customers can order out of stock products.
If they do so, they receive the warning message in the cart that tells them that the product is not in stock and there will be a delay in the delivery.
So this is a pre-order system and it is OK.
When the customer places the order, I would like the confirmation email to display the current availability of the ordered products.
So the idea is that the mail displays that some products are in pre-order.
If i'm correct, to do that I need to edit /catalog/view/theme/default/template/mail/order.tpl
Code: Select all
<tbody>
<?php foreach ($products as $product) { ?>
<tr>
<td style="font-size: 12px; border-right: 1px solid #DDDDDD; border-bottom: 1px solid #DDDDDD; text-align: left; padding: 7px;"><?php echo $product['name']; ?>
<?php foreach ($product['option'] as $option) { ?>
<br />
<small> - <?php echo $option['name']; ?>: <?php echo $option['value']; ?></small>
<?php } ?></td>
<td style="font-size: 12px; border-right: 1px solid #DDDDDD; border-bottom: 1px solid #DDDDDD; text-align: left; padding: 7px;"><?php echo $product['model']; ?></td>
<td style="font-size: 12px; border-right: 1px solid #DDDDDD; border-bottom: 1px solid #DDDDDD; text-align: right; padding: 7px;"><?php echo $product['quantity']; ?></td>
<td style="font-size: 12px; border-right: 1px solid #DDDDDD; border-bottom: 1px solid #DDDDDD; text-align: right; padding: 7px;"><?php echo $product['price']; ?></td>
<td style="font-size: 12px; border-right: 1px solid #DDDDDD; border-bottom: 1px solid #DDDDDD; text-align: right; padding: 7px;"><?php echo $product['total']; ?></td>
</tr>
How can I do to create this variable?
I hope my explanation is clear enough.
Thanks by advance!