We would like to change the Tax percentage on my current order during checkout.
We currently ask our customers some questions during checkout, and depending on theyre answers, they need to be given a different tax percentage (or different tax class), instead of standard 21%, they get 6%. On the total order.
Already tried solutions:
Solution 1: I created an observer, sales_quote_collect_totals_before and when fired I change the class of the products. The solution works when adding products to the cart, but when dispatching the event while in checkout, the product tax and total amount is not changed.
Solution 2: How to re-collect quote totals in Magento 2?
But I am not getting it to work.
I hope that, someone has a solution, or is able to point me in the right direction.