Published · SEO & GEO · 4 min read

Product Schema for Shopify and WooCommerce: A Step-by-Step Guide

Add product schema to Shopify or WooCommerce so Google can show price, stock and shipping in search. Copy-ready JSON-LD, testing steps, common mistakes.

Insaf Inhaam

Co-Founder & CTO

Co-Founder and CTO of Throughout, based in Colombo, Sri Lanka.

Insaf Inhaam on LinkedIn
One web page feeding a result list, a rich result card and an AI answer

Product schema is a small block of code that tells Google exactly what's on your product page: the product name, price in AUD, whether it's in stock, shipping and returns. With it, your products can show richer results in Google Search, Images and Shopping experiences. Without it, Google has to guess.

The good news is that most stores already have some schema. The bad news is that it's often incomplete.

What Google uses product schema for

Google supports two kinds of product result (Google Search Central):

  • Product snippets: extra details such as review stars and price shown under a normal search result.
  • Merchant listing experiences: shopping-style results that can show price, availability, and shipping and return information. These are only for pages where the shopper can actually buy the product.

The more accurate detail you provide, the more of these experiences your products can qualify for. Schema doesn't guarantee a rich result, though: Google decides what to show.

The properties that matter

PropertyWhat it isNotes
nameProduct nameRequired
imageMain product image URL(s)Required for merchant listings
offers.price + offers.priceCurrencyPrice and currency, e.g. 49.95 and AUDRequired for merchant listings; must match the visible price
offers.availabilityIn stock, out of stock, pre-orderKeep it synced with real stock
brand, sku, gtinIdentifiersHelp Google match your product to searches and Shopping
descriptionProduct descriptionUse your unique description
aggregateRating, reviewRatingsOnly real reviews visible on the page
shippingDetails, hasMerchantReturnPolicyShipping cost and returnsIncreasingly shown in results; you can also set them in Merchant Center

A copy-ready example (JSON-LD)

{
  "@context": "https://schema.org/",
  "@type": "Product",
  "name": "Lavender Soy Candle 300g",
  "image": ["https://yourstore.com.au/images/lavender-candle.webp"],
  "description": "Hand-poured natural soy wax candle with lavender essential oil. Burns for around 50 hours.",
  "sku": "LAV-300",
  "gtin13": "9300000000000",
  "brand": { "@type": "Brand", "name": "Ember & Co" },
  "offers": {
    "@type": "Offer",
    "url": "https://yourstore.com.au/products/lavender-soy-candle-300g",
    "price": "49.95",
    "priceCurrency": "AUD",
    "availability": "https://schema.org/InStock",
    "itemCondition": "https://schema.org/NewCondition"
  }
}

Replace every value with real data from the page. The GTIN shown is a placeholder: only include a GTIN if your product genuinely has one.

Shopify: step by step

  1. Check what your theme already outputs. Open a product page in Google's Rich Results Test. Most modern themes output basic Product schema from the product template.
  2. Find the gaps. The test lists missing fields. Brand, GTIN, reviews, shipping and returns are the usual ones.
  3. Fill the data in Shopify first. Add the vendor (brand), SKU and barcode (GTIN) on each product, because good schema reads from these fields.
  4. Extend the schema. Either use a reputable schema app, or have a developer edit the product section to add the missing properties as JSON-LD. Don't run both, or you'll get duplicate, conflicting Product blocks.
  5. Set shipping and returns in Google Merchant Center if you use it. Google can use these settings too.

WooCommerce: step by step

  1. Test first. WooCommerce outputs basic Product schema by default. Check a product in the Rich Results Test.
  2. Fill in product data: SKU, GTIN (WooCommerce has a GTIN field in recent versions), brand, sale prices and stock status.
  3. Use one SEO plugin for schema. Rank Math, Yoast's WooCommerce add-on and similar plugins extend Product schema. Choose one and turn off duplicate schema output from others.
  4. Check variable products. Each variation's price and stock should be reflected correctly, not just the parent's.

Test, then monitor

  • After changes, re-test 3–5 product URLs in the Rich Results Test.
  • In Search Console, watch the Merchant listings and Product snippets reports under Shopping or Enhancements. They list errors and warnings across all products.
  • Re-check after theme updates and app installs. Both can silently remove or duplicate schema.

Common mistakes

  • A price in the schema that doesn't match the page (often caused by sale prices or currency switchers).
  • Fake or imported reviews marked up as ratings. This breaks Google's guidelines.
  • Two Product blocks on one page from the theme and an app.
  • Marking up products you don't sell directly. Merchant listings are for pages where the shopper can buy.

Need help?

Schema is one of the fixes in Throughout's SEO Fix Sprint. We add complete Product, Organization and Breadcrumb schema in your theme code and test every template.

Frequently asked questions

Does schema improve rankings directly?

Google uses structured data to understand pages and to show richer results. It's not a shortcut to ranking higher, but richer results can improve click-through rates.

JSON-LD or microdata?

Google supports both, but recommends JSON-LD because it's easier to add and maintain.

How long until rich results appear?

After Google recrawls your pages, which can take days to weeks. Request indexing on key products to speed it up.

Related service: SEO services in Sri Lanka