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
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
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
Who is online
Users browsing this forum: Google [Bot], gunownergear and 59 guests