Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

barcode field is missing for product variants #942

Open
4 tasks done
IMS94 opened this issue Mar 5, 2023 · 0 comments
Open
4 tasks done

barcode field is missing for product variants #942

IMS94 opened this issue Mar 5, 2023 · 0 comments

Comments

@IMS94
Copy link

IMS94 commented Mar 5, 2023

Bug details

Describe the bug
When we do client.product.fetchAll() and iterate through the products, variants have a barcode field that should be present if set in the store side. The barcode field is not fetched as now and the GraphQL query used to fetch the products/variants doesn't have the barcode field included.

fragment VariantFragment on ProductVariant  { id,title,price { amount,currencyCode },priceV2: price { amount,currencyCode },weight,available: availableForSale,sku,compareAtPrice { amount,currencyCode },compareAtPriceV2: compareAtPrice { amount,currencyCode },image { id,src: url,altText,width,height },selectedOptions { name,value },unitPrice { amount,currencyCode },unitPriceMeasurement { measuredType,quantityUnit,quantityValue,referenceUnit,referenceValue } },fragment ProductFragment on Product  { id,availableForSale,createdAt,updatedAt,descriptionHtml,description,handle,productType,title,vendor,publishedAt,onlineStoreUrl,options { id,name,values },images (first: 250) { pageInfo { hasNextPage,hasPreviousPage },edges { cursor,node { id,src: url,altText,width,height } } },variants (first: 250) { pageInfo { hasNextPage,hasPreviousPage },edges { cursor,node { ...VariantFragment } } } },query ($first:Int!,$query:String,$sortKey:ProductSortKeys,$reverse:Boolean)  { products (first: $first query: $query sortKey: $sortKey reverse: $reverse) { pageInfo { hasNextPage,hasPreviousPage },edges { cursor,node { ...ProductFragment } } } }

To Reproduce
See description

Expected behavior
A clear and concise description of what you expected to happen.

Environment (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • SDK Version [e.g. v1.2.0]

Additional context
Add any other context about the problem here.

Bug Report Checklist

  • I have read and agree to the CODE_OF_CONDUCT.md
  • I have read the CONTRIBUTING.md guidelines.
  • I have provided a detailed description of the bug, including code samples, and/or network data.
  • I have provided information about my development environment, including SDK version.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant