Page 1 of 1

Display ex-tax prices in latest & featured products

Posted: Mon Jul 22, 2013 5:30 pm
by montyveda
Hi Guys,

I'm building a shop and need to display the prices Ex-Tax/VAT in the Latest and Featured products modules.

Any ideas or advice would be greatly appreciated.

Thanks,

Dave

Re: Display ex-tax prices in latest & featured products

Posted: Mon Jul 22, 2013 5:53 pm
by montyveda
answering my own question here...

thanks to Mickdpl in this post, I did the following:

Display pre-tax prices in Featured Products module

Public_html/shop/catalog/controller/module > featured.php (around line 69, for me)

I changed:
$price = $this->currency->format($this->tax->calculate($product_info['price'], $product_info['tax_class_id'], $this->config->get('config_tax')));

to:
$price = $this->currency->format($product_info['price']);



Display prices ex-tax in Latest products module

Public_html/shop/catalog/controller/module > latest.php

(around line 65)

Change:
$price = $this->currency->format($this->tax->calculate($result['price'], $result['tax_class_id'], $this->config->get('config_tax')));

To
$price = $this->currency->format($result['price']);



Seems to work fine in Version 1.5.3.1

Re: Display ex-tax prices in latest & featured products

Posted: Tue Jan 20, 2015 5:38 am
by Noman
It works also in 1.5.6.

Thank you.