ianditch Posted September 11, 2022 Share Posted September 11, 2022 (edited) Hi All, Ever since starting my site, I have all ways had the Google Search Console list errors with my products in the Rich Results test tool. Google always listed the error; 'Either "offers", "review", or "aggregateRating" should be specified. I've had a few hours spare today so i thought i would look into fixing this with partial success. To fix the above issue with version 1.7 i have created and added the below code which seems to have fixed the issue with the product being shown but my next issue is that i now get the same Rich Results error for each of the products in the 'Related Products' at the bottom of the product page. To fix this issue with the main product i have added the below code to my templates/catalog/product.TPL file. My question is, can i add the same code for each of the 'Related Products' shown on the Product page?.... Can i have more than 1 schema product on the same page? Any advise would be helpful. Ian <div itemtype="https://schema.org/Product" itemscope> <meta itemprop="mpn" content="{$product->mpn|htmlentitiesUTF8}" /> <meta itemprop="name" content="{$product.name}" /> <link itemprop="image" href="{$product.cover.large.url}" /> <meta itemprop="description" content="{$page.meta.description}" /> <div itemprop="offers" itemtype="https://schema.org/Offer" itemscope> <link itemprop="url" href="{$product.url}" /> <meta itemprop="availability" content="https://schema.org/InStock" /> <meta itemprop="priceCurrency" content="{$currency.iso_code}" /> <meta itemprop="itemCondition" content="https://schema.org/NewCondition" /> <meta itemprop="price" content="{$product.price_amount}" /> <meta itemprop="priceValidUntil" content="2030-11-20" /> </div> <div itemprop="aggregateRating" itemtype="https://schema.org/AggregateRating" itemscope> <meta itemprop="reviewCount" content="90" /> <meta itemprop="ratingValue" content="4.6" /> </div> <div itemprop="review" itemtype="https://schema.org/Review" itemscope> <div itemprop="author" itemtype="https://schema.org/Person" itemscope> <meta itemprop="name" content="Lynda Ditchfield" /> </div> <div itemprop="reviewRating" itemtype="https://schema.org/Rating" itemscope> <meta itemprop="ratingValue" content="5" /> <meta itemprop="bestRating" content="5" /> </div> </div> <meta itemprop="sku" content="{$product->reference|htmlentitiesUTF8}" /> <div itemprop="brand" itemtype="https://schema.org/Brand" itemscope> <meta itemprop="name" content="Fase Controls" /> </div> </div> Edited September 11, 2022 by ianditch (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now