Jump to content

Problem with Taxation and Discount


Recommended Posts

Hello, I am new to this board and would love to solve a problem I recently noticed on my site.

I offer a discount for some products, however PrestaShop charges tax on the full total, then subtracts the discount. If the user checks out through PayPal, the calculation on PayPal is done by subtracting the discount first, then charging tax. So, the two totals paid are different by a little bit. And, the Back Office Orders shows the error message such as "Warning: $30.69 paid instead of $31.86 !"

Ideally, I would like PrestaShop to subtract the discount before taxing, like it's done on PayPal. Any help or suggestions?

I am running version Version 1.3.1.1 - 0.575s.

Link to comment
Share on other sites

  • 2 months later...

quick fix
I have no idea why for each item the price with tax is calculated wrong but for the whole cart is ok

edit redirect.tol


line 27
from
<input type="hidden" name="amount_{$k+1}" value="{$product.price_wt}" />
to
<input type="hidden" name="amount_{$k+1}" value="{$product.price}" />
and after line 35 ( end if)
add this line
<input type="hidden" name="tax_cart" value="{$tax}" />

Link to comment
Share on other sites

×
×
  • Create New...