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
@type
of theWebPage
piece intoItemPage
. - Alter the
Product
piece.- Apply our validation logic to each existing WooCommerce piece /value.
- Add a
mainEntityOfPage
property to theProduct
, referencing theWebPage
by ID. - Set the
brand
andmanufacturer
properties, based on taxonomy settings. - Set the
seller
to theOrganization
(orPerson
) which is set as thePublisher
of theWebSite
. - Stitch
offers
,review
and/oraggregateRating
values into the graph (when available / as appropriate). - Unset the
datePublished
anddateModified
values from theItemPage
.
Filters
- Customize the Yoast product schema with the
wpseo_schema_product
filter. See Product Schema pieces for more information. - Customize the offer part of the product schema with the
wpseo_schema_offer
filter. See Offer Schema pieces for more information.
On checkout pages
- Change the
@type
of theWebPage
piece toCheckoutPage
.