Microdata for Price

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
7 years ago
If price has another format from the USA (ex. for the USA $1234.99) the store's owner will have problem (warning in Google console).

Example.
Price for Russian, France has the next format (with dot and comma)
1.123,99

Documentation
http://schema.org/price

You should use contenttag.
Change _ProductPrice.cshtml in two place.

old line 46
            <span @if (String.IsNullOrWhiteSpace(Model.PriceWithDiscount)) { <text> itemprop="price" class="price-value-@(Model.ProductId)" </text>  }>

new line 46

            <span @if (String.IsNullOrWhiteSpace(Model.PriceWithDiscount)) { <text> itemprop="price" content="@Model.PriceValue.ToString("0.00", System.Globalization.CultureInfo.InvariantCulture)" class="price-value-@(Model.ProductId)" </text>  }>

old line 55
                <span itemprop="price" class="price-value-@(Model.ProductId)">

new line 55

                <span itemprop="price" content="@Model.PriceValue.ToString("0.00", System.Globalization.CultureInfo.InvariantCulture)" class="price-value-@(Model.ProductId)">
7 years ago
Hi,

Thanks a lot for reporting. Fixed
7 years ago
According to google spec for microdata, the price should be separated out from the currency symbol,

https://support.google.com/merchants/answer/6069143?hl=en-GB

<meta itemprop="priceCurrency" content="GBP" />£
      <span itemprop="price">229.95</span>

This will require an update to the model and controller as the currency symbol doesn't seem to be there as a separate property.
7 years ago
NopCommerce uses tag content. And Google reads information from this tag.
7 years ago
Fair point, thanks. Our site theme must be out of date
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.