mirror of
https://github.com/vercel/commerce.git
synced 2025-06-19 05:31:22 +00:00
Shopify provider fixes (#239)
* Changed to query page by id * Fixed page query, Changed use-search GraphQl query * Update use-search.tsx * remove unused util * Changed cookie expiration * Update tsconfig.json * Fix add to cart & prepare for user activation * Update helpers.ts * Update helpers.ts * Changes, fix Shopify GraphQL deprecations * Update checkout-to-cart.ts * Default to BigCommerce * Update index.ts * Fixed types * Update customer-access-token-delete.ts * Fix item missing path * Update customer-access-token-delete.ts
This commit is contained in:
parent
d7ce1efe5f
commit
8e84beb810
@ -3,7 +3,7 @@ const customerAccessTokenDeleteMutation = /* GraphQL */ `
|
||||
customerAccessTokenDelete(customerAccessToken: $customerAccessToken) {
|
||||
deletedAccessToken
|
||||
deletedCustomerAccessTokenId
|
||||
customerUserErrors {
|
||||
userErrors {
|
||||
field
|
||||
message
|
||||
}
|
||||
|
@ -148,7 +148,7 @@ function normalizeLineItem({
|
||||
price: variant?.priceV2?.amount,
|
||||
listPrice: variant?.compareAtPriceV2?.amount,
|
||||
},
|
||||
path: '',
|
||||
path: String(variant?.product?.handle),
|
||||
discounts: [],
|
||||
options:
|
||||
// By default Shopify adds a default variant with default names, we're removing it. https://community.shopify.com/c/Shopify-APIs-SDKs/Adding-new-product-variant-is-automatically-adding-quot-Default/td-p/358095
|
||||
|
@ -43,6 +43,9 @@ export const checkoutDetailsFragment = `
|
||||
amount
|
||||
currencyCode
|
||||
}
|
||||
product {
|
||||
handle
|
||||
}
|
||||
}
|
||||
quantity
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user