Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Commercetools Provider #774

Closed
wants to merge 1 commit into from
Closed

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
Member

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