Skip to content

Schema markup for WooCommerce stores

WooCommerce schema markup: what it prints and what to add

WooCommerce already prints Product markup on every product page, with the name, description, image, SKU, price, currency and stock status. Keep Product as the type, check what yours leaves out (brand, a GTIN and one price per variation are the usual gaps), and add those to that block rather than pasting a second one.

The type to use

Product

Product is the type WooCommerce already uses and the one shopping results read, so the type is fine; the work is in the fields. Describe the business itself once, as an Organization or OnlineStore, and if your SEO plugin already outputs one, complete that instead of adding another.

Product on schema.org

What to include

The properties that matter for WooCommerce stores

Most important first. Fill in what's true for you and leave out the rest; every value must also be on the page.

brand
Often missing from the block WooCommerce prints, yet it's the word shoppers type next to the product name. For goods you make yourself, use your shop's name.
gtin13
The barcode from the box. If your products have barcodes, check that the number reaches the markup on a live page; leave the field out for products that have none.
offers
WooCommerce fills in price, currency and stock status from the product's settings. Check the price still matches the page during a sale, and add itemCondition.
sku
Fill in the SKU field on every product, so the markup carries the code you also use in your feeds and stockroom.
image
WooCommerce's block normally carries only the main product image. A list of two or three angles gives search engines and assistants more to go on.
description
WooCommerce usually takes this from the short description, so a short description that says what the product is, its size and what it's made of does double duty.
name
Your WordPress product title, used as it is, so it's only as descriptive as the title: put capacity, size or finish in it.

Example

Copy, then make it yours

This is the markup for a made-up business. Replace every value with your own before you use it.

  1. Change every name, address, number and link to your own, and delete lines that don't apply.
  2. Paste it into your site's header code (website builders call it “code injection” or “custom code”), or let ShopCited add it for you.
  3. Check it with Google's Rich Results Test or the Schema Markup Validator.

Product JSON-LD

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Product",
  "name": "Cast Iron Teapot, 0.8 L, Matt Black",
  "description": "A 0.8 litre cast iron teapot with an enamelled interior and a removable stainless steel infuser. Hand wash and dry straight away.",
  "image": [
    "https://www.example.com/wp-content/uploads/teapot-black-front.jpg",
    "https://www.example.com/wp-content/uploads/teapot-black-infuser.jpg"
  ],
  "sku": "TP-080-BLK",
  "gtin13": "5060391207148",
  "brand": {
    "@type": "Brand",
    "name": "Kurogane Teaware"
  },
  "offers": {
    "@type": "Offer",
    "url": "https://www.example.com/product/cast-iron-teapot-black/",
    "price": "42.00",
    "priceCurrency": "GBP",
    "availability": "https://schema.org/InStock",
    "itemCondition": "https://schema.org/NewCondition",
    "seller": {
      "@type": "Organization",
      "name": "Leaf & Kettle"
    }
  }
}
</script>

Watch out

Mistakes WooCommerce stores make with markup

  • A second Product block pasted on top

    Pasting a complete Product block into a header-code box leaves WooCommerce's own block in place, so the page describes two products, sometimes at two prices. Add to the block WooCommerce prints, or have a developer replace it.

  • A price range where one price belongs

    A product with variations can come out as an AggregateOffer with a lowest and highest price. That suits comparison sites; a shop selling the item does better with a ProductGroup, each variation a Product with its own price and stock.

  • Prices typed into the code by hand

    A block written into a page or widget doesn't change when you edit the product, so the sale ends and the markup keeps the sale price. Add fields with code that reads the product's own data, never as fixed text.

Also worth adding

  • ProductGroup: For variable products, so each variation is described with its own price, SKU and stock instead of a price range.
  • OnlineStore: Once, on your home or about page, with your returns policy as hasMerchantReturnPolicy so it isn't repeated on every product.

FAQ

WooCommerce stores: markup questions

Type to search these questions, or ask anything about getting found on Google and AI.

Can I add brand and GTIN without replacing WooCommerce's markup?

Yes. WooCommerce passes its Product markup through a filter, woocommerce_structured_data_product, before printing it, so a developer can add brand, gtin13 or more images to the block that's already there.

My SEO plugin outputs Product markup too. Which one stays?

The more complete one that updates with your product data; switch the other off. If WooCommerce's own block is the one to go, a developer can remove it with a line of code in a small plugin or child theme.

Is the stock status in WooCommerce's markup reliable?

It follows the stock status set on each product, so it's as reliable as that setting. Stock managed by hand, or synced from a till or warehouse system, is where it drifts.

Someone is asking for your product right now.

Check your store free, then press Optimize. Back to the orders.