Skip to content

Conversation

@samuelfgs
Copy link

@samuelfgs samuelfgs commented Jun 27, 2022

Adding a new commerce provider: Commercetools

Demo: https://commercetools-demo.vercel.app/

Status

  • CommerceProvider
  • Schema & TS types
  • API Operations - Get all collections
  • API Operations - Get all products
  • API Operations - Get product
  • API Operations - Get Shop Info (categories and vendors working — vendors query still a WIP PR on Reaction)
  • Hook - Add Item
  • Hook - Remove Item
  • Hook - Update Item
  • Hook - Get Cart (account-tied carts working, anonymous carts working, cart reconciliation working)
  • Auth (based on a WIP PR on Reaction - still need to implement refresh tokens)
  • Customer information
  • Product attributes - Size, Colors
  • Typing
  • Tests

Commercetools doesn't have pages built-in

@vercel
Copy link

vercel bot commented Jun 27, 2022

Someone is attempting to deploy a commit to the Vercel Solutions Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link

vercel bot commented Jun 27, 2022

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

Name Status Preview Updated
commerce-local ✅ Ready (Inspect) Visit Preview Jun 27, 2022 at 6:06AM (UTC)
commerce-pbt01 ❌ Failed (Inspect) Jun 27, 2022 at 6:06AM (UTC)

const money = (price: TypedMoney | undefined) => {
return price
? {
value: price.centAmount / 100,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would price.centAmount / Math.pow(10, price.fractionDigits) cover more bases?

@leerob
Copy link
Contributor

leerob commented Apr 18, 2023

Hey there! Thank you for your contribution. We have decided to take Next.js Commerce in a new direction and will be closing out current PRs and issues due to this change. Please see this PR for more details: #966

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants