VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: teddyfresco on November 27, 2013, 14:33:27 PM

Title: total shipment price without tax
Post by: teddyfresco on November 27, 2013, 14:33:27 PM
Hi, I am trying to display on confirmation emails and invoices the total shipment price without taxes, because currently it is showing price with taxes.
I've found responsible code in \components\com_virtuemart\views\invoice\tmpl\invoice_items.php
<?php echo $this->currency->priceDisplay($this->orderDetails['details']['BT']->order_shipment $this->orderDetails['details']['BT']->order_shipment_tax$this->currency); ?>
I've checked the correct variable under http://xref.vmitalia.net/vm20/nav.html?_variables/index.html
but I've only found "order_shipment", which doesn't seem to produce the correct result, the price is shown without tax but maybe multiplied for number of products in cart...
Does anyone know how to display the shipment without taxes?
thanks in advance
Title: Re: total shipment price without tax
Post by: GJC Web Design on November 27, 2013, 15:02:26 PM
wouldn't be

<?php echo $this->currency->priceDisplay($this->orderDetails['details']['BT']->order_shipment, $this->currency); ?>
Title: Re: total shipment price without tax
Post by: teddyfresco on December 03, 2013, 12:53:26 PM
Thank you very much, it was so simple and I couldn't figure it out.
Let's hope it can be useful for someone else.
Title: Re: total shipment price without tax
Post by: GJC Web Design on December 03, 2013, 15:22:02 PM
 :)