Yoast WooCommerce SEO: Schema output
The schema output for our WooCommerce SEO plugin builds upon the Yoast SEO schema output, to add additional detail about products and ecommerce functionality.
Core functionality
On all pages
- Remove WooCommerce's breadcrumb schema.
On product pages
- Change the
@typeof theWebPagepiece intoItemPage. - Alter the
Productpiece.- Apply our validation logic to each existing WooCommerce piece /value.
- Add a
mainEntityOfPageproperty to theProduct, referencing theWebPageby ID. - Set the
brandandmanufacturerproperties, based on taxonomy settings. - Set the
sellerto theOrganization(orPerson) which is set as thePublisherof theWebSite. - Stitch
offers,reviewand/oraggregateRatingvalues into the graph (when available / as appropriate). - Unset the
datePublishedanddateModifiedvalues from theItemPage.
Filters
- Customize the Yoast product schema with the
wpseo_schema_productfilter. See Product Schema pieces for more information. - Customize the offer part of the product schema with the
wpseo_schema_offerfilter. See Offer Schema pieces for more information.
On checkout pages
- Change the
@typeof theWebPagepiece toCheckoutPage.