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:
cond0r 2021-03-19 18:04:19 +02:00 committed by GitHub
parent d7ce1efe5f
commit 8e84beb810
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 2 deletions

View File

@ -3,7 +3,7 @@ const customerAccessTokenDeleteMutation = /* GraphQL */ `
customerAccessTokenDelete(customerAccessToken: $customerAccessToken) { customerAccessTokenDelete(customerAccessToken: $customerAccessToken) {
deletedAccessToken deletedAccessToken
deletedCustomerAccessTokenId deletedCustomerAccessTokenId
customerUserErrors { userErrors {
field field
message message
} }

View File

@ -148,7 +148,7 @@ function normalizeLineItem({
price: variant?.priceV2?.amount, price: variant?.priceV2?.amount,
listPrice: variant?.compareAtPriceV2?.amount, listPrice: variant?.compareAtPriceV2?.amount,
}, },
path: '', path: String(variant?.product?.handle),
discounts: [], discounts: [],
options: 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 // 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

View File

@ -43,6 +43,9 @@ export const checkoutDetailsFragment = `
amount amount
currencyCode currencyCode
} }
product {
handle
}
} }
quantity quantity
} }