Hi everybody,
We just launched a store in swif and validation errors appear on all pages with products (lists and product details).
They are the pages where the itemtype="http://schema.org/Product" tag is.
In the Swift_Master file I have found the lines that add that tag:
"@@context": "http://schema.org/",
"@@type": "Product",
"name": "@GetString("Ecom:Product.Name")",
@if (!string.IsNullOrEmpty(image))
{
<text>"image": [
"@siteURL/Admin/Public/GetImage.ashx?width=400&height=400&crop=0&Compression=75&DoNotUpscale=true&image=@image",
"@siteURL/Admin/Public/GetImage.ashx?width=400&height=300&crop=0&Compression=75&DoNotUpscale=true&image=@image",
"@siteURL/Admin/Public/GetImage.ashx?width=448&height=225&crop=0&Compression=75&DoNotUpscale=true&image=@image"
],</text>
}
"description": "@GetString("Ecom:Product.ShortDescription")",
"mpn": "925872",
@if (!string.IsNullOrEmpty(brand))
{
<text>"brand": {
"@@type": "Thing",
"name": "@brand"
},</text>
}
"offers": {
"@@type": "Offer",
"priceCurrency": "@GetString("Ecom:Product.Price.Currency.Code")",
"price": "@GetString("Ecom:Product.Price.Price")",
"availability": "@(GetInteger("Ecom:Product.Stock") > 0 ? "InStock" : "OutOfStock")"
}
}