Merge branch 'master' of github.com:vercel/commerce into shopify

This commit is contained in:
okbel 2021-03-10 16:52:25 -03:00
commit d9d3fb3578
5 changed files with 8 additions and 6 deletions

View File

@ -1,3 +1,7 @@
{
"provider": "shopify"
"provider": "bigcommerce",
"features": {
"wishlist": true,
"customCheckout": false
}
}

View File

@ -10,7 +10,6 @@ import usePrice from '@framework/product/use-price'
import { useAddItem } from '@framework/cart'
import { getVariant, SelectedOptions } from '../helpers'
import WishlistButton from '@components/wishlist/WishlistButton'
import products from 'framework/bigcommerce/api/catalog/products'
interface Props {
children?: any

View File

@ -1,5 +1,4 @@
import type { Product } from '@commerce/types'
export type SelectedOptions = Record<string, string | null>
export function getVariant(product: Product, opts: SelectedOptions) {

View File

@ -11,7 +11,7 @@
"site_name": "Next.js Commerce",
"images": [
{
"url": "https://shopify.demo.vercel.store/card.png",
"url": "/card.png",
"width": 800,
"height": 600,
"alt": "Next.js Commerce"

View File

@ -22,8 +22,8 @@
"@components/*": ["components/*"],
"@commerce": ["framework/commerce"],
"@commerce/*": ["framework/commerce/*"],
"@framework": ["framework/shopify"],
"@framework/*": ["framework/shopify/*"]
"@framework": ["framework/bigcommerce"],
"@framework/*": ["framework/bigcommerce/*"]
}
},
"include": ["next-env.d.ts", "**/*.d.ts", "**/*.ts", "**/*.tsx", "**/*.js"],