Product Structured Data

StoreConnect automatically embeds a product structured data set into your product show page every time the page loads. This is injected within a <script type="application/ld+json"> field after your product show page content.

And will look something like this:

<script type="application/ld+json">
  {
    "@context": "http://schema.org/",
    "@type": "Product",
    "sku": "PRODUCTCODE",
    "gtin": "PRODUCT UPC",
    "image": ["https://example.com/image1.jpg", "https://example.com/image2.jpg"],
    "name": "Product Display Name",
    "description": "Product Description",
    "brand": {
      "@type": "Brand",
      "name": "Brand Name"
    },
    "offers": {
      "@type": "Offer",
        "itemCondition": "http://schema.org/NewCondition",
        "availability": "http://schema.org/InStock",
        "price": "99.00",
      "priceCurrency": "AUD",
      "url": "https://mystore.example.com/products/product-slug"
    }
  }
</script>

In generating this, the following fields are used:

Structured Data Field Source
sku Product2.ProductCode
gtin Product2.s_c__UPC__c
images Array of product image URLs
name Product2.s_c__Display_Name__c
description Product2.s_c__Search_Description__c
brand[name] Product2.Brand_Id__c.Name
offers[@type=Offer][itemCondition] Product2.s_c__Condition__c
offers[@type=Offer][availability] See below on Availability Calculation
offers[@type=Offer][price] The Product Sale Price if present otherwise the List Price
offers[priceCurrency] s_c__Store__c.currencyisocode for multi-currency orgs or s_c__Store__c.s_c__Currency__c
offers[url] URL that the product is available on the website

Availability Calculation

The availability can be set to either In Stock or Out of Stock.

A product is shown as in stock if all of the following are true:

Price Calculation

The price shown is set to the price or the sale price if present.

 

 
Back to Documentation