Update/remove tax when certain conditions are met

Turbofan1178
Shopify Partner
47 4 5

Is there an api for checkout ui extensions to update/remove tax from the total price of items in the cart when certain conditions are met?

Replies 2 (2)

Liam
Shopify Staff
2731 294 746

Hi Turbofan1178,

 

I don't believe there is a specific API that allows you to directly update or remove tax from the total price of items in the cart when certain conditions are met.

 

You can create discounts or apply specific pricing rules based on certain conditions using the PriceRule object so you could explore using this alongside the TaxLine object

 

Hope this helps,

 

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

Turbofan1178
Shopify Partner
47 4 5

Okay, I'll try that.

 

I've never really used these graphql apis in checkout ui extensions that add custom fields, please can you provide a link to docs/tutorials that explores using some of these apis?

 

Thanks.