Jump to content
mattwilkie

Google Analytics Error - either "offers", "review", or aggregaterating should be specified

Recommended Posts

I have had a Prestashop site for around 8 years but recently got forced to upgrade (had left it alone since original install due to the amount of work transitioning to a newer version). However my host upgraded and the site stopped working forcing me to upgrade. I have lost a lot of my position with the SEO as I have had to rebuild the site.

I have gone through the basics of Meta tags etc. But currently have this showing in Google Analytics and not sure what its asking me to do :-

either "offers", "review", or aggregaterating should be specified

Now I don't do offers, reviews and not sure what it means with aggregaterating. But my site is a basic setup with no additional modules that could effect the SEO side so not sure what it wants me to do any ideas appreciated.

 

 

Share this post


Link to post
Share on other sites
23 hours ago, KamilPL said:

My developer say that on the https://search.google.com/structured-data/testing-tool everyting is ok

Yes, your programmer is correct. It looks good, but apparently the searchconsole's crawler is a little more strict than the testing tool.

I seem to have solved it for my site with a theme based on the Classic theme. Basically, I added an offers entry along with a valid price to the product miniature. Ask your programmer to add something like this (the important part is the "offers" div):

	<meta itemprop="image" content="https://shop.example.com/imageURL.jpg" />
	<meta itemprop="description" content="Description text" />
	<meta itemprop="sku" content="123456789" />
	<div itemprop="offers" itemtype="http://schema.org/Offer" itemscope>
		<meta itemprop="url" content="https://shop.example.com/link_to_product.html" />
		<meta itemprop="availability" content="https://schema.org/InStock" />
		<meta itemprop="priceCurrency" content="USD" />
		<meta itemprop="itemCondition" content="New" />
		<meta itemprop="price" content="73077" />
		<div itemprop="seller" itemtype="http://schema.org/Organization" itemscope>
			<meta itemprop="name" content="Example PrestaShop" />
		</div>
	</div>
	<div itemprop="brand" itemtype="http://schema.org/Thing" itemscope>
		<meta itemprop="name" content="BrandOfProduct" />
	</div>

In my template markup there was an itemprop="price" entry which was a string including the currency symbol. Google Products does not like that, it has to be as above.

I still have a few optional fields missing, some I cannot easily solve in my setup. For example: The priceValidUntil field is recommended

 

Hope this helps

 

Share this post


Link to post
Share on other sites

Good evening, I have the same problem.

I state that in my case it is not the default theme but a theme that I bought from addons.prestashop. I contacted the topic support but I have not yet received an answer.

Jaep could you tell me which theme file did you modify?

Thank you.

Share this post


Link to post
Share on other sites
Posted (edited)

Attached file is a work in progress. With this file installed in our site the search console does not error, but Google still gives a whole lot of warnings. Some warnings also originate in other template files.

Note that this marks all products as 'https://schema.org/InStock'. (line 32)
Note the currency is hard coded to INR (line 33)
Note also that the organization name needs to be changed (line 37) before you use this in your theme.

Our theme is a child of Classic theme. So I modified a Classic template and placed it in my theme. Attached file is located at: /themes/OURCHILDTHEME/templates/catalog/_partials/miniatures/product.tpl

Pfff. The Products enhancement in Google Search Console is a major headache...

HTH,

J

product.tpl

Edited by Jaep (see edit history)

Share this post


Link to post
Share on other sites

Hello Jaep,

 

Thank you for your product.tpl.

Would it be possible to say which lines have been changed ?

My product.tpl has been changed a lot since I copied the classic theme, so it is hard to find which lines you have changed/added.

Thank you again !

Kind regards,

Share this post


Link to post
Share on other sites

In my posted .tpl file, there is one more important issue addressed:

The original Classic theme's file around line 71 has a line that renders the price to something like "€ 12,30":

<span itemprop="price" class="price">{$product.price}</span>

You will need to remove the itemprop="price" because that needs to be part of 'offers' and it must be numeric, without currency symbol (the correct itemprop="price" is added in the <meta> list of tags as posted before). 

<span class="price">{$product.price}</span>

 

J

Share this post


Link to post
Share on other sites

Bonjour Jaep

 

merci de votre suivi

je n'avais pas fait attention à votre deuxième modification

 

suite à la première modification je replace le code d'origine (ligne 63 à 84)

 

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

