Post by montyveda » Mon Jul 22, 2013 5:30 pm

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

Newbie

Posts

Joined
Fri May 03, 2013 4:12 pm

Post by montyveda » Mon Jul 22, 2013 5:53 pm

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

Newbie

Posts

Joined
Fri May 03, 2013 4:12 pm

Post by Noman » Tue Jan 20, 2015 5:38 am

It works also in 1.5.6.

Thank you.

New member

Posts

Joined
Wed Jun 24, 2009 7:44 pm
Who is online

Users browsing this forum: Google [Bot], gunownergear and 59 guests