Community Forums

Quick job - £10 ($15) for a one-liner

IMPROVE VISIBILITY! LIST YOUR COMMERCIAL MOD IN THE
OPENCART EXTENSION STORE!

Quick job - £10 ($15) for a one-liner

Postby tamimi » Mon Jun 18, 2012 7:11 pm

Simply need to make the price of options show up in the cart and on email invoices.

Like so:
Image

I know that for the email invoice, I need to be editing catalog/view/theme/default/template/mail/order.tpl

And that I should be looking at

Code: Select all
 <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 />
          &nbsp;<small> - <?php echo $option['name']; ?>: <?php echo $option['value']; ?> -[b][u] I think it's here where I need to add something that calls the price of each option?[/u][/b] </small>
          <?php } ?></td>


But that's as far as I got.

It's probably gonna be a database query and a single php line, but I simply don't know what to query.

If someone can write me up a quick tutorial on how to complete this, or write me a vqmod code I'd be happy to send them a small donation via paypal as in the title.

I'm running 1.5.3.1

PM me or reply to this post if you're interested - I don't really mind.

Thanks for looking.
tamimi
 
Posts: 32
Joined: Sun Jun 03, 2012 8:42 pm

Return to Commercial Contributions

Who is online

Users browsing this forum: No registered users and 5 guests

Hosted by Arvixe Web Hosting