jd.creative Posted May 13, 2013 Share Posted May 13, 2013 (edited) I keep seeing this around the default theme {if $priceDisplay} tax ecluded {else} tax included , but I can't find any setting in the back office that relates to that variable... how do I set it? At the moment, it's set to show tax excluded, I want it to show tax included. JD EDIT: Sorry, probably posted this in the wrong area. Edited May 13, 2013 by jd.creative (see edit history) Link to comment Share on other sites More sharing options...
PascalVG Posted May 13, 2013 Share Posted May 13, 2013 Look here: in frontcontroller, you have the following line: 'priceDisplay' => Product::getTaxCalculationMethod(), in product.php there is the following line: public static $_taxCalculationMethod = PS_TAX_EXC; (initializing the value to TAX_EXC) and those two functions: public static function initPricesComputation($id_customer = null) { if ($id_customer) { $customer = new Customer((int)$id_customer); if (!Validate::isLoadedObject($customer)) die(Tools::displayError()); self::$_taxCalculationMethod = Group::getPriceDisplayMethod((int)$customer->id_default_group); } else self::$_taxCalculationMethod = Group::getPriceDisplayMethod(Group::getCurrent()->id); } public static function getTaxCalculationMethod($id_customer = null) { if ($id_customer) Product::initPricesComputation((int)$id_customer); return (int)self::$_taxCalculationMethod; } Doing the work of returning the right value. Apparently it depends on any (previous) customer, what group he's in... For you to dig some more in this... My cents, pascal Link to comment Share on other sites More sharing options...
vekia Posted May 13, 2013 Share Posted May 13, 2013 hello pascal. i think that he talked about back office settings of customer -> groups | price display (tax excl. / tax incl.) 2 Link to comment Share on other sites More sharing options...
jd.creative Posted May 13, 2013 Author Share Posted May 13, 2013 Thank you both for your answers, but indeed Vekia has the answer I was looking for. Where can I make suggestions for future Prestashop builds... I would expect to see a default setting for all groups tax setting in the preferences area of the back office. Thanks, JD. Link to comment Share on other sites More sharing options...
PascalVG Posted May 13, 2013 Share Posted May 13, 2013 Hi Vekia, Haha, you're right of course. Jet lag took over here ;-) thanks for your help here! Link to comment Share on other sites More sharing options...
patrikar Posted May 28, 2014 Share Posted May 28, 2014 This is what I came here for: {$priceDisplay} can have this values: 1 (means Tax excluded) 0 (means Tax included) The variable is read from an option named "price display" of the group of the current customer. 1 Link to comment Share on other sites More sharing options...
Edvinas Posted July 19, 2022 Share Posted July 19, 2022 In v1.7.6.8 go to Improve > Locations > Country and turn on "Display tax label (e.g. "Tax incl.")" Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now