ukbDmcvkWBuPkX Posted December 17, 2013 Posted December 17, 2013 When is a product price is discounted, the amount of the discount is taxed and added into to the sale price. For example: Tax rate: 6% Original product price: $5.95 Discount: $1.00 When user is not logged in: Sale product price: $4.95 When user is logged in and location is taxed: Sale product price: $5.01 Tax: $0.30 Any suggestions for how to disable tax on the amount of the discount? Back office options? Which class/controller to override? Thanks! Share this post Link to post Share on other sites More sharing options...
tdr170 Posted December 17, 2013 Posted December 17, 2013 There has never been a solution that works for this issue and Prestashop refuses to change it. The only way to have this work is to use % for the discount. There was a post that had a partial fix for this in 1.4 but I say partial because while it did make the price show without tax in the shop it did not change the invoice or the order page int eh back office. So when you see the price they paid it would not match the invcoice or order page. Sorry! Share this post Link to post Share on other sites More sharing options...
ukbDmcvkWBuPkX Posted December 17, 2013 Posted December 17, 2013 Thanks for the input. I figured out where to adjust this. In /prestashop/overrides/classes/Product.php, override Product::priceCalculation() by changing: $reduc = !$use_tax ? $product_tax_calculator->removeTaxes($reduction_amount) : $reduction_amount; to: $reduc = $reduction_amount; This works in the cart and in the generated invoices. YMMV. Product.php 1 Share this post Link to post Share on other sites More sharing options...
tdr170 Posted December 17, 2013 Posted December 17, 2013 (edited) What version are you using. Edited December 17, 2013 by tdr170 (see edit history) Share this post Link to post Share on other sites More sharing options...
ukbDmcvkWBuPkX Posted December 18, 2013 Posted December 18, 2013 PrestaShop 1.5.6.1 Share this post Link to post Share on other sites More sharing options...
Arkadia Posted March 30, 2014 Posted March 30, 2014 (edited) Thanks for the input. I figured out where to adjust this. In /prestashop/overrides/classes/Product.php, override Product::priceCalculation() by changing: $reduc = !$use_tax ? $product_tax_calculator->removeTaxes($reduction_amount) : $reduction_amount; to: $reduc = $reduction_amount; This works in the cart and in the generated invoices. YMMV. Product.php Thank you soooo much! You saved my day!! Works in 1.5.6.2 as well for anyone that wants to know. Also for people who don't know: if you don't find the function in prestashop/overrides/classes/Product.php - look in prestashop/classes/product.php - but you should really copy the file with the relevant function to the override folder for upgrade safety. Edited March 30, 2014 by Arkadia (see edit history) Share this post Link to post Share on other sites More sharing options...
J.Sahu Posted September 19, 2014 Posted September 19, 2014 Though I am using ps 1.6.0.9 i'm also using a theme build for prestashop 1.5 so this post helped me. however I the javascript loads the price with the incorrect price in the product page if combination is available. When page loads it comps with the correct price but when java script loads an page load finishes it changes the price to the same way. I've looked at the product.js but confused with the code. Any suggestion ? Share this post Link to post Share on other sites More sharing options...
Vipul Hadiya Posted October 10, 2020 Posted October 10, 2020 So this problem was raised in 2013 and it is 2020. It is not fixed yet by PrestaShop. Share this post Link to post Share on other sites More sharing options...
SIWA_Fabian Posted November 19, 2021 Posted November 19, 2021 Any solution yet? I also need the taxes shown as they are before discount of voucher is applied. Share this post Link to post 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