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:
- It has an
s_c__Available_On__c
in the past - It has a price and that price is not hidden
- It has available inventory or has
s_c__Track_Inventory__c
unchecked - It has no
s_c__Discontinued_On__c
value or it exists and is in the future - It has any variant with all of the above
Price Calculation
The price shown is set to the price or the sale price if present.
Back to Documentation