gatsby-plugin-next-seo icon indicating copy to clipboard operation
gatsby-plugin-next-seo copied to clipboard

ProductJsonLd `availability` and `itemCondition` aren't working.

Open Inambe opened this issue 2 years ago • 1 comments

Description

offers.availability and offers.itemCondition are not generating any code no matter what value I set it to.

I'm using this but in the front-end, after building, there's no mention of these properties. and Google tester warns that these properties are missing.

offers={{
    ...
    itemCondition: "http://schema.org/NewCondition",
    availability: "http://schema.org/InStock",
    ...
}}

Possible Fix

Have no idea.

Checklist

Inambe avatar Sep 05 '21 15:09 Inambe

@Inambe I ran into this as well, and I think the documentation is a little misleading. The source reveals that these fields are typed to a specific enum. Basically just use InStock instead of http://schema.org/InStock, NewCondition instead of http://schema.org/NewCondition, etc. and they will be converted to the expected values.

albatrocity avatar Apr 26 '22 19:04 albatrocity