<div class="product-description">
        {block name='product_name'}
          <h1 class="h3 product-title" itemprop="name"><a href="{$product.url}">{$product.name|truncate:30:'...'}</a></h1>
        {/block}

        {block name='product_price_and_shipping'}
          {if $product.show_price}
            <div class="product-price-and-shipping">
              {if $product.has_discount}
                {hook h='displayProductPriceBlock' product=$product type="old_price"}

                <span class="sr-only">{l s='Regular price' d='Shop.Theme.Catalog'}</span>
                <span class="regular-price">{$product.regular_price}</span>
                {if $product.discount_type === 'percentage'}
                  <span class="discount-percentage">{$product.discount_percentage}</span>
                {/if}
              {/if}

              {hook h='displayProductPriceBlock' product=$product type="before_price"}

              <span class="sr-only">{l s='Price' d='Shop.Theme.Catalog'}</span>
              <span class="price">{$product.price}</span>

 

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

 

par votre code

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

<div class="product-description">
        {block name='product_name'}
          {if $page.page_name == 'index'}
            <h3 class="h3 product-title" itemprop="name"><a href="{$product.url}">{$product.name|truncate:30:'...'}</a></h3>
          {else}
            <h2 class="h3 product-title" itemprop="name"><a href="{$product.url}">{$product.name|truncate:30:'...'}</a></h2>
          {/if}
        {/block}

        {block name='product_price_and_shipping'}
          {if $product.show_price}
            <div class="product-price-and-shipping">
              {if $product.has_discount}
                {hook h='displayProductPriceBlock' product=$product type="old_price"}

                <span class="sr-only">{l s='Regular price' d='Shop.Theme.Catalog'}</span>
                <span class="regular-price">{$product.regular_price}</span>
                {if $product.discount_type === 'percentage'}
                  <span class="discount-percentage discount-product">{$product.discount_percentage}</span>
                {elseif $product.discount_type === 'amount'}
                  <span class="discount-amount discount-product">{$product.discount_amount_to_display}</span>
                {/if}
              {/if}

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

 

il ne restera donc que les avertissements a régler

champ "aggregateRating" manquant facultatif

champ "brand" manquant facultatif

champ "review" manquant facultatif

champ "product id" manquant facultatif

champ "url" manquant facultatif

champ "priceValidUntil" manquant facultatif

 

 

un grand merci à vous

peut-être que prestashop va prendre en compte ce problème avec Google

 

jc

 

 

Share this post


Link to post
Share on other sites
Le 02/03/2019 à 5:25 AM, Jaep a dit :

Attached file is a work in progress. With this file installed in our site the search console does not error, but Google still gives a whole lot of warnings. Some warnings also originate in other template files.

Note that this marks all products as 'https://schema.org/InStock'. (line 32)
Note the currency is hard coded to INR (line 33)
Note also that the organization name needs to be changed (line 37) before you use this in your theme.

Our theme is a child of Classic theme. So I modified a Classic template and placed it in my theme. Attached file is located at: /themes/OURCHILDTHEME/templates/catalog/_partials/miniatures/product.tpl

Pfff. The Products enhancement in Google Search Console is a major headache...

HTH,

J

product.tpl

Bonjour, j'ai remplacer le fichier product.tpl par le votre et quand je le met tout fonctionne les produits s'affichent correctement sauf les catégories produits j'ai erreur 500. Je suis sur prestashop 1.7.4.4 et j'ai mis le fichier dans /themes/classic/templates/catalog/_partials

Share this post


Link to post
Share on other sites
37 minutes ago, hacker gamer shop said:

Bonjour, j'ai remplacer le fichier product.tpl par le votre et quand je le met tout fonctionne les produits s'affichent correctement sauf les catégories produits j'ai erreur 500. Je suis sur prestashop 1.7.4.4 et j'ai mis le fichier dans /themes/classic/templates/catalog/_partials

This is the closest I can get to your question (thank you Google Translate):

Quote

Hello, I replace the file product.tpl by yours and when I put it all works the products are displayed correctly except the product categories I have error 500. I am on prestashop 1.7.4.4 and I put the file in /themes/classic/templates/catalog/_partials

Please put the original file back and ask a programmer to do the changes as described above. Do NOT put my file without changes in the classic theme. Your programmer should place his version here:

/themes/OURCHILDTHEME/templates/catalog/_partials/miniatures/product.tpl

  • Like 1
  • Thanks 1

Share this post


Link to post
Share on other sites
6 minutes ago, okom3pom said:

Thank you. One method to get all actually available variables at a specific position in your smarty template is to use "{debug}" which opens a popup window with all assigned variables including local variables. See https://www.smarty.net/docs/en/language.function.debug.tpl

