-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
🐛 [BUG] - Some fix to do for the Product microdata #357
Comments
alerted also prestashop |
Hi @maofree thb it's not a valid solution. I am closing this issue, thank you for your contribution. |
Actually I am going to reopen this 😄.
|
Hi @Oksydan |
Hi <script type="application/ld+json"> { "@context": "https://schema.org/", "@type": "Product", "name": "Example Product", "hasMerchantReturnPolicy": { "@type": "MerchantReturnPolicy", "returnFees": "Customer pays", "returnPolicyCountry": "FR" }, "shippingDetails": { "@type": "OfferShippingDetails", "shippingRate": { "@type": "MonetaryAmount", "value": "25.00", "currency": "EUR" }, "shippingDestination": { "@type": "DefinedRegion", "addressCountry": "FR" } } } </script> |
Like I said it will required to create a lot of configuration. Like returnPolicy per product or per category, default and also per country. There is a lot of stuff we have to consider while implementing this structural data. It's optional field in product, so atm it's like the lowest priority task. BTW, you can decorate this data with hooks. So you can create a module that implements a hook to populate this data. |
Description
Hi
now I've seen that it is necessary to do some fixes for the Product microdata
these are missing:
priceValidUntil
itemCondition
for priceValidUntil I used this solution
<meta itemprop="priceValidUntil" content="{"+1 year"|date_format:"%Y-%m-%d"}">
these are new requested microdata
hasMerchantReturnPolicy
shippingDetails
looking into StructuredDataProductPresenter.php I have seen that priceValidUntil and itemCondition have some condition
to priceValidUntil it is necessary to set my suggestion if not present a specific price because google needs that info
for itemCondition it should be
https://schema.org/NewCondition
if the first condition is not acceptedmany websites are without the stock management active
for this moment I've fixed so
Node.js version
v16
php version
8.1
OS and it's version
linux
Browsers
Chrome
Required module/theme
theme
Reproduction steps
Logs
No response
The text was updated successfully, but these errors were encountered: