Skip to content

Add product data to your product pages

How to add or fix product data on Shopify, WooCommerce and BigCommerce when our checker says it is missing.

Published

Product data is code in your page that tells search engines a product's name, price and stock. Shoppers do not see it. For merchant listings, Google requires the name, an image, the price and the currency. It recommends the stock status, a barcode number (GTIN), the brand and a return policy.

If our product page checker says your page has no product data, or a part is missing, follow the steps for your platform.

Shopify

Shopify's own themes add product data for you. Dawn, from version 15, and Horizon add it with Shopify's structured_data filter, for example {{ product | structured_data }}. It includes the name, image, brand, SKU (your store's own product code), price, currency and stock. When a variant has a barcode, it includes that as the GTIN.

If your theme has no product data, ask its developer to add that line to the product template. Themes in Shopify's Theme Store must include product data for Google.

Shopify's product data has no return policy. Check S3 in our checklist covers adding your return and shipping policies to the code that describes your store.

WooCommerce

WooCommerce adds product data to every product page. It includes the name, image, SKU, price, currency and stock. From version 9.3, it also includes the barcode number from the product's "GTIN, UPC, EAN, or ISBN" field. The brand comes from WooCommerce Brands.

For a product with variants, such as sizes, WooCommerce gives a price range. Google's merchant listings need a single price. From WooCommerce 11.0, a link that names one exact variant gets that variant's price.

SEO plugins can change WooCommerce's product data:

  • Yoast WooCommerce SEO adds to it, for example the brand. Set the brand in its plugin settings.
  • Rank Math replaces it with its own.

With Rank Math, enter each barcode number in the product's Inventory tab, in the "GTIN, UPC, EAN, or ISBN" field. Choose where the brand comes from in Rank Math SEO, then General Settings, then WooCommerce.

WooCommerce's own product data has no return policy. If your store is in Coming soon mode, bots get a landing page with no product data. Turn it off at WooCommerce, then Settings, then Site visibility, and choose Live.

BigCommerce

BigCommerce's Cornerstone theme adds product data to product pages. It includes the name, image, SKU, MPN (the maker's part number), barcode number, brand, price, currency and stock. BigCommerce recommends adding "any identifiers, such as GTIN, UPC, and MPN" to each product.

When a product page shows a price range, Cornerstone's product data gives the lowest and highest prices but no single price. Cornerstone's product data has no return policy.

To change Cornerstone's product data, go to Storefront, then Themes, and make a copy of your theme. On the copy, choose Edit theme files and edit templates/components/products/schema.html. Save, then apply the copy to your store. Copies do not get Cornerstone's updates. Ask your developer if you are not sure.

Check it worked

Check your page again with our product page checker. You can also test it with Google's Rich Results Test.

Sources

All accessed .

  1. How To Add Merchant Listing Structured Data, Google.
  2. Liquid filters: structured_data, Shopify.
  3. Dawn theme, sections/main-product.liquid (version 16.0.0), Shopify.
  4. Theme Store requirements, Shopify.
  5. WooCommerce's product data code, class-wc-structured-data.php (version 11.2.1), WooCommerce.
  6. How to fix missing Schema properties for products, Yoast.
  7. How to Use Product Schema for WooCommerce Products, Rank Math.
  8. Cornerstone theme, templates/components/products/schema.html (version 6.22.0), BigCommerce.
  9. Adding Products (v3), BigCommerce.
  10. Stencil Themes, BigCommerce.