Share this post


Link to post
Share on other sites
Posted (edited)
    <div itemprop="offers" itemtype="http://schema.org/Offer" itemscope>
        <meta itemprop="url" content="{$product.url}" />
        <meta itemprop="availability" content="https://schema.org/InStock" />
        <meta itemprop="priceCurrency" content="{$currency.iso_code}" />
        {if $product.condition == 'new'}
        <meta itemprop="itemCondition" content="new" />
        {else if $product.condition == 'used'}
        <meta itemprop="itemCondition" content="used" />
        {else}
        <meta itemprop="itemCondition" content="refurbished" />
        {/if}
        <meta itemprop="price" content="{$product.price_amount}" />
        <div itemprop="seller" itemtype="http://schema.org/Organization" itemscope>
            <meta itemprop="name" content="{$shop.name}" />
        </div>
    </div>

 

Edited by okom3pom
Error code (see edit history)
  • Like 1

Share this post


Link to post
Share on other sites
46 minutes ago, okom3pom said:

<meta itemprop="availability" content="https://schema.org/InStock" />

This one is problematic and not accepted by Google. Google keeps warning "Invalid value type for field 'availability' (optional)" although it seems to me according to the specs.

Could it be caused by the HTTP and HTTPS mixup ?

.....http://schema.org /Offer.....
.....https ://schema.org/InStock.....

I will switch my template to https after the weekend.

Share this post


Link to post
Share on other sites
Posted (edited)
Il y a 2 heures, Jaep a dit :

This is the closest I can get to your question (thank you Google Translate):

Please put the original file back and ask a programmer to do the changes as described above. Do NOT put my file without changes in the classic theme. Your programmer should place his version here:

/themes/OURCHILDTHEME/templates/catalog/_partials/miniatures/product.tpl

who should I contact to do this? if i give you my product.tpl file could you do it to me?who should I contact to do it? if i give you my product.tpl file, can you do it to me? in exchange I will make your ad on my Youtube channel of 2171 subscribers

Edited by Techno Teck (see edit history)

Share this post


Link to post
Share on other sites
Posted (edited)
Le 08/03/2019 à 8:01 AM, wess france a dit :

Bonjour Jaep

 

merci de votre suivi

je n'avais pas fait attention à votre deuxième modification

 

suite à la première modification je replace le code d'origine (ligne 63 à 84)

 

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

<div class="product-description">
        {block name='product_name'}
          <h1 class="h3 product-title" itemprop="name"><a href="{$product.url}">{$product.name|truncate:30:'...'}</a></h1>
        {/block}

        {block name='product_price_and_shipping'}
          {if $product.show_price}
            <div class="product-price-and-shipping">
              {if $product.has_discount}
                {hook h='displayProductPriceBlock' product=$product type="old_price"}

                <span class="sr-only">{l s='Regular price' d='Shop.Theme.Catalog'}</span>
                <span class="regular-price">{$product.regular_price}</span>
                {if $product.discount_type === 'percentage'}
                  <span class="discount-percentage">{$product.discount_percentage}</span>
                {/if}
              {/if}

              {hook h='displayProductPriceBlock' product=$product type="before_price"}

              <span class="sr-only">{l s='Price' d='Shop.Theme.Catalog'}</span>
              <span class="price">{$product.price}</span>

 

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

 

par votre code

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

<div class="product-description">
        {block name='product_name'}
          {if $page.page_name == 'index'}
            <h3 class="h3 product-title" itemprop="name"><a href="{$product.url}">{$product.name|truncate:30:'...'}</a></h3>
          {else}
            <h2 class="h3 product-title" itemprop="name"><a href="{$product.url}">{$product.name|truncate:30:'...'}</a></h2>
          {/if}
        {/block}

        {block name='product_price_and_shipping'}
          {if $product.show_price}
            <div class="product-price-and-shipping">
              {if $product.has_discount}
                {hook h='displayProductPriceBlock' product=$product type="old_price"}

                <span class="sr-only">{l s='Regular price' d='Shop.Theme.Catalog'}</span>
                <span class="regular-price">{$product.regular_price}</span>
                {if $product.discount_type === 'percentage'}
                  <span class="discount-percentage discount-product">{$product.discount_percentage}</span>
                {elseif $product.discount_type === 'amount'}
                  <span class="discount-amount discount-product">{$product.discount_amount_to_display}</span>
                {/if}
              {/if}

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

 

il ne restera donc que les avertissements a régler

champ "aggregateRating" manquant facultatif

champ "brand" manquant facultatif

