Post by flightoffancy » Mon Feb 01, 2010 5:17 am

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.

New member

Posts

Joined
Fri Jan 22, 2010 9:34 pm

Post by dannowatts » Sat Apr 10, 2010 5:34 pm

this would be great to know!

rocksteady,
danno~

New member

Posts

Joined
Tue Nov 10, 2009 11:40 am

Post by Qphoria » Sat Apr 10, 2010 8:28 pm

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) :

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 } ?>
REPLACE WITH:

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 />&nbsp;&nbsp;- <?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 } ?>

Image
Donate!|OpenCart Basics|GeoZones
Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am
Who is online

Users browsing this forum: No registered users and 4 guests