brotkrueml / schema

TYPO3 extension providing an API and view helpers for schema.org markup

Home Page:https://extensions.typo3.org/extension/schema

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MerchantReturnPolicy & OfferShippingDetails types for Offer Properties hasMerchantReturnPolicy & shippingDetails

aksenovaa opened this issue · comments

commented

Google's new guidelines for presenting Offer in search results concern the indication of properties:
https://developers.google.com/search/docs/appearance/structured-data/product#shipping
shippingDetails of type OfferShippingDetails

https://developers.google.com/search/docs/appearance/structured-data/product#returns
hasMerchantReturnPolicy of the type MerchantReturnPolicy

These types are not currently implemented

EXT:schema comes with the core vocabulary (current version with schema.org 15.0, released on 2022-10-25). There are other vocabularies, in your case the pending one is relevant.

The properties you mentioned are pending:

This means, they can change any time (/which would break a site possibly with a minor EXT:schema update). So you have two possibilities:

I suggest to use the second suggestion, this way everything is under your control.

When schema.org integrates the two properties into the core vocabulary, they will be available also in EXT:schema.

See also: https://docs.typo3.org/p/brotkrueml/schema/2.7/en-us/Introduction/Index.html#the-schema-org-vocabulary