champ "review" manquant facultatif

champ "product id" manquant facultatif

champ "url" manquant facultatif

champ "priceValidUntil" manquant facultatif

 

 

un grand merci à vous

peut-être que prestashop va prendre en compte ce problème avec Google

 

jc

 

 

Donc si j'ai bien compris le code c'est le deuxième et pas le premier qu'il faut prendre

Edited by Techno Teck (see edit history)

Share this post


Link to post
Share on other sites
Posted (edited)
Il y a 7 heures, Jaep a dit:

C'est ce qui se rapproche le plus de ma question (merci Google Translate):

Veuillez vous enregistrer. NE PAS PAS mon fichier sans modifications dans le thème classique. Votre programmeur devrait placer sa version ici:

/ thèmes / OURCHILDTHEME / templates / catalogue / _partials / miniatures /product.tpl

here I fix the error on the other hand now I have 6 warning, how to correct them?

Edited by Techno Teck (see edit history)

Share this post


Link to post
Share on other sites

From my understanding based on what I have read so far the problem seems to be two-fold: a) You may get this error because of the product schema in product page and b) because of the product schema that is used all other pages or blocks e.g. category page, related products. 

So,

a) in product page you need to be make sure that you include one of those tags (if not already included and I think this is not the issue for most shops)

b) Check all other pages in which you list products e.g. the category page, the related products block and for those remove the product schema. 

 

The following seems to be to the point:

https://www.checkerboard.com/web-development/fix-offers-review-aggregaterating-specified/

and refers to Woocommerce but I guess Prestashop and all other e-Commerce plarforms do the same:

Quote

WooCommerce adding schema markup to a page that is not dedicated to a single product is what causes the errors

and 

Quote

Google says that archive and category pages shouldn’t have this markup. There are only two types of pages that will usually use markup, according to Google: A product page dedicated to a single product, or a “shopping aggregator page” that talks about a single product just with different sellers

 

For Woo there seems to be a fix by removing the Product Schema Markup from category pages. Unfortunately in prestashop I haven't seen something consistent. 

  • Like 1

Share this post


Link to post
Share on other sites
Posted (edited)
Il y a 9 heures, okom3pom a dit :

@yama fixed :) thx

I do not have this code, I have it

your code

<div itemprop="offers" itemtype="http://schema.org/Offer" itemscope>
        <meta itemprop="url" content="{$product.url}" />
        <meta itemprop="availability" content="https://schema.org/InStock" />
        <meta itemprop="priceCurrency" content="{$currency.iso_code}" />
        {if $product.condition == 'new'}
        <meta itemprop="itemCondition" content="new" />
        {elseif if $product.condition == 'used'}
        <meta itemprop="itemCondition" content="used" />
        {else}
        <meta itemprop="itemCondition" content="refurbished" />
        {/if}
        <meta itemprop="price" content="{$product.price_amount}" />
        <div itemprop="seller" itemtype="http://schema.org/Organization" itemscope>
            <meta itemprop="name" content="{$shop.name}" />
        </div>
    </div>

 

and my code

<div itemprop="offers" itemtype="http://schema.org/Offer" itemscope>
        <meta itemprop="url" content="{$product.url}" />
        <meta itemprop="availability" content="https://schema.org/InStock" />
        <meta itemprop="priceCurrency" content="INR" />
        <meta itemprop="itemCondition" content="{$product.condition.schema_url}"
        <meta itemprop="price" content="{$product.price_amount}" />
        <div itemprop="seller" itemtype="http://schema.org/Organization" itemscope>
            <meta itemprop="name" content="TechnoTeck" />
        </div>
    </div>

how much error do you have in the Google Search Console?

Edited by Techno Teck (see edit history)

Share this post


Link to post
Share on other sites
Il y a 5 heures, yama a dit:

Êtes-vous sûr que votre monnaie est la roupie indienne (INR)?

à la place, INR a mis {$ currency.iso_code}

 

ah I was not careful, my currency is the euro but I use several currency on my site, I live in Belgium, you have to change something else?

Share this post


Link to post
Share on other sites
Il y a 5 heures, yama a dit :

Are you sure your currency is Indian rupee (INR)?

instead INR put {$currency.iso_code}

 

how can I correct his warnings?

 

https___search.google.com_search-console_inspect_product_resource_id=https%3A%2F%2Ftechnoteck.fr%2F&id=xK_t4p9aK7ZW9rhbqAc06w - Google Chrome 19-03-19 08_17_16 (2).png

Share this post


Link to post
Share on other sites

