266 Commits

Author SHA1 Message Date
Chloe
951263c7e2
more design fix
Signed-off-by: Chloe <pinkcloudvnn@gmail.com>
2024-07-10 13:57:44 +07:00
jrphilo
c8a627d454
feat: try to add dynamic store name
Signed-off-by: jrphilo <james.philo@me.com>
2024-07-09 14:05:51 +02:00
jrphilo
5d4402e744
feat: add shipping policy details
Signed-off-by: jrphilo <james.philo@me.com>
2024-07-09 14:04:22 +02:00
jrphilo
33836a3485
fix: remove console logs
Signed-off-by: jrphilo <james.philo@me.com>
2024-07-08 09:24:32 +02:00
jrphilo
86d0ec631c
feat: add sku to pdp details
Signed-off-by: jrphilo <james.philo@me.com>
2024-07-08 09:21:56 +02:00
jrphilo
e3148ce02a
feat: add sku to the variant selector page
Signed-off-by: jrphilo <james.philo@me.com>
2024-07-08 09:18:19 +02:00
Chloe
0fb7d0d3e5
add support for transfer case content
Signed-off-by: Chloe <pinkcloudvnn@gmail.com>
2024-07-07 11:38:08 +07:00
Chloe
cc2c79764d
add PDP content
Signed-off-by: Chloe <pinkcloudvnn@gmail.com>
2024-07-07 11:09:24 +07:00
Chloe
87685fda61
fix: add additional information section
Signed-off-by: Chloe <pinkcloudvnn@gmail.com>
2024-06-17 16:21:32 +07:00
Chloe
a11287d4ad
fix: update PDP layout
Signed-off-by: Chloe <vanguyen.work@gmail.com>
2024-06-17 11:04:43 +07:00
Chloe
ca37984cff
fix: update layout for PLP
Signed-off-by: Chloe <pinkcloudvnn@gmail.com>
2024-06-12 17:10:58 +07:00
jrphilo
6a32faf3cb
feat: add core charge content
Signed-off-by: jrphilo <james.philo@me.com>
2024-05-27 10:57:23 +02:00
Chloe
4684d54ac3
fix: create side dialog for content inside PDP
Signed-off-by: Chloe <pinkcloudvnn@gmail.com>
2024-05-21 15:19:00 +07:00
jrphilo
2cdfae11b2
fix: remove priceincart
Signed-off-by: jrphilo <james.philo@me.com>
2024-05-13 07:37:28 +02:00
jrphilo
598c1ad53e
feat: playing around with styles and layout on PDP
Signed-off-by: jrphilo <james.philo@me.com>
2024-05-12 13:39:14 +02:00
Chloe
438e1ac20f
fix: close modal when variant is selected
Signed-off-by: Chloe <pinkcloudvnn@gmail.com>
2024-05-08 16:24:08 +07:00
Chloe
78a79a44b7
fix: update PLP display
Signed-off-by: Chloe <pinkcloudvnn@gmail.com>
2024-05-08 14:11:16 +07:00
Chloe
e0cd6ac2bd
feat: add metafields to variant options
Signed-off-by: Chloe <pinkcloudvnn@gmail.com>
2024-05-03 12:28:37 +07:00
Chloe
2ad07c3682
feat: implement variant selector panel
Signed-off-by: Chloe <pinkcloudvnn@gmail.com>
2024-05-02 19:14:30 +07:00
Chloe
3bf7fa5af9
fix: update core charge appearance
Signed-off-by: Chloe <pinkcloudvnn@gmail.com>
2024-04-26 19:24:58 +07:00
Chloe
3a3ff3798f
fix: update dark text color and fix responsive issues
Signed-off-by: Chloe <pinkcloudvnn@gmail.com>
2024-04-25 15:29:44 +07:00
Chloe
59c3f07beb
feat: adding more information warranty, part number, sku, speciall offers
Signed-off-by: Chloe <pinkcloudvnn@gmail.com>
2024-04-25 14:14:20 +07:00
Chloe
e3f564ca77
feat: first step of adding core charge functionality
Signed-off-by: Chloe <pinkcloudvnn@gmail.com>
2024-04-24 16:38:08 +07:00
Chloe
649a54891c
fix: update brand color for PDP
Signed-off-by: Chloe <pinkcloudvnn@gmail.com>
2024-04-23 16:37:32 +07:00
Lee Robinson
25ddc5e643
Update dependencies. (#1314) 2024-03-26 16:15:01 -05:00
Michael Novotny
857a1df0f6
Changes product detail gallery thumbnails to always be square (#1160) 2023-08-08 10:19:23 -05:00
Michael Novotny
c6eb7a30f9
Changes variants to use router replace (#1157) 2023-08-08 10:00:08 -05:00
Emir Morgan
80bb15a7dc
Disable scrolling to the top when switching between gallery images with arrow buttons (#1139) 2023-08-03 16:04:44 -05:00
Michael Novotny
9c813577e1
Optimizes image sizes (#1140) 2023-08-02 21:07:35 -05:00
Michael Novotny
71c9cb96fa
Uses url instead of setState for image gallery (#1133) 2023-08-01 20:18:56 -05:00
Lee Robinson
cd8f4c6b4c
Fix hydration error (#1117)
---------

Co-authored-by: Michael Novotny <manovotny@gmail.com>
2023-07-28 15:00:48 -07:00
Michael Novotny
61b134a66c
Revert "Update variant-selector.tsx (#1115)" (#1116)
This reverts commit 7dc7e6d6e45facc0a7b3ed1816ea123fa6aac84e.
2023-07-25 13:42:51 -07:00
Tim Neutkens
7dc7e6d6e4
Update variant-selector.tsx (#1115) 2023-07-25 13:23:05 -07:00
Michael Novotny
69a68dd408
Fixes Lighthouse accessibility issues (#1112)
Co-authored-by: Lee Robinson <lrobinson2011@gmail.com>
2023-07-25 10:40:39 -07:00
Michael Novotny
29aaa8cac6
Disables link scroll on variant selection (#1109)
* Disables link scroll on variant selection

* Fix TS error
2023-07-25 09:00:31 -07:00
Lee Robinson
59fc2bc2e9
Update to new design. (#1103) 2023-07-24 19:40:29 -07:00
Michael Novotny
585b3bbff8
Replaces Route Handlers with Server Actions (#1050) 2023-06-17 11:18:00 -07:00
Tobias Lins
9ea5671579
Don't fail when collections are not found (#996)
* Don't fail when collections are not found

* fix another error
2023-04-26 09:26:52 -05:00
Michael Novotny
af21b29b73
Disables Add to Cart while mutating (#987) 2023-04-25 09:38:47 -05:00
Lee Robinson
fd9450aecb
Next.js Commerce refresh. (#966)
We're making some updates to Next.js Commerce. Everything prior to this commit marks what we're calling [`v1`](https://github.com/vercel/commerce/releases/tag/v1) as a point in time to be able to reference and still use going into the future. The current architecture of Commerce is a multi-vendor, interoperable solution, including:

- [Shopify](https://shopify.vercel.store/)
- [Swell](https://swell.vercel.store/)
- [BigCommerce](https://bigcommerce.vercel.store/)
- [Vendure](https://vendure.vercel.store/)
- [Saleor](https://saleor.vercel.store/)
- [Ordercloud](https://ordercloud.vercel.store/)
- [Spree](https://spree.vercel.store/)
- [Kibo Commerce](https://kibocommerce.vercel.store/)
- [Commerce.js](https://commercejs.vercel.store/)
- [SalesForce Cloud Commerce](https://salesforce-cloud-commerce.vercel.store/)

All features can be toggled on or off, and it's easy to change between commerce providers. To support this, we needed to create a ["commerce metaframework"](d1d9e8c434/packages/commerce/new-provider.md) where providers could confirm to an API spec to add support for Next.js Commerce. While this worked and was successful for `v1`, we have different design goals and ambitions for `v2`.

**What You Need To Know**

- `v1` will not be updated moving forward. If you need to reference `v1`, you will still be able to clone and deploy the version tagged at this release.
- `v2` will be shifting to be a single provider vs. provider agnostic. Other providers are welcome to fork this repository and swap out the underlying `lib/` implementation that connects to the selected commerce provider (Shopify). This architecture was chosen to reduce the surface area of the codebase, remove the intermediate metaframework layer for provider-interoperability, and enable usage with the latest Next.js and React features.
- We will be sharing more about `v2` in the future as we continue to iterate before the marked release.
2023-04-17 22:00:47 -05:00
Luis Alvarez D
0afe686fe9
Monorepo with Turborepo (#651)
* Moved everything

* Figuring out how to make imports work

* Updated exports

* Added missing exports

* Added @vercel/commerce-local to `site`

* Updated commerce config

* Updated exports and commerce config

* Updated commerce hoc

* Fixed exports in local

* Added publish config

* Updated imports in site

* It's actually working

* Don't use debugger in dev for better speeds

* Improved DX when editing packages

* Set up eslint with husky

* Updated prettier config

* Added prettier setup to every package

* Moved bigcommerce

* Moved Bigcommerce to src and package updates

* Updated setup of bigcommerce

* Moved definitions script

* Moved commercejs

* Move to src

* Fixed types in commercejs

* Moved kibocommerce

* Moved kibocommerce to src

* Added package/tsconfig to kibocommerce

* Fixed imports and other things

* Moved ordercloud

* Moved ordercloud to src

* Fixed imports

* Added missing prettier files

* Moved Saleor

* Moved Saleor to src

* Fixed imports

* Replaced all imports to @commerce

* Added prettierignore/rc to all providers

* Moved shopify to src

* Build shopify in packages

* Moved Spree

* Moved spree to src

* Updated spree

* Moved swell

* Moved swell to src

* Fixed type imports in swell

* Moved Vendure to packages

* Moved vendure to src

* Fixed imports in vendure

* Added codegen to saleor

* Updated codegen setup for shopify

* Added codegen to vendure

* Added codegen to kibocommerce

* Added all packages to site's deps

* Updated codegen setup in bigcommerce

* Minor fixes

* Updated providers' names in site

* Updated packages based on Bel's changes

* Updated turbo to latest

* Fixed ts complains

* Set npm engine in root

* New lockfile install

* remove engines

* Regen lockfile

* Switched from npm to yarn

* Updated typesVersions in all packages

* Moved dep

* Updated SWR to the just released 1.2.0

* Removed "isolatedModules" from packages

* Updated list of providers and default

* Updated swell declaration

* Removed next import from kibocommerce

* Added COMMERCE_PROVIDER log

* Added another log

* Updated turbo config

* Updated docs

* Removed test logs

Co-authored-by: Jared Palmer <jared@jaredpalmer.com>
2022-02-01 14:14:05 -05:00
B
f3cdbe682b
Bump (#642)
* Packages Bump

* Code Updated

* More API Changes

* Working updates

* Updated Tailwind Config

* SWR API updates

* More changes

* Commercejs Types

* Commercejs Types

* Commercejs Types
2022-01-13 15:30:14 +01:00
Chris Vibert
d8b42acfa2
Commerce.js Provider (#548)
* commercejs: Initial commit with basic product list

* ui: Handle no variants on product

* commercejs: Support individual product pages

* commercejs: Use separate sdkFetch function

* commercejs: Show option hex colors based on option name

* commercejs: Support product search and filter

* commercejs: Enable carts feature

* commercejs: Remove unused API endpoints

* commercejs: Fix adding variants to cart

* commercejs: Fix types for update cart hook

* commercejs: Update README

* commercejs: Add sorting to product search

* commercejs: Add generic types to cart actions

* commercejs: Better cart normalization

* commercejs: Provide typing for sdkFetch function

* commercejs: Refactor product search logic

* commercejs: Update commercejs types package and export types from local directory

* commercejs: Remove unused checkout hooks

* commercejs: Enhance fetcher to allow custom API routes

* commercejs: Fix product types

* commercejs: Add checkout functionality

* commercejs: Add commercejs to README list of providers

* commercejs: Add login/logout auth hooks

* commercejs: Adds comment to sdkFetch function

* commercejs: Bring back empty useSignup hook to fix build

* commercejs: Refactor useCheckout hook logic

* commercejs: Add errors to fetcher function if using invalid resource/method

* commercejs: Remove use of hex colors for color variants

* ui: Fix undefined error when no variants

* commercejs: Handle add to cart when no variants

* commercejs: Enable customer auth feature

* commercejs: Rename public key env variable as commercejs

* commercejs: Remove duplicate customer fields

* commercejs: Use variants API to generate product variants

* commercejs: Fetch all products using sort order

* commercejs: Fix use of normalizeProduct function

* commercejs: Disable customer auth

* commercejs: Show selected variant details in cart view

* commercejs: Update to latest commercejs types

* commercejs: Fix login email

* commercejs: Remove unnecessary ts-ignore

* api: Allow parameter to be passed to login API

* api: Allow login handler to accept GET requests

* commercejs: Add login API for login callback email link

* commercejs: Remove unused argument to API

* commercejs: Add hook to fetch logged in customer

* commercejs: Rename token to match SDK name

* commercejs: Enable logout

* commercejs: Fix VERCEL_URL env variable

* commercejs: Fix using vercel deployment url

* commercejs: Add deployment url env vars to templates

* Replace yarn with npm

* commercejs: Allow checkout submit even without card/address details

* ui: Add loading and cart refresh to checkout

* commercejs: Leave link to issue on TODO comment

* Update docs/README/env.template for commercejs provider

* ui: Prevent toggle loading after component unmount

* commercejs: Handle product without images

* ui: Explicity set loading to false after checkout

* Revert "api: Allow parameter to be passed to login API"

This reverts commit c3713ec6e23f1b423a071a31221069995d419486.

* commercejs: Handle login using API redirect

* commercejs: Adds shipping and billing details to checkout data

* commercejs: Fix types for fetcher and submit checkout

* commercejs: Update README with demo url

* commercejs: Update checkout hooks to use checkout context

* commercejs: Update checkout logic to use customer fields

* ui: Clear checkout fields context after checkout

* commercejs: Remove unused clear checkout function

* commercejs: Import constants directly
2021-12-16 16:06:52 -03:00
Maaz
2271864057
Update keen-slider (#592)
Co-authored-by: Gonzalo Pozzo <gonzalo.pozzo4@gmail.com>
2021-12-15 14:24:06 -03:00
Gonzalo Pozzo
73470c9232
Run prettier fix on all files (#581) 2021-11-25 09:17:13 -03:00
Gonzalo Pozzo
96e990268d
Add aria attributes (#580) 2021-11-24 14:29:55 -03:00
Luis Alvarez D
582e9257d9
Update Next.js to 12 and switch to npm (#562)
* Update Commerce to Next.js 12

* Switch to npm

* Removed yarn

* Updated fetch type

* Fixed issue with BC deployment
2021-11-09 10:12:00 -06:00
Pedro Vinícius
4b58f6365a
Update ProductView.tsx (#433)
When you navigate to other product page, the options selected by default don't change and the options from the last product navigated are used. Adding a key to "ProductSideBar" component, makes it refresh default options and refresh actual product selected options when i navigate for many products.
2021-09-23 14:44:32 -03:00
Luis Alvarez D
0e7e7b7d5f
Add Next.js ESLint (#425)
* Added Next.js eslint

* added eslint to lint-staged

* Added eslint config for prettier

* Fixed eslint issues in multiple files

* Fixed error in linter
2021-08-02 21:54:58 -05:00
Gandharv
44ce537b57
remove spread operator from <Link> component (#263)
* remove spread operator from <Link> component

* Remove props destructuring

Co-authored-by: Luis Alvarez <luis@vercel.com>
2021-07-29 23:57:02 -05:00