WooCommerce setup: GTIN, shipping and returns

When WooCommerce is active, Rilea SEO builds complete Product schema for every product automatically. A few extra details (brand, GTIN, shipping and returns) make it eligible for richer results. Here's how to add them.

Rilea SEO docsVersion 1.1.04 min read

In short

  • Product schema is automatic: name, images, description, SKU, price, stock, variations and reviews come from WooCommerce.
  • Add brand, GTIN and MPN in each product's Inventory section, next to the SKU.
  • Set a shipping country, rate and return window in Settings, then WooCommerce, to add shipping and return policy details.
  • Products hidden from the catalog are noindexed automatically.

What Rilea SEO outputs for a product

On every product page, Rilea SEO adds a Product entity to the page's schema graph, built from your WooCommerce data:

  • Name, description and images: the product title, short description (or full description if there's no short one), main image and gallery.
  • SKU: from the product's SKU field.
  • Offer: price, currency, availability (in stock, on backorder or out of stock), condition and a price-valid-until date. A sale end date is used when there is one; otherwise the end of next year.
  • Variable products: an AggregateOffer with the lowest and highest variation prices.
  • Reviews: the average rating and review count when WooCommerce reviews and ratings are on, plus up to five recent reviews.
  • Seller: your organization, linked from the site-wide schema.

You don't need to choose a schema type for products. Leave the default for products as Product in Settings, then Schema.

Step 1: Add brand, GTIN and MPN

Global identifiers help Google match your product to the same item elsewhere and are recommended for product rich results and Merchant listings.

  1. Edit a product and open Product data, then the Inventory tab.
  2. Below the SKU, fill in GTIN / UPC / EAN / ISBN with the barcode number, MPN with the manufacturer part number if there's no GTIN, and Brand with the brand name.
  3. Update the product.

If you leave Brand empty, Rilea SEO uses a brand from a brands taxonomy if your store has one: WooCommerce's own Brands (product_brand), a Brand attribute (pa_brand) or Perfect Brands for WooCommerce. You can fill these fields for many products at once with WooCommerce's CSV product importer, using the meta fields _rilea_gtin, _rilea_mpn and _rilea_brand.

Only enter real identifiers. Don't invent a GTIN for products that don't have one; leave it empty and use the MPN and brand instead.

Step 2: Add shipping and returns

Google uses shipping costs and return policies in product results. Go to Rilea SEO, then Settings, then WooCommerce:

SettingEffect
Shipping country codeThe two-letter country you ship to, such as US. Turns on shipping details in your offers.
Flat shipping rateThe shipping cost in your store currency. Use 0 for free shipping.
Return window (days)Adds a return policy with this many days to return. Needs a shipping country.

The return policy is described as returns by mail with free returns. If your returns aren't free, or your shipping costs vary a lot by product or destination, leave these fields empty and set your shipping and return policies in Google Merchant Center instead, where you can describe them in full.

Shipping and return details are added to simple products' offers. Variable products show their price range without them.

Step 3: Check titles and descriptions

In Settings, then Titles & Meta, set templates for products and product categories. Product variables help here:

  • %wc_price%: the current price
  • %wc_sku%: the SKU
  • %wc_brand%: the brand

A template like %title% by %wc_brand% %sep% %sitename% gives every product a consistent, descriptive title. Write custom titles by hand for your best sellers.

Hidden products

Products with their catalog visibility set to Hidden are given noindex automatically, so search engines don't index products you've deliberately kept out of your shop.

Product categories and tags

Product categories often rank for broad searches, so check they aren't set to noindex in Settings, then Titles & Meta, and include them in Settings, then Sitemaps. Give your main categories a description and a custom title in their Rilea SEO settings when you edit the category. Product tags usually create thin, duplicate pages, so consider setting them to noindex in Titles & Meta.

Test a product

  1. Open a product page in Google's Rich Results Test.
  2. Check for one Product snippet or Merchant listing with no errors.
  3. Check the price and availability match what the page shows.

If you see two Product entities, your theme or another plugin is adding its own. See fixing duplicate tags.

Out-of-stock and discontinued products

Out-of-stock products stay indexed with availability set to out of stock, which is right if they're coming back. When a product is discontinued for good, redirect it to its replacement or category in the redirect manager.

Still stuck? Check the support FAQ or get in touch, and we'll help.

Get help

Put your SEO budget somewhere else.

Install Rilea SEO, import your settings and keep every feature, for free.

Scroll to Top