guys, sorry I don't want to sound unappreciative of your answers but please try to write in english as this is very difficult for all of us who doesn't know french going back and forth to the google translate. After all this is an English forum. 

 

Share this post


Link to post
Share on other sites
Posted (edited)
il y a 4 minutes, tanasi a dit :

guys, sorry I don't want to sound unappreciative of your answers but please try to write in english as this is very difficult for all of us who doesn't know french going back and forth to the google translate. After all this is an English forum. 

 

Okay, sorry.

do you have that too? when i'm in products on google search console he tell me

You have to indicate "offers", "review", or "aggregateRating"

and when I'm in url inspection it's more the

Edited by Techno Teck (see edit history)

Share this post


Link to post
Share on other sites

Hello

 

yes indeed this new error appeared 48 hours ago

So, the method proposed by Jaep at the beginning

Google has changed the conditions for the products again.

I tried to see my webmaster that I have a solution on my side

if anyone in I am a taker also

 

thank you

Share this post


Link to post
Share on other sites

Hello Yama

thank you for the information
so if I understand correctly must add this code from okom3pom

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

<div itemprop = "offers" itemtype = "http://schema.org/Offer" itemscope > <meta itemprop = "url" content = "{$ product.url}" /> <méta itemprop = "availability" content = "https://schema.org/InStock" /> <meta itemprop = "priceCurrency" content = "{$ currency.iso_code}" />   
           
           
           
        {if $ product.condition == 'new'}
        <meta itemprop = "itemCondition" content = "new" />   
        {sinon si $ product.condition == 'utilisé'}
        <meta itemprop = "itemCondition" content = "utilisé" />   
        {autre}
        <meta itemprop = "itemCondition" content = "remis à neuf" />   
        {/si}
        <meta itemprop = "price" content = "{$ product.price_amount}" /> <div itemprop = "seller" itemtype = "http://schema.org/Organization" itemscope > <meta itemprop = "name" content = "{$ shop.name}" /> </ div> </ div>

 

xxxxxxxxxxxxxxxxxxxxxxxxxxxxx

 

at the beginning of the product.tpl file

/themes/OURCHILDTHEME/templates/catalog/_partials/miniatures/product.tpl

 

Thanks for your help

  • Like 1

Share this post


Link to post
Share on other sites

Hello

I am a beginner and start to get a little lost in all the modifications for this problem that are proposed.
I left on the model of Jaep, but there is now an error price field missing,
I tried the modification of okom3pom on that of Jaep but it makes me wrong on the shop.
Could a charitable soul make a summary of the changes to be made on the basic product.tpl files of the theme presta 1.7 in order to solve the problem.
Many thanks in advance to all.

  • Like 1

Share this post


Link to post
Share on other sites

Hi,

I have been having a similar but different issue. We had many errors but installed Rich Snippets for Products which fixed the errors but also left the errors behind. Makes no sense I know, please see here:

https://search.google.com/structured-data/testing-tool#url=https%3A%2F%2Ffiddlestix.net.au%2Fall-team-merchandise%2F2976-afl-magnetic-mini-footy-ladder-official-11cm-x-27cm-licensed.html

Does anyone know how I can get rid of the errors and leave just the last snippet?

Thanks in advance

Share this post


Link to post
Share on other sites

I allow myself to answer you because there is not much information

I finally managed to remove the "errors" but not the warnings

by editing the product.tpl file that is located

/ themes / OURCHILDTHEME / templates / catalog / _partials / thumbnails /product.tpl

with the following code:

 

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

