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

ProductJsonLd availability and itemCondition aren't working. #64

Open
1 task done
Inambe opened this issue Sep 5, 2021 · 1 comment
Open
1 task done

ProductJsonLd availability and itemCondition aren't working. #64

Inambe opened this issue Sep 5, 2021 · 1 comment

Comments

@Inambe
Copy link

Inambe commented Sep 5, 2021

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

@albatrocity
Copy link

@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.

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

2 participants