ProductVariant
barcode / GTIN support
#36
m-sanders
started this conversation in
Ideas & Requests
Replies: 1 comment 5 replies
-
That's a great suggestion @m-sanders. Out of curiosity, can you elaborate on what you are using the |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello
We've added Product Schema.org structured data markup JSON-LD data to all of our product pages to keep Google happy. Exposing the globally unique product ID (like a GTIN, UPC, ISBN, etc) in the structured data schema.org markup is highly recommended by Google.
From what I can tell, Shopify Storefront API
ProductVariant
type does not expose thebarcode
field (labelled in the admin as "Barcode (ISBN, UPC, GTIN, etc.)") and so we've had to add abarcode
PRODUCTVARIANT
metafield with the same data in order to expose the data to the client. This is problematic as we have the same data in two locations and our team forgets to sometimes add these values or update them. They also need to be the same value for the schema.org market to work correctly with Google Shopping, which cross references the value in the Shopping Feed (the native Barcode field value) with the scraped Schema.org data (the metafield value).It would be ideal if the
ProductVariant
type could expose thebarcode
value the same as with themes:Beta Was this translation helpful? Give feedback.
All reactions