Output prices with VAT even before shipping address selection

Hi,
we work in Italy/EU and VAT must be applied to customers residing in Europe, while it should be zero for Business customers and outside Europe.

We’ve successfully implemented this scenario with a custom taxes webhook: we’re starting with prices without VAT and it gets added when needed during the checkout.

Unfortunately our customers would like to see ‘full prices’ with VAT in the cart recap, so instead of rewriting everything to use prices including VAT and subtracting it when it shouldn’t be applied, we’d like to keep things simple and only change some Snipcart templates to just add the VAT.

We successfully modified the <summary-fees> template to add the VAT when summaryData.taxTotalAmount is not > 0, we just need to add the VAT to the <item-quantity> template inside <item-line>.
We couldn’t find a way to override the price inside this component,

:item="{ …item, totalPrice: item.totalPrice*1.22 }"

doesn’t seem to work.

Could you please help us?

Thank you very much, cheers
Andrea

Hi Andrea,
Have you tried using <cart-summary-item> Default theme reference – Snipcart Documentation

It will override in the order summary in the cart, after the client has checked out.

Cheers,
FX