How to set up a Rich Snippet for a Product with WooCommerce

In an email a customer of mine, Michael, asked if I could do a blogpost or a video about how to set up the Rich Snippets WordPress Plugin to use with WooCommerce products. So here it is.

Why not using WooCommerce built-in functionalities?

We all know that WooCommerce already makes usage of structured data for their products. However for some users it might be a little bit less information and sometimes you want to add more structured data. So the Rich Snippets WordPress is a great fit if you a) want to get rid of the structured data WooCommerce produces and b) create your own snippets for products.

How to deactivate WooCommerce syntax

This one is easy. Just log-in to your WordPress Dashboard and go to snip > Settings. The plugin will automatically detect if WooCommerce is active and will then offer you a new checkbox that allows you to remove all data produced by WooCommerce:

So what you have to do here is to just check the checkbox and save your settings. Done.

Check the checkbox to remove structured data generated by WooCommerce
Check the checkbox to remove structured data generated by WooCommerce A checkbox that deactivates data generated by WooCommerce

Set up a new global schema

Then go to snip > Global Snippets and add a new snippet that you simply call “Products”. After that just hit the “Product” button and the plugin will start loading all the properties Google recommends on its help pages (of course you can add more later): product properties product properties Hit the “product” button to load the recommended properties for this syntax.

Fill the properties


The name should be the name of the product – of course. Normally this is the title. So just select “Current post title” from the dropdown field.


Them image should be the product image. The best thing you can do here is to use the featured image – a internal feature WordPress provides. An image should be an ImageObject. So please select under the Related types. The plugin will then load three new properties:

  • url
  • height
  • width

Here you should choose the following:

  • Current post thumbnail URL
  • Current posts thumnbail height
  • Current posts thumbnail width



In the description Google wants to see some text. Normally this should be your post content. Here you can choose “Current post content”.


The brand property needs a text of the brands name (like Apple, Nike, etc.). WooCommerce does not provide such information so what you can do here is to check the “overridable” checkbox so that it allows you override this data right in your post.


The review is – as the name suggests a review of the product itself. I guess that most shop owners do not review their products themselves. So it doesn’t really make much sense. I would recommend to delete this property when you do not use it.


The aggregateRating is the rating a products has got from your buyers. In the WooCommerce settings you are able to activate or deactivate if users can rate your products. I highly recommend to activate this feature as the aggregateRating property is a recommended property that everyone should use.

Select “Current Product Rating (WooCommerce)” from the dropdown menu. And that’s it! That the plugin will automatically load properties for the AggregateRating snippet. That re the following four:

  • ratingValue
  • bestRating
  • worstRating and
  • ratingCount.


The offer property awaits one or more Offers. This would be very difficult to setup manually so I’ve built-in a nice function that does everything for you. Simple choose Offers (WooCommerce) from the dropdown and you’re good to go. What it does is to print multiple Offers with an inherited IndividualProduct snippet.


WooCommerce also offers the ability to manage the Stock Keeping Unit (SKU) for each product. You can print it when Stock Keeping Unit (WooCommerce) is selected from the dropdown.

gtin8 | gtin13 | gtin14 | mpn

These are all product identification numbers. Google recommends including at least one of these identifiers for a product. Unfortunately WooCommerce has no custom field to add such a number. So you have two options here:

  1. Mark this property as “overridable” so that you can overwrite it in each product separately.
  2. Or add a new product property. Then use it in your snippet (possible since version 2.5.0).

2 thoughts on “How to set up a Rich Snippet for a Product with WooCommerce