{**
 * 2007-2018 PrestaShop
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License 3.0 (AFL-3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * https://opensource.org/licenses/AFL-3.0
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@prestashop.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer
 * versions in the future. If you wish to customize PrestaShop for your
 * needs please refer to http://www.prestashop.com for more information.
 *
 * @author    PrestaShop SA <contact@prestashop.com>
 * @copyright 2007-2018 PrestaShop SA
 * @license   https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
 * International Registered Trademark & Property of PrestaShop SA
 *}
{block name='product_miniature_item'}
  <article class="product-miniature js-product-miniature" data-id-product="{$product.id_product}" data-id-product-attribute="{$product.id_product_attribute}" itemscope itemtype="http://schema.org/Product">
    <meta itemprop="image" content="{$product.cover.large.url}" />
    <meta itemprop="description" content="{$product.manufacturer_name} {$product.name}" />
    <meta itemprop="sku" content="{$product.reference_to_display}" />
    <div itemprop="offers" itemtype="http://schema.org/Offer" itemscope>
        <meta itemprop="url" content="{$product.url}" />
        <meta itemprop="availability" content="https://schema.org/InStock" />
        <meta itemprop="priceCurrency" content="{$currency.iso_code}" />
        {if $product.condition == 'new'}
        <meta itemprop="itemCondition" content="new" />
        {else if $product.condition == 'used'}
        <meta itemprop="itemCondition" content="used" />
        {else}
        <meta itemprop="itemCondition" content="refurbished" />
        {/if}
        <meta itemprop="price" content="{$product.price_amount}" />
        <div itemprop="seller" itemtype="http://schema.org/Organization" itemscope>
            <meta itemprop="name" content="{$shop.name}" />
        </div>
    </div>
    <div itemprop="brand" itemtype="http://schema.org/Thing" itemscope>
        <meta itemprop="name" content="{$product.manufacturer_name}" />
    </div>

    <div class="thumbnail-container">
      {block name='product_thumbnail'}
        {if $product.cover}
          <a href="{$product.url}" class="thumbnail product-thumbnail">
            <img
              src = "{$product.cover.bySize.home_default.url}"
              alt = "{if !empty($product.cover.legend)}{$product.cover.legend}{else}{$product.name|truncate:30:'...'}{/if}"
              data-full-size-image-url = "{$product.cover.large.url}"
            >
          </a>
        {else}
          <a href="{$product.url}" class="thumbnail product-thumbnail">
            <img
              src = "{$urls.no_picture_image.bySize.home_default.url}"
            >
          </a>
        {/if}
      {/block}

      <div class="product-description">

 

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

to put on top of

<div class="product-description">

 

which becomes line 69

 

I hope it can help you.

cordially

Share this post


Link to post
Share on other sites
Posted (edited)
Le 15/03/2019 à 15:45, Techno Teck a déclaré:

Hi wess france,
can this code apply to Prestashop 1.6?

 

Edited by patall (see edit history)

Share this post


Link to post
Share on other sites

Would the Francophone community be able to do something with this incomprehensible ascii dump?

Share this post


Link to post
Share on other sites

What Ascii Dump ?

Share this post


Link to post
Share on other sites
8 hours ago, Eolia said:

What Ascii Dump ?

The one that most people do not expect in an English forum but apparently is considered their mother tongue by others. 

Share this post


Link to post
Share on other sites
On 3/19/2019 at 2:11 PM, tanasi said:

guys, sorry I don't want to sound unappreciative of your answers but please try to write in english as this is very difficult for all of us who doesn't know french going back and forth to the google translate. After all this is an English forum. 

 

This was March 19.

Share this post


Link to post
Share on other sites
Posted (edited)
On 3/18/2019 at 3:41 PM, tanasi said:

From my understanding based on what I have read so far the problem seems to be two-fold: a) You may get this error because of the product schema in product page and b) because of the product schema that is used all other pages or blocks e.g. category page, related products. 

So,

a) in product page you need to be make sure that you include one of those tags (if not already included and I think this is not the issue for most shops)

b) Check all other pages in which you list products e.g. the category page, the related products block and for those remove the product schema. 

 

The following seems to be to the point:

https://www.checkerboard.com/web-development/fix-offers-review-aggregaterating-specified/

and refers to Woocommerce but I guess Prestashop and all other e-Commerce plarforms do the same:

and 

 

For Woo there seems to be a fix by removing the Product Schema Markup from category pages. Unfortunately in prestashop I haven't seen something consistent. 

I do not understand what you've all been talking about (because I do not understand french) in this international English department but this is just a kind reminder: after we tried solutions, @anasi explained on March 18, that the product schema markup  needs to be removed from category pages (see quote above).

 

7 hours ago, Eolia said:

No, it's an international forum. Here you are in the French section, so normal that we speak French^^
Where are english helpers on your sections ?

Hahaha.

International community (English)

Topics and messages here are posted in English. To post in your native language, please use the appropriate PrestaShop community board.

Edited by Jaep (see edit history)

Share this post


Link to post
Share on other sites

Sorry guy, French people think the world is French territory, it's the fault of Napoleon 😛

 

It's just there is the same topic in French side, sorry.

Share this post


Link to post
Share on other sites
5 minutes ago, yama said:

fault of Napoleon 😛

It's just there is the same topic in French side, sorry.

Yes. Let's blame it on Napoleon :).

Please share a link so the Frenchies can find their way back to their Bastille.

Share this post


Link to post
Share on other sites
Posted (edited)

