A page accessible only to logged in customers that displays all current and previous orders
Describe the solution you'd like
A new useOrders hook existing in packages/commerce and packages/shopify that queries all orders for the current logged in customer. Some of the graphQL data would include:
link to track the order
Describe alternatives you've considered
I've tried to add on to the current getCustomerQuery in packages/shopify/src/customer/use-customer.tsx but it only returns the order id and name. Anything else I add inside the node breaks the query and returns a field not found error. I think this might be because it's setup to query the Storefront API and not the Admin API.
I've also tried to duplicate the useCustomer hook to use as a starting point, but haven’t had any luck yet unraveling the code.
Any help I can get to solve this or with finding the right direction would be greatly appreciated. If I can't figure this out, I think I'll have to switch to liquid and abort this headless solution.
@osseonews Did you by chance use this with Shopify Plus?
I loved the entire experience and everything I learned from making a fully functioning commerce site with Shopify using this template. It's truly on it's way to greatness.
The only thing that I feel Shopify fell short on is linking the checkout to the user.
How did you work around the requirement for the multipass authentication call to link the shopify checkout to the customer?
KLOR is 36-42 keys column-staggered split keyboard. It supports a per key RGB matrix, encoders, OLED displays, haptic feedback, audio, a Pixart Paw3204 trackball and four different layouts, through brake off parts.