For discussing the development and usage of Checkout UI extensions, post-purchase extensions, web pixels, Customer Accounts UI extensions, and POS UI extensions
Hi,
We're reaching out to address a critical issue regarding the order total amount in delivery customization. (Delivery customization is an extension)
As per the documentation provided by Shopify, we understand that the total amount parameter should include both the subtotal and tax amount. However, we have noticed that we are only receiving the subtotal amount, without the inclusion of tax.
For more information please refer this video: https://screenpal.com/watch/c0QtXwV5iLB
Please update us, how we can get total amount with including tax?
Thanks.
Hi Tejash_patel_iw,
That does sound unusual - just to test, are you able to recieve values for `totalTaxAmount`? As a temporary measure you may be able to do calculations to display the full total?
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
Hi Liam,
No, we are not able to get 'totalTaxAmount' as well, we get a NULL response in this parameter.
https://prnt.sc/yi22NAFLDavK
Please let me know, how we can fulfill our requirements.
Thanks.
hope you were able to figure it out but the reason why it is showing null is because of the structure of your query
totalTaxAmount has fields of amount and currencyCode so to query it would be
totalTaxAmount{
amount,
currencyCode
}
Hi
We already passed the same query as you suggested, but it still gives an empty object even if the tax amount is on the checkout page.
Could you please suggest another way?
Thanks.
I think it would be more helpful if you show me how you're querying the information.
Try changing the e to “a” for the tax. totalTexAmount to totalTaxAmount