I need to calculate the SubTotal for each tax rate in my cart summary.. How can I do this? I found calculation start in module_tax under vendor / magento folder.. but I did not found where to put my hand to change the way subtotals are calculated. I tried copying the folders magento_tax module / design / frontend / web / js in my child theme, then I modified some functions related to knockout framework.. but I cannot find a way to extract Tax Subtotals for each Tax Rate..
Any help will be appreciated.
I'm using Magento 2.3.5.
Follow an example of what I need:
In my Cart I have 3 products with 2 tax rates:
In my cart summary I need to show something like this:
tax: VAT 22% | subtotal excl tax: 88€ (subtot excl tax of both product 1 and product 2)
tax: MyTax 10% | subtotal excl tax: 90€ (subtot excl tax for product 3)
GrandTotal Excl. TAX 178€ (Totals excluding taxes) GrandTotal Incl. TAX 200€ (Total including taxes)