Installation and Setup

  1. Purchase the plugin Schema App WooCommerce
  2. Links to download the plugin is on your receipt page and in an email after the payment is processed.
  3. Install the plugin in WordPress by
    1. Login to your WP Admin, Go to ⇒ Plugins ⇒ Add New
    2. Upload the plugin, include the zip file downloaded from Step 2
    3. Activate the plugin
  4. The plugin will work once activated, however, for 12 months of upgrades and support you must activate it. Your license key is found in Schema App’s License page. Login credentials are sent from
  5. With the key, activation is done with the sister plugin, Schema App, a free plugin in the WordPress repository.
    1. Login to your WP Admin, Go to ⇒ Plugins ⇒ Add New
    2. Search for Schema App (by Hunch Manifest)
    3. Install Schema App plugin
    4. Activate plugin
    5. Optional, go to Settings>Schema App and enter your Account ID in settings. Account ID can be found in original WooCommerce purchase email.
  6. Go to Settings -> Schema App and click on the License Tab. The License tab allows you to Activate for the current website.

Customized Properties

The Schema App WooCommerce plugin looks at your WooCommerce Product Data to directly map as many fields as possible. These built-in mappings include:

  • Name
  • Description
  • URL
  • Category
  • Offer price, priceCurrency, availability
  • Review, AggregateRating

Where WooCommerce does not have a built-in field that can be mapped to fields, the plugin looks at your Product attributes. For these fields, we look for attribute names that are the same as the properties. These include:

  • gtin8
  • gtin12
  • gtin13
  • gtin14
  • color
  • itemCondition (added in v0.2.3)

When you want to customize the field for a product, add a WooCommerce attribute by the same name (case insensitive) and we’ll include those values.

For all other visible properties, we add them to the product through “additionalProperty” and using the type.

Template Overrides

It is possible you may see Two products in structured data. This is a result of your Theme templates over-riding the default WooCommerce template.  The goal of this plugin is to improve the structured data for your site without changing your site’s appearance. WooCommerce allows Themes to override templates to appear consistent with its look and feel. As a plugin author, we can rely on knowing WooCommerce’s templates but not every theme. Therefore, this plugin’s template overrides the WooCommerce templates but in turn, is overridden by theme templates.

How can you know if this applies to you?

If Schema App WooCommerce is installed and active, then a product page tested on Google Structured Data Testing Tool will show 2 products.

You can also check by going to WP Admin –> WooCommerce –> System Status page. Check if “content-single-product.php” appears in the Template section. If it is there, then your theme overrides WooCommerce’s template. To preserve the look and feel of your website Schema App WooCommerce does not override these.

What is the impact?

It’s worth mentioning that you having two products in your structured data testing tool may not cause any issues. Google has said that when they see two similar data items on the same page, they take the one with more details. In this case, the Schema App WooCommerce will be taken. In this situation, Google may simply disregard the data from your theme’s microdata. We’ve not yet seen negative consequences from this issue. However, if you want the best markup, and it’s likely you do if you’ve bought the plugin, then keep reading.

How can we fix this?

There are three ways to fix it, either to use the remove microdata option from Schema App core plugin, edit your template files to remove microdata or default back to the WooCommerce theme files.

1) Remove Microdata option

The first, easiest method is to use the “Remove Microdata” feature of Schema App core plugin. This can be found under WP Admin –> Settings –> Schema App –> Settings tab, select on the checkbox “Remove Microdata”. This feature will filter the WordPress HTML output to remove all microdata schema markup. We use this option to override the Impreza theme microdata schema markup.

Otherwise, the next best options involve the following development of 4 template files in your theme’s folder structure:

  • /templates/content-single-product.php
  • /templates/single-product/price.php
  • /templates/single-product/rating.php
  • /templates/single-product/review.php
2) Change the theme templates

To markup WooCommerce pages correctly this plugin uses four template overrides. You will want to remove any HTML with itemprop, itemscope and itemtype from the 4 template files listed above. Ideally, you want to do this in a child theme so that your changes are not replaced when you update your theme.

See WordPress Documentation for How to Create a child theme.

Look for four files from your parent theme into the child theme, follow the same folder pattern. The following is an example.

  • /wp-content/YOURTHEME/woocommerce/content-single-product.php to /wp-content/CHILDTHEME/woocommerce/content-single-product.php
  • /wp-content/YOURTHEME/woocommerce/single-product/price.php to /wp-content/CHILDTHEME/woocommerce/single-product/price.php
  • /wp-content/YOURTHEME/woocommerce/single-product/rating.php to /wp-content/CHILDTHEME/woocommerce/single-product/rating.php
  • /wp-content/YOURTHEME/woocommerce/single-product/review.php to /wp-content/CHILDTHEME/woocommerce/single-product/review.php

Then in each file, search and remove attributes including itemscope, itemprop and itemtype. Examples that follow have the microdata in bold removed.

Example 1:

<div itemscope itemtype=”<?php echo woocommerce_get_product_schema(); ?>” id=”product-<?php the_ID(); ?>” <?php post_class(); ?>>

… becomes …

<div id=”product-<?php the_ID(); ?>” <?php post_class(); ?>>

Example 2:

<div itemprop=”offers” itemscope itemtype=”” class=”summary”>

.. becomes …
<div class=”summary”>

Example 3:

<h1 itemprop=”name” class=”product_title entry-title”>Silla de ducha y WC Clean</h1>

… becomes …

<h1 class=”product_title entry-title”>Silla de ducha y WC Clean</h1>

When you’re done, activate the child theme and retest the schema markup.

3) Remove the theme templates

An easy way to do this would be to rename your theme’s template files mentioned above. This would restore this plugin’s templates, which are exactly the same as WooCommerce’s templates minus the structured data.

Request Customization

If you would like our team to customize your WooCommerce schema markup implementation, contact our team below. We’ll access your needs to see how we can solve you needs out-of-the-box. A typical WooCommerce install costs $100 USD.