App reviews, troubleshooting, and recommendations
How can I get the checkout and order details in checkout UI extension , to show a banner related to the total amount of the order ?
Solved! Go to the solution
This is an accepted solution.
Not sure what you're trying to do but you should be able to get it from the API:
1) if you need the whole order, you can use this API: https://shopify.dev/docs/api/checkout-ui-extensions/unstable/apis/order
useOrder()
2) or, if you just want the total, you can use this API: https://shopify.dev/docs/api/checkout-ui-extensions/unstable/apis/cost
This is an accepted solution.
Thank you for the reply, I have already found a way to get the order and shipping details in the checkout page through
Do you have a Shopify Plus plan?
Hi @MastersHub
No, I'm working on checkout and customer accounts extensibility preview to test my checkout UI extension app.
Thanks in Advance.
This is an accepted solution.
Not sure what you're trying to do but you should be able to get it from the API:
1) if you need the whole order, you can use this API: https://shopify.dev/docs/api/checkout-ui-extensions/unstable/apis/order
useOrder()
2) or, if you just want the total, you can use this API: https://shopify.dev/docs/api/checkout-ui-extensions/unstable/apis/cost
This is an accepted solution.
Thank you for the reply, I have already found a way to get the order and shipping details in the checkout page through
Hi, I'm having an issue getting this to work. I've tried to import the useSubtotalAmount and i get the error:
ExtensionRenderError: ReferenceError: useSubtotalAmount is not defined
Screenshot attached. Do i need to adjust anything in the shopify.extension.toml file? api access is set to true.
I'm just trying to get the subtotal amount so i can conditionally display the banner if the cart total is greater than $50.
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024