mirror of
https://github.com/vercel/commerce.git
synced 2025-06-18 21:21:21 +00:00
Merge branch 'master' of github.com:vercel/commerce into shopify
This commit is contained in:
commit
d9d3fb3578
@ -1,3 +1,7 @@
|
|||||||
{
|
{
|
||||||
"provider": "shopify"
|
"provider": "bigcommerce",
|
||||||
|
"features": {
|
||||||
|
"wishlist": true,
|
||||||
|
"customCheckout": false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -10,7 +10,6 @@ import usePrice from '@framework/product/use-price'
|
|||||||
import { useAddItem } from '@framework/cart'
|
import { useAddItem } from '@framework/cart'
|
||||||
import { getVariant, SelectedOptions } from '../helpers'
|
import { getVariant, SelectedOptions } from '../helpers'
|
||||||
import WishlistButton from '@components/wishlist/WishlistButton'
|
import WishlistButton from '@components/wishlist/WishlistButton'
|
||||||
import products from 'framework/bigcommerce/api/catalog/products'
|
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
children?: any
|
children?: any
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
import type { Product } from '@commerce/types'
|
import type { Product } from '@commerce/types'
|
||||||
|
|
||||||
export type SelectedOptions = Record<string, string | null>
|
export type SelectedOptions = Record<string, string | null>
|
||||||
|
|
||||||
export function getVariant(product: Product, opts: SelectedOptions) {
|
export function getVariant(product: Product, opts: SelectedOptions) {
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
"site_name": "Next.js Commerce",
|
"site_name": "Next.js Commerce",
|
||||||
"images": [
|
"images": [
|
||||||
{
|
{
|
||||||
"url": "https://shopify.demo.vercel.store/card.png",
|
"url": "/card.png",
|
||||||
"width": 800,
|
"width": 800,
|
||||||
"height": 600,
|
"height": 600,
|
||||||
"alt": "Next.js Commerce"
|
"alt": "Next.js Commerce"
|
||||||
|
@ -22,8 +22,8 @@
|
|||||||
"@components/*": ["components/*"],
|
"@components/*": ["components/*"],
|
||||||
"@commerce": ["framework/commerce"],
|
"@commerce": ["framework/commerce"],
|
||||||
"@commerce/*": ["framework/commerce/*"],
|
"@commerce/*": ["framework/commerce/*"],
|
||||||
"@framework": ["framework/shopify"],
|
"@framework": ["framework/bigcommerce"],
|
||||||
"@framework/*": ["framework/shopify/*"]
|
"@framework/*": ["framework/bigcommerce/*"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"include": ["next-env.d.ts", "**/*.d.ts", "**/*.ts", "**/*.tsx", "**/*.js"],
|
"include": ["next-env.d.ts", "**/*.d.ts", "**/*.ts", "**/*.tsx", "**/*.js"],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user