Oh, I just switched to my desktop computer and I can't stop laughing. 
This one should be preserved for humanity, since @Eolia has this brilliant quote in his signature which earlier on my mobile did not show up:

"Il y a au moins deux choses infinies au monde : l'univers et la bêtise humaine....mais pour l'univers je n'en suis pas très sûr" - Albert Einstein
 

Let's analyse that a bit. This is the forum you are looking at:

1963719203_Annotation2019-05-10103804.png.9a0e20b81de8b32c599250f8e00b2a0d.png

 

The French view on this forum disagrees with the header, voiced by @Eolia:

12 hours ago, Eolia said:

No, it's an international forum. Here you are in the French section, so normal that we speak French^^
Where are english helpers on your sections ?

 

 

Do I need to ask what this Albert Einstein quote in @Eolia's signature means? Ah, whatever, let's run it through Google Translate:

"There are at least two infinite things in the world: the universe and human stupidity .... but for the universe I'm not very sure" - Albert Einstein

Very fitting, very very fitting.

After working a bit with the Github people, I was actually doing my best to revive the English support and explore solutions here. So it kind of hurts to read dumb messages from self-righteous Frenchies doing nothing more than scaring off English helpers. 

Jaep

Edited by Jaep (see edit history)

Share this post


Link to post
Share on other sites

The problem here is the topic get started in the french section.

The actual "tought control" team reparented the topic in the English section. However most of us did not noticed (I did not) and been following the topic receive notification.

Basically all the french comment recommand to apply the google official guidelines.

offers and reviews warning are simply warning - ignore them. All other errors are self-explainary.

Share this post


Link to post
Share on other sites
Posted (edited)

Well, they can now move it back to the French section. It is no use in the English section at all.

Edit: I doubt that story is true. As you can see, I was the second person responding to the original question. And I cannot imagine myself writing in a French forum at all. Please substantiate your statement.

Edited by Jaep (see edit history)

Share this post


Link to post
Share on other sites

Discussion here should now follow in ENGLISH language please. If the problem persists for French, so please feel free to open a new topic in FRENCH language on FRENCH forum section. Thank you.

  • Like 1

Share this post


Link to post
Share on other sites

>> For French version of this topic :)

 

  • Thanks 1

Share this post


Link to post
Share on other sites

hi All, 
I've just discovered this issue on my search console. 
 

What this is issue fixed with the latest PS version 1.7.5.2 ? if not is it going to be fixed by the core team ?

 

Share this post


Link to post
Share on other sites
On 2/28/2019 at 8:33 AM, Jaep said:

Yes, your programmer is correct. It looks good, but apparently the searchconsole's crawler is a little more strict than the testing tool.

I seem to have solved it for my site with a theme based on the Classic theme. Basically, I added an offers entry along with a valid price to the product miniature. Ask your programmer to add something like this (the important part is the "offers" div):


	<meta itemprop="image" content="https://shop.example.com/imageURL.jpg" />
	<meta itemprop="description" content="Description text" />
	<meta itemprop="sku" content="123456789" />
	<div itemprop="offers" itemtype="http://schema.org/Offer" itemscope>
		<meta itemprop="url" content="https://shop.example.com/link_to_product.html" />
		<meta itemprop="availability" content="https://schema.org/InStock" />
		<meta itemprop="priceCurrency" content="USD" />
		<meta itemprop="itemCondition" content="New" />
		<meta itemprop="price" content="73077" />
		<div itemprop="seller" itemtype="http://schema.org/Organization" itemscope>
			<meta itemprop="name" content="Example PrestaShop" />
		</div>
	</div>
	<div itemprop="brand" itemtype="http://schema.org/Thing" itemscope>
		<meta itemprop="name" content="BrandOfProduct" />
	</div>

In my template markup there was an itemprop="price" entry which was a string including the currency symbol. Google Products does not like that, it has to be as above.

I still have a few optional fields missing, some I cannot easily solve in my setup. For example: The priceValidUntil field is recommended

 

Hope this helps

 

Hi Jaep and all,

My eshop is running on 1.6.1, I've seen this morning this warning at my search console

The solution advised seems to work well on 1.7 but for various reasons I'm unable to upgrade to 1.7

Is there anyone who could advise on the right itemprop structure that would turn my shop products compliant with Google products rules?

Many thanks in advance

Alex

Share this post


Link to post
Share on other sites

Hello,

I would like to know if anyone can help me solve my little problems,

I switched to version 1.7.5.2 and changed my theme (Charm).

Google sends errors over 340 ...

