Vercel from Commerce Repository

MIT License

05 Oct 2022

Raysj

Next.js Commerce

Forked On 05 Oct 2022 at 08:50:47

Alan-ws

started

Started On 05 Oct 2022 at 08:22:39
Issue Comment

Vinna152

Shopify Customer Orders Page

Describe the feature you'd like to request

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:

  • date
  • fulfillment status
  • line items
  • addresses
  • payment method
  • subtotal
  • taxes
  • order total
  • link to track the order
  • etc.

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.

Forked On 05 Oct 2022 at 07:38:48

Vinna152

@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?

Commented On 05 Oct 2022 at 07:38:48

Jepal

Next.js Commerce

Forked On 05 Oct 2022 at 05:22:26

Omerta83

started

Started On 05 Oct 2022 at 02:54:29
Pull Request

Cond0r

Dynamic API routes

Created On 05 Oct 2022 at 02:40:36

GxlZ

started

Started On 05 Oct 2022 at 02:38:32
Pull Request

Cond0r

Dynamic API routes

Created On 05 Oct 2022 at 02:35:52

Cond0r

Update errors.ts

Pushed On 05 Oct 2022 at 02:30:16

Cond0r

Update errors.ts

Pushed On 05 Oct 2022 at 02:15:43

Cond0r

Update parser

Pushed On 05 Oct 2022 at 02:09:19
Issue Comment

Vercel

Dynamic API routes
Forked On 05 Oct 2022 at 01:53:12

Vercel

The latest updates on your projects. Learn more about Vercel for Git ↗︎

| Name | Status | Preview | Updated | | :--- | :----- | :------ | :------ | | commerce-bigcommerce | ✅ Ready (Inspect) | Visit Preview | Oct 5, 2022 at 1:53PM (UTC) | | commerce-commercejs | ✅ Ready (Inspect) | Visit Preview | Oct 5, 2022 at 1:53PM (UTC) | | commerce-kibocommerce | ✅ Ready (Inspect) | Visit Preview | Oct 5, 2022 at 1:53PM (UTC) | | commerce-local | ✅ Ready (Inspect) | Visit Preview | Oct 5, 2022 at 1:53PM (UTC) | | commerce-ordercloud | ✅ Ready (Inspect) | Visit Preview | Oct 5, 2022 at 1:53PM (UTC) | | commerce-saleor | ✅ Ready (Inspect) | Visit Preview | Oct 5, 2022 at 1:53PM (UTC) | | commerce-shopify | ✅ Ready (Inspect) | Visit Preview | Oct 5, 2022 at 1:53PM (UTC) | | commerce-spree | ✅ Ready (Inspect) | Visit Preview | Oct 5, 2022 at 1:53PM (UTC) | | commerce-swell | ✅ Ready (Inspect) | Visit Preview | Oct 5, 2022 at 1:53PM (UTC) | | commerce-vendure | ✅ Ready (Inspect) | Visit Preview | Oct 5, 2022 at 1:53PM (UTC) | | salesforce-commerce-cloud | ✅ Ready (Inspect) | Visit Preview | Oct 5, 2022 at 1:53PM (UTC) |

Commented On 05 Oct 2022 at 01:53:12
Pull Request

Cond0r

Dynamic api routes

Created On 05 Oct 2022 at 01:21:53

Cond0r

Update cart.ts

Pushed On 05 Oct 2022 at 12:45:25

Canoe-project

started

Started On 05 Oct 2022 at 12:33:25

Cond0r

Update tsconfig.json

Pushed On 05 Oct 2022 at 12:10:05

WolMkt2

started

Started On 05 Oct 2022 at 11:17:46

Cond0r

Add checkout endpoint parser & update errors

Pushed On 05 Oct 2022 at 11:08:03

Huseindra

started

Started On 05 Oct 2022 at 08:39:57

Cond0r

Update package.json

Pushed On 05 Oct 2022 at 08:11:06

Cond0r

Fix build errors

Pushed On 05 Oct 2022 at 08:09:11

Cond0r

Update Shopify API version (#833)

Pushed On 05 Oct 2022 at 07:50:53

Cond0r

Update types (#831)

  • Update product types

  • Cart types progress, add zod & initial schema validator

  • Update normalize.ts

  • Update with-schema-parser.ts

  • Updated types, schemas & providers

  • Fix providers after schema parse errors

  • Fix paths

  • More provider fixes

  • Fix kibocommerce & commercejs

  • Add customer updated types & fixes

  • Add checkout & customer types

  • Import core types only from commerce

  • Update tsconfig.json

  • Convert hooks interfaces to types

  • Requested changes

  • Change to relative paths

  • Move Zod dependency

Pushed On 05 Oct 2022 at 07:50:53

Cond0r

Merge branch 'main' of github.com:vercel/commerce into dynamic-api-routes

Pushed On 05 Oct 2022 at 07:50:53

Jiwon-Jeong99

started

Started On 05 Oct 2022 at 07:45:29
Pull Request

Cond0r

Shopify Cart API, custom fields & improvements

Created On 05 Oct 2022 at 06:15:58

About Repository

Next.js Commerce
Language: TypeScript
Star: 6264
Fork: 2156
Watchers: 6264
Open Issues: 145
https://github.com/vercel/commerce
MIT License
Last updated: 05 Oct 2022
Tropics: