News:

Support the VirtueMart project and become a member

Main Menu

automated mail doesn't display round prices

Started by asareshef, October 06, 2013, 09:30:07 AM

Previous topic - Next topic

asareshef

hi
i want all prices to be displayed with round digits. example $99.00 and not $99.26
i have done it in the webpages but in the automated emails sent - the digits are not rounded.
how can i resolve this?

harel

#1
Hi Asa,
You need to use template override

Copy this file:
/public_html/components/com_virtuemart/views/invoice/tmpl/invoice_items.php

To this folder:
/public_html/templates/YOUR_TEMPLATE/html/com_virtuemart/invoice

Change this line:
<?php echo '<span >'.$this->currency->priceDisplay($item->product_item_price$this->currency) .'</span><br />'?>

To this:
<?php echo '<span >'.$this->currency->priceDisplay(  $item->product_subtotal_with_tax ,$this->currency) .'</span><br />'?>

:)