"Must indicate" offers "," review ", or" aggregateRating "

priceValidUntil

brand

review

sku

and the last (empty)

I tried to edit some file but it did not change anything ...

thank you in advance for your help

Erreur_Google_03.jpg

Share this post


Link to post
Share on other sites

Hello everybody,

I've the same problem with Google Search on a PS 1.6.1.7 with the Transformer theme.

Not errors but warning (it's better to fill the field) about : availability, priceValidUntil, url, aggregateRating, brand, review, sku and isbn (or other global identifier).
These warnings are on product list and product page.
If I delete these itemprop (because these fields are not used on the front) in product-list.tpl, product.tpl and productcomment.tpl, is it ok without creating errors ?

 

Thanks

 

Share this post


Link to post
Share on other sites

 Same problem happens in Prestashop 1.7.5.1 and also Prestashop 1.7.6
I thought it would have been fixed in Prestashop 1.7.6

Share this post


Link to post
Share on other sites

this worked for me..

 

themes/########/templates/catalog /_partials /miniatures/product.tpl

I modified this piece of code:
{block name='product_price_and_shipping'} {if $product.show_price} <div class="product-price-and-shipping pricehv">
in this way:
{block name='product_price_and_shipping'} {if $product.show_price} <div class="product-price-and-shipping pricehv" itemprop="offers" itemscope itemtype="https://schema.org/Offer">

  • Like 1

Share this post


Link to post
Share on other sites
On 4/3/2019 at 6:30 PM, wess france said:

I allow myself to answer you because there is not much information

I finally managed to remove the "errors" but not the warnings

by editing the product.tpl file that is located

/ themes / OURCHILDTHEME / templates / catalog / _partials / thumbnails /product.tpl

with the following code:

 

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

{**
 * 2007-2018 PrestaShop
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License 3.0 (AFL-3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * https://opensource.org/licenses/AFL-3.0
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@prestashop.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer
 * versions in the future. If you wish to customize PrestaShop for your
 * needs please refer to http://www.prestashop.com for more information.
 *
 * @author    PrestaShop SA <contact@prestashop.com>
 * @copyright 2007-2018 PrestaShop SA
 * @license   https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
 * International Registered Trademark & Property of PrestaShop SA
 *}
{block name='product_miniature_item'}
  <article class="product-miniature js-product-miniature" data-id-product="{$product.id_product}" data-id-product-attribute="{$product.id_product_attribute}" itemscope itemtype="http://schema.org/Product">
    <meta itemprop="image" content="{$product.cover.large.url}" />
    <meta itemprop="description" content="{$product.manufacturer_name} {$product.name}" />
    <meta itemprop="sku" content="{$product.reference_to_display}" />
    <div itemprop="offers" itemtype="http://schema.org/Offer" itemscope>
        <meta itemprop="url" content="{$product.url}" />
        <meta itemprop="availability" content="https://schema.org/InStock" />
        <meta itemprop="priceCurrency" content="{$currency.iso_code}" />
        {if $product.condition == 'new'}
        <meta itemprop="itemCondition" content="new" />
        {else if $product.condition == 'used'}
        <meta itemprop="itemCondition" content="used" />
        {else}
        <meta itemprop="itemCondition" content="refurbished" />
        {/if}
        <meta itemprop="price" content="{$product.price_amount}" />
        <div itemprop="seller" itemtype="http://schema.org/Organization" itemscope>
            <meta itemprop="name" content="{$shop.name}" />
        </div>
    </div>
    <div itemprop="brand" itemtype="http://schema.org/Thing" itemscope>
        <meta itemprop="name" content="{$product.manufacturer_name}" />
    </div>

    <div class="thumbnail-container">
      {block name='product_thumbnail'}
        {if $product.cover}
          <a href="{$product.url}" class="thumbnail product-thumbnail">
            <img
              src = "{$product.cover.bySize.home_default.url}"
              alt = "{if !empty($product.cover.legend)}{$product.cover.legend}{else}{$product.name|truncate:30:'...'}{/if}"
              data-full-size-image-url = "{$product.cover.large.url}"
            >
          </a>
        {else}
          <a href="{$product.url}" class="thumbnail product-thumbnail">
            <img
              src = "{$urls.no_picture_image.bySize.home_default.url}"
            >
          </a>
        {/if}
      {/block}

      <div class="product-description">

 

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

to put on top of

<div class="product-description">

 

which becomes line 69

 

I hope it can help you.

cordially

Could you please help me in this case? I couldnt find :(

product.tpl.asli.txt

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More