Taxes don’t change when I add a fee
-
Good morning,
For my store, I have two payment methods:
- the first is “Invoice payment within 30 days”
- the second is a payment “Cash on delivery WITH a 6% discount”
In addition, there are 2 taxes on my store: a tax at 2.6% and another at 8.1%.
For the total calculation of my order, I need that with the second payment method the 6% discount is taxed. My order calculation is: ((SUBTOTALTAX26 * 1.026) + (SUBTOTALTAX81*1.081)) * 0.94 + SHIPPING …
BUT, in the checkout and in the order, the taxes do not change when I choose the second payment method. Here is the code for adding my fee :
$cart->add_fee('Rabais ' . set_rabais_paiement_cash_twint() * 100 . '% pour espèces à la livraison (TVA incluse)', -$discount, true,'standard');
Here is an example of what my store displays at the moment:
However, there should be: TVA 2.6: 9.22 / TVA 8.1: 13.02 because of the 6% discount.
Is it possible to manually set the value of taxes in the cart/order?
If you have any ideas, I’m interested! Thank you very much ??
The page I need help with: [log in to see the link]
- The topic ‘Taxes don’t change when I add a fee’ is closed to new replies.