Home > Development Notes > Rich Snippets
This document explains where rich snippets (also known as "microdata" or "structured data") are rendered in AspDotNetStorefront and what data drives them. It's broken down by file. Each file that renders rich snippets has its own entry. Several of the files call other files, so the rich snippets are often nested.
The price attributes are rendered if none of the following are true:
The currency is from .Net's RegionInfo.ISOCurrencySymbol, which is derived from the DefaultLocale AppConfig for the requesting store or, if the AppConfig is empty, the system.web/globalization/culture attribute in the web.config.
The three GTIN attributes are mutually exclusive; only none or one can be rendered.
Offering attributes are rendered when the method is called with the sHidePriceUntilCart parameter set to false and the calculated price is more than zero.
The calculated price is determined by the passed in sPrice, sSalePrice, and sExtPrice parameters; the passed in decUpSelldiscountPct parameter; VAT configuration and the passed in sTaxClassID parameter; and the requesting customer's customer level discount.
Aggregate rating attributes are rendered if the reviewed product has one or more ratings in the requesting store (regardless of any store filtering configuration).
Individual rating attributes are rendered for each Rating table row where the rating has a comment, is published, is not deleted, and it not flagged as "filthy".
The calculated price is determined by the passed in sPrice, sSalePrice, sExtPrice, and sChosenAttributesPriceDelta parameters; VAT configuration and the passed in sTaxClassID parameter; and the requesting customer's customer level discount.