WooCommerce Integration

WPSSO Core Pro integration with WooCommerce is extensive and handled automatically – there’s nothing to do – but advanced users and developers may want to know about the following features. ;-)

Additional WooCommerce Product Information

WPSSO Core Pro reads the following product attributes if / when you create them in your WooCommerce store (note that upper / lower case is important).

  • Brand
  • Color
  • Condition (possible values: Damaged, New, Refurbished, or Used)
  • EAN
  • GTIN-8
  • GTIN-12
  • GTIN-13
  • GTIN-14
  • ISBN
  • Material
  • MPN (aka Manufacturer Part Number)
  • Size
  • Gender

Note the limited selection of product condition values (Damaged, New, Refurbished, or Used), which is limited by Google’s Rich Card markup standard – do not use other values.

Note that when creating a WooCommerce product attribute, you can use it for product variations (ie. the WooCommerce “Used for variations” checkbox is selected), or not  — and if not, then its value is used for the main product and inherited by variations. If you use the attribute for variations, then you can assign a default attribute value for all variations under the WooCommerce “Variations” tab, or not — and if not, then each variation is expected to have a unique value, like color, for example.

See the following WooCommerce documentation for information on managing product attributes and product variations:

Google’s Testing Tool Reports “missing a global identifier”?

If Google Testing Tool reports that “This Product is missing a global identifier (e.g. isbn, mpn or gtin8)” for your WooCommerce products, please note that the global identifier referred to by Google here is not the Schema ‘productID’ property, but a general term used by Google for a missing globally common product identifier like the ‘mpn’ property (aka Manufacturer Part Number) or another globally common product identifier (ISBN, GTIN, etc.).

Unfortunately, the often used product ‘sku’ property (aka Stock Keeping Unit) is a number that changes from one retailer to another, so is not valid as a globally common product identifier.

If the Google Testing Tool reports a missing global identifier for your Schema Product markup, make sure you have created one or more WooCommerce attributes for the product MPN, ISBN, GTIN, etc., and update these values for all your products.

Customize Product Attribute Names

You can customize the default product attribute names that WPSSO Core Pro reads from WooCommerce under the SSO > Advanced > Integration tab (click the “unhide these options” link if viewing the basic options list). Modifying the defaults can be useful if you already have or or more existing WooCommerce product attributes with different names – for example “Colour” instead of “Color”. ;-)

The SSO > Advanced > Integration tab, which includes optional WooCommerce product attribute names.

Developers and advanced users can also modify the default attribute names programmatically by hooking the ‘wpsso_product_attribute_names’ filter in their child theme’s functions.php file.

Here is an example to modify all WPSSO default attribute names:

Another example to change only a single attribute name:

Product Prices with Value Added Tax (VAT)

WPSSO Core Pro provides WooCommerce product prices in meta tags and Schema markup without tax. If you prefer your meta tags and Schema markup to include product prices with VAT, you can define the following constant in your wp-config.php file: