How to fix my microdata / Rich Snippets problems ?
Structured data describes products for search engines. Google can use it for rich results and to check or update some Merchant Center data. It is separate from the XML feed.
Check current markup
- Test the exact product URL, including variant and currency, in Google's Rich Results Test.
- Inspect
ProductandOfferobjects in JSON-LD or microdata: numeric price, currency, availability, condition and URL must match the visible offer. - Look for duplicate or conflicting objects generated by the theme, modules or cache.
- For reviews, check that rating and review-count data is correctly associated with the relevant product.
- Have your integrator fix the actual markup source, then retest the pages and XML.
Use Google's required format for the structured price value, for example 29.90, with currency in its own attribute. The visible customer price can retain local formatting. A content attribute applies to the relevant microdata markup; it is not a universal JSON-LD fix.
The historical examples below concern PrestaShop 1.6 templates. Do not copy them unchanged into a recent PrestaShop theme. The correct change depends on the theme and version actually in use.
Historical example: product.tpl
Before:
<span id="our_price_display" class="price" itemprop="price">{convertPrice price=$productPrice|floatval}</span>
After, in the historical context described:
<span id="our_price_display" class="price" itemprop="price" content="{$productPrice}">{convertPrice price=$productPrice|floatval}</span>
Historical example: product-list.tpl
Before:
<span itemprop="price" class="price product-price">
After, in the historical context described:
<span itemprop="price" class="price product-price" content="{if !$priceDisplay}{$product.price}{else}{$product.price_tax_exc}{/if}">
Historical example: productscategory.tpl
Before:
<p class="price_display">
<span class="price">{convertPrice price=$categoryProduct.displayed_price}</span>
</p>
After, in the historical context described:
<p class="price_display">
<span class="price" content="{$categoryProduct.displayed_price}">{convertPrice price=$categoryProduct.displayed_price}</span>
</p>
For detailed requirements: Official Google documentation.