Remove tax from total price before checkout when conditions are met

There’s a tutorial on the Shopify help center that shows how to exempt tax from the total price of an order when conditions are met before checkout using Shopify Scripts in checkout.liquid. Here’s the tutorial: https://help.shopify.com/en/manual/checkout-settings/script-editor/examples/vat-script.

I was wondering how do a similar thing with Shopify functions.

Any help will be appreciated thanks.

Hey were you able to figure this out?

No i wasn’t. Do you have any ideas about it?

I’ve only gone as far as querying the proper parameters such as the tax amount but I can’t seem to figure out how I can actually change them real time. I am using the checkout and cart validation function. I might be using the wrong function and will be trying out different ones such as the checkout UI.

Yeah I explored that angle too but I didn’t get far. Would appreciate if you can update this thread if you figure it out.