Jump to content

[solved] Apply specific price before adding tax


Recommended Posts

Is there a way to apply amount based specific price before the tax is applied? I mean

 

Product price $10 => discount $2 = $8 => with 10% tax $8.8

 

instead of 

 

Product price $10 => with 10% tax $11 => discount $2 => total $9  

 

I found many threads about this issue, and didn't find any solution. 

Link to comment
Share on other sites

Thanks for the link! I think I have it working on PS 1.6. 

 

In Product.php I changed the line

$specific_price_reduction = !$use_tax ? $product_tax_calculator->removeTaxes($reduction_amount) : $reduction_amount;          

to 

$specific_price_reduction = floatval($reduction_amount);
I also had to switch the product price display under Customers - Groups to "Tax ecl.", as without that the tax got calculated wrong.
 
The last thing I did was commenting following line in themes/default-bootstrap/js/product.js, to display the price correctly on tyhe products page
 
//$('#our_price_display').text(our_price);
I have to test this solution more, to confirm it's really fully working.
  • Like 1
Link to comment
Share on other sites

  • 3 months later...

This works for v1.6.0.9

 

In classes/product.php

 

Found on line 2761

 

Change:

$specific_price_reduction = !$use_tax ? $product_tax_calculator->removeTaxes($reduction_amount) : $reduction_amount;

 

To:

$specific_price_reduction = $reduction_amount;

  • Like 2
Link to comment
Share on other sites

×
×
  • Create New...