The change you suggested doesn't seem to affect the cart calculations at all. The product page calculations remain correct, but the cart hasn't changed from the previous version. Let me explain the issues I'm detecting in the cart:
The amount of 481,13 € comes from the following operation (all prices with VAT included):
481,13 € - 398,15 € (tire price) = 82,98 €
82,98 € - 47,90 € (mounting × 2) - 3,62 € (eco-tax × 2) = 31,46 €
31,46 € - 26,00 € (alignment / 2) = 5,46 €
These extra 5,46 € come from adding the alignment VAT twice: (52 × 21 / 100) / 2 = 5,46 €
So the alignment VAT is being duplicated.
Additionally, the prices marked with red circles (images in attachments) are very confusing not only for the user but also for us.
I would like to know if the product list in the cart table could be improved so that the unit price shown is for a single tire with its individual options, i.e., tire price + eco-tax + mounting, which in this case would be 423,91 €, and below it a line for alignment (a unit cost since it's per vehicle) of 52 €.
Ideally, the cart should look like this:
"Tire Title" + tire price (398,15 €) ... Unit price 423,91 € ... Qty 2 ... Total 847,82 €
Alignment/wheel geometry: Yes, one axle (+ 52,00 €) ... Unit price 52,00 € ... Qty 1 ... Total 52,00 €
───────────────────────────────────────────────────────────────
Total ............................ 899,82 €
VAT .............................. 156,17 €
Amount without VAT ............... 743,65 €
I'm attaching screenshots of the current cart along with screenshots of the plugin configuration and the custom field.
Thank you for your support.