Author Topic: How to display Weight in Confirmation Mail  (Read 1438 times)

ridors

  • Beginner
  • *
  • Posts: 12
How to display Weight in Confirmation Mail
« on: December 02, 2009, 09:57:27 am »

Hi everybody,

 this thread explains how to display the weight in basket, and works fine:

http://forum.virtuemart.net/index.php?topic=50518.0

We want to display also the weight in the confirmation mail, so we add this code into the file:

/components/com_virtuemart/themes/default/templates/order_emails/confirmation_email.tpl.php

Quote
<tr class="Stil1">
                  <td colspan=4 align=right><?php echo $VM_LANG->_('PHPSHOP_ORDER_PRINT_WEIGHTTOTAL') ?>:</td>
                  <td><?php echo $weight_total ?> kg</td>
                </tr>

Weight is displayed without an amount like this:

Gewicht: kg

Anyone knows how to display the weight correctly?

Thanks for your help
ridors


VM: 1.1.4
Joomla: 1.5.15


Super-Sean

  • Beginner
  • *
  • Posts: 49
Re: How to display Weight in Confirmation Mail
« Reply #1 on: December 03, 2009, 14:58:24 pm »
did you call the weight function first by adding
Code: [Select]
'PHPSHOP_ORDER_PRINT_WEIGHTTOTAL' => 'Total Weight', to the file?

if you just add the code you showed it wont work.

ridors

  • Beginner
  • *
  • Posts: 12
Re: How to display Weight in Confirmation Mail
« Reply #2 on: December 07, 2009, 10:37:37 am »
did you call the weight function first by adding
Code: [Select]
'PHPSHOP_ORDER_PRINT_WEIGHTTOTAL' => 'Total Weight', to the file?

if you just add the code you showed it wont work.

This Code is already implemented in my language.php

Anyone knows how to display the weight in the email-confirmation?

Thanx a lot.