I've been staring at the order.php and order_confirm.tpl for over an hour and can't make heads or tails out of what needs to be changed/added to include the options in the confirmation emails. I can see that the product options are referenced in order.php but can't seem to get them to show up in the confirmation email.
I'm working with 1.4.0.
This was added in later versions. But the fix is
1. EDIT: catalog/view/theme/default/template/mail/order_confirmation.tpl
2. FIND (~line 60 - 68) :
REPLACE WITH:
1. EDIT: catalog/view/theme/default/template/mail/order_confirmation.tpl
2. FIND (~line 60 - 68) :
Code: Select all
<?php foreach ($products as $product) { ?>
<tr style="background-color: #EEEEEE; text-align: center;">
<td align="left"><?php echo $product['name']; ?></td>
<td align="left"><?php echo $product['model']; ?></td>
<td align="right"><?php echo $product['price']; ?></td>
<td align="right"><?php echo $product['quantity']; ?></td>
<td align="right"><?php echo $product['total']; ?></td>
</tr>
<?php } ?>
Code: Select all
<?php foreach ($products as $product) { ?>
<tr style="background-color: #EEEEEE; text-align: center;">
<td align="left">
<?php echo $product['name']; ?>
<?php foreach ($product['option'] as $option) { ?>
<br /> - <?php echo $option['name']; ?>: <?php echo $option['value']; ?>
<?php } ?>
</td>
<td align="left"><?php echo $product['model']; ?></td>
<td align="right"><?php echo $product['price']; ?></td>
<td align="right"><?php echo $product['quantity']; ?></td>
<td align="right"><?php echo $product['total']; ?></td>
</tr>
<?php } ?>
Who is online
Users browsing this forum: No registered users and 16 guests