Jump to content

Welcome, Guest!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

netamismb

Either 'offers', 'review' or 'aggregateRating' should be specified

Recommended Posts

I get the following errors in Google search console:

Either 'offers', 'review' or 'aggregateRating' should be specified

Either 'ratingCount' or 'reviewCount' should be specified

Missing field 'ratingValue'

I am using modules Customer loyalty and rewards v3.0.2 and Google JSON+LD v1.0.4  and Niara theme.  How i can add those values, even there is no reviews for products. As far as I am aware, Google just want to see there is possibility to add the review, and not really care if there are reviews or not.

 

Share this post


Link to post
Share on other sites
On 3/22/2020 at 6:23 PM, netamismb said:

How i can add those values, even there is no reviews for products

You can't. It's just not possible to include reviews metadata if you don't have any reviews. 

Google search console is an idiot in this case. Simply ignore these warnings. 

  • Like 2
  • Confused 1

Share this post


Link to post
Share on other sites

And it's not a warning, but an error:image.png.ec762b7246b125fdd2dcb4beb5c09b2c.png

I'll keep trying with the other errors. Thanks!

Edit: it doesn't find those labels in homefeatured's products, not in every product's page. I suppouse it's product-list-item.tpl which doesn't write the expected 'itemprops'. I'm using Niara.

Edited by Wartin

Share this post


Link to post
Share on other sites

I see that it gives me one error for every product in every category. Each product page is OK, just a few warnings.

There are dozens of messages in PS forums about this, but found no solution.

 

 

Has anybody fixed Niara or other theme in order to not have any errors from Google? I'm not sure if I have to modify just product-list-item.tpl or if blockspecials.tpl has something to do with printing prices in categories.

Anyway, so far I just got more errors or warnings editing these templates.

Thanks!

 

Share this post


Link to post
Share on other sites
On 8/19/2020 at 2:54 PM, Wartin said:

Has anybody fixed Niara or other theme in order to not have any errors from Google?

Hello. I finally found how to make those errors disappear from Google Search Console in Niara. I found how to do it from community theme, from github:

https://github.com/thirtybees/community-theme-default/blob/1.1.x/product-list-item.tpl


So, edit /themes/niara/product-list-item.tpl

In line 126 put:

                <div class="" itemprop="offers" itemscope itemtype="https://schema.org/Offer">

line 130:

                        <meta itemprop="price" content="{$product.price}">
                        <meta itemprop="priceCurrency" content="{$currency->iso_code}">

And finally close the <div> tag in line 150:

</div>

I'm not sure if it's perfect, but google now finds 'offers' and 'price' under categories lists.

Here is all that part of product-list-item.tpl with number lines:

                {if (!$PS_CATALOG_MODE AND ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order)))}
                <div class="" itemprop="offers" itemscope itemtype="https://schema.org/Offer">
                    <div class="content_price">
                        {if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)}
                            {hook h="displayProductPriceBlock" product=$product type='before_price'}
                            <meta itemprop="price" content="{$product.price}">
                            <meta itemprop="priceCurrency" content="{$currency->iso_code}">
                            <span class="price product-price">
              {if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}
            </span>
                            {if $product.price_without_reduction > 0 && isset($product.specific_prices) && $product.specific_prices && isset($product.specific_prices.reduction) && $product.specific_prices.reduction > 0}
                                {hook h="displayProductPriceBlock" product=$product type="old_price"}
                                <span class="old-price product-price">
                {displayWtPrice p=$product.price_without_reduction}
              </span>
                                {hook h="displayProductPriceBlock" id_product=$product.id_product type="old_price"}
                                {if $product.specific_prices.reduction_type == 'percentage'}
                                    <span class="price-percent-reduction">-{$product.specific_prices.reduction * 100}
                                        %</span>
                                {/if}
                            {/if}
                            {hook h="displayProductPriceBlock" product=$product type="price"}
                            {hook h="displayProductPriceBlock" product=$product type="unit_price"}
                            {hook h="displayProductPriceBlock" product=$product type='after_price'}
                        {/if}
                    </div>
                  </div>
                {/if}

 

Hope it's useful.

I found some forum's threads saying that there is no need to use rich content in product listing, I don't know if it's better or not having it.

Edited by Wartin
add currency
  • Like 1

Share this post


Link to post
Share on other sites
14 hours ago, Wartin said:

I found some forum's threads saying that there is no need to use rich content in product listing, I don't know if it's better or not having it.

I personally believe that product miniatures should NOT have rich content metadata. Especially when you display them on product page - for example if you have list of related products, "customer also bought", or "other products from this category". In this situation, google has hard time to understand what the page is about. From google's perspective, the product page contains multiple products. Sure, one of them is primary, but how should google know this?

The primary goal of google is to understand and interpret the page. Adding too much noise to the page is not helping this, I think. I strongly believe that, in this case, less is more.

I have it implemented like that on my website, and I'm very happy with it. I have zero warnings/errors in search console, and more importantly - my rich data are displayed correctly in search page result.

 

  • Like 1
  • Thanks 1

Share this post


Link to post
Share on other sites

Good point, indeed Google is not giving errors in product's page in Niara. Just the homepage and categories pages.

Maybe we could edit Niara deleting rich content metadata from product-list-item.tpl then? Now, out of the box, is filling with errors the G's Search Console. On the other hand, I don't know who shows 'related products' or 'customer also bought' in product's page.

 

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...