cuisibella Posted July 26, 2009 Share Posted July 26, 2009 Hi,did someone manage to show prices without tax in product list and homefeatured. I did it on the product page but i can't figure how to do it on other pages. The way i'm setup is i don't have product tax, tax is based on location (12.875% for Quebec, 13% HST for atlantic and 5% GST for the rest of Canada), so when a customer login, all prices show with tax. I think it is confusing for the customer. I read that this feature has been added to ver 1.2, is it possible to adapt it to 1.1?, i really don't want to upgrade as i already did a lot of mod to the shop.Thanks! Link to comment Share on other sites More sharing options...
migash Posted September 30, 2009 Share Posted September 30, 2009 This solution is based on 1.2.In classes/Product.php add this line to static "public function getProductProperties":$row['price_tax_exc'] = Product::getPriceStatic($row['id_product'], false, ((isset($row['id_product_attribute']) AND !empty($row['id_product_attribute'])) ? intval($row['id_product_attribute']) : NULL), 2);Just add it right above the "$row['price'] = ... lineThen, in homefeatured.tpl change:{displayWtPrice p=$product.price}to:{displayWtPrice p=$product.price_tax_exc}This also works for other modules. Link to comment Share on other sites More sharing options...
dPlay Posted February 24, 2010 Share Posted February 24, 2010 Tnx migash...but it not works =(Or maybe my changes was not correctPrice stay with incl.tax when user login 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