Jump to content

"This Product is missing a global identifier (e.g. isbn, mpn or gtin8). " -- given by google webmaster


chiranjit

Recommended Posts

Hi,

I have faced a Waring from a long time, i.e. "This Product is missing a global identifier (e.g. isbn, mpn or gtin8). " in Google Webmaster. And for this reason, My products are not going Valid in Google.
My question is How I can resolve this problem, here I mention clearly that this mpn or gtin8 no is not present in my any product. 

Kindly help me out from this problem.

Thanks

Link to comment
Share on other sites

 

5 minutes ago, joseantgv said:

Hi joseantgv,
Thanks for your reply, 
Yes, I have checked in that article, here it said that if you do not have identifier then passed "yes" or "no" in this identifier_exists param,

In PS is used microdata format for add schema "https://schema.org/Product" . 
But the problem is how I am set the item is this microdata format?

there is no valid document I have found in google, so I have tried my self in a various way, but the error is same.  

Link to comment
Share on other sites

  • 3 months later...
  • 3 months later...

I ma fighting with this same problem.

Can't find any examples how to add these directives/attributes in a way that Google would accept it.

I do have EAN's for all my products.

Found this block from product.tpl and tried a few things here, but without the wanted end result.
Also looking the schema, but that doesn't really help me. 

Any insoight or examples would be welcome

 

{block name='head' append}
  <meta property="og:type" content="product">
  <meta property="og:url" content="{$urls.current_url}">
  <meta property="og:title" content="{$page.meta.title}">
  <meta property="og:site_name" content="{$shop.name}">
  <meta property="og:description" content="{$page.meta.description}">
  <meta property="og:image" content="{$product.cover.large.url}">
  <meta property="product:pretax_price:amount" content="{$product.price_tax_exc}">
  <meta property="product:pretax_price:currency" content="{$currency.iso_code}">
  <meta property="product:price:amount" content="{$product.price_amount}">
  <meta property="product:price:currency" content="{$currency.iso_code}">
  <!-- added gtin directive >>>>  -->
  <meta property="product:gtin" content="{$product.ean13}">
  <meta property="product:mpn" content="{$product.ean13}">
  <!-- <<<< added gtin directive -->
  
  {if isset($product.weight) && ($product.weight != 0)}
  <meta property="product:weight:value" content="{$product.weight}">
  <meta property="product:weight:units" content="{$product.weight_unit}">
  {/if}
{/block}

 

Link to comment
Share on other sites

  • 1 month later...
On 2/22/2020 at 12:09 PM, Surffari said:

I ma fighting with this same problem.

Can't find any examples how to add these directives/attributes in a way that Google would accept it.

I do have EAN's for all my products.

Found this block from product.tpl and tried a few things here, but without the wanted end result.
Also looking the schema, but that doesn't really help me. 

Any insoight or examples would be welcome

 


{block name='head' append}
  <meta property="og:type" content="product">
  <meta property="og:url" content="{$urls.current_url}">
  <meta property="og:title" content="{$page.meta.title}">
  <meta property="og:site_name" content="{$shop.name}">
  <meta property="og:description" content="{$page.meta.description}">
  <meta property="og:image" content="{$product.cover.large.url}">
  <meta property="product:pretax_price:amount" content="{$product.price_tax_exc}">
  <meta property="product:pretax_price:currency" content="{$currency.iso_code}">
  <meta property="product:price:amount" content="{$product.price_amount}">
  <meta property="product:price:currency" content="{$currency.iso_code}">
  <!-- added gtin directive >>>>  -->
  <meta property="product:gtin" content="{$product.ean13}">
  <meta property="product:mpn" content="{$product.ean13}">
  <!-- <<<< added gtin directive -->
  
  {if isset($product.weight) && ($product.weight != 0)}
  <meta property="product:weight:value" content="{$product.weight}">
  <meta property="product:weight:units" content="{$product.weight_unit}">
  {/if}
{/block}

 

Do you have an HTML source output of the above referenced code? My first guess is your template is not populating the $product.ean13 value, but that's just a wild guess. I'll try to have a look this weekend and see how I fixed it in my code.

Edited by obewanz
more info (see edit history)
Link to comment
Share on other sites

  • 1 month later...
On 2/22/2020 at 12:09 PM, Surffari said:

I ma fighting with this same problem.

Can't find any examples how to add these directives/attributes in a way that Google would accept it.

I do have EAN's for all my products.

Found this block from product.tpl and tried a few things here, but without the wanted end result.
Also looking the schema, but that doesn't really help me. 

Any insoight or examples would be welcome

 


{block name='head' append}
  <meta property="og:type" content="product">
  <meta property="og:url" content="{$urls.current_url}">
  <meta property="og:title" content="{$page.meta.title}">
  <meta property="og:site_name" content="{$shop.name}">
  <meta property="og:description" content="{$page.meta.description}">
  <meta property="og:image" content="{$product.cover.large.url}">
  <meta property="product:pretax_price:amount" content="{$product.price_tax_exc}">
  <meta property="product:pretax_price:currency" content="{$currency.iso_code}">
  <meta property="product:price:amount" content="{$product.price_amount}">
  <meta property="product:price:currency" content="{$currency.iso_code}">
  <!-- added gtin directive >>>>  -->
  <meta property="product:gtin" content="{$product.ean13}">
  <meta property="product:mpn" content="{$product.ean13}">
  <!-- <<<< added gtin directive -->
  
  {if isset($product.weight) && ($product.weight != 0)}
  <meta property="product:weight:value" content="{$product.weight}">
  <meta property="product:weight:units" content="{$product.weight_unit}">
  {/if}
{/block}

 

Well, you never responded, so I must assume you either got this fixed or you gave up. The above code is NOT sufficient to debug this problem - so for those who might have the same problem - try looking in your product.php class file or your ProductController.php file to make sure the $product.ean13 variable is being populated with data. Also, I don't have a gtin property being output in my theme and I believe when I added it, the problem remained so since google is all about being cryptic on what it was looking for, I removed it and only kept the mpn reference.

Link to comment
Share on other sites

3 hours ago, obewanz said:

Well, you never responded, so I must assume you either got this fixed or you gave up. The above code is NOT sufficient to debug this problem - so for those who might have the same problem - try looking in your product.php class file or your ProductController.php file to make sure the $product.ean13 variable is being populated with data. Also, I don't have a gtin property being output in my theme and I believe when I added it, the problem remained so since google is all about being cryptic on what it was looking for, I removed it and only kept the mpn reference.

Hi

I found information on github that new PS update to 1.7.7 may fix this issues https://github.com/PrestaShop/PrestaShop/issues/12694

Link to comment
Share on other sites

So, yo need to do few things:

  1. To populate the EAN and/or UPC (or ISBN), you need to set those for each product
    1. One for simple product
    2. One for every combination if you have a combination product
  2. In the TPL, you get the GTIN codes as:
    1. For UPC $product.upc
    2. For EAN $product.ean13
  3. For structured data, you need to:
    1. Set EAN as gtin13 property (EAN's required here are 13 digits)
    2. Sen UPC as gtin12 property (UPC is 12 digits)

You need to define these inside the Product itemscope.

I first fixed this in code amending them as meta tags microdata, but then implemented everything in JSON.

mpm is NOT the same as the gtin, don't use that, although it probably doesn't harm you either.

Here's my current JSON implementation:

            {if $product.ean13}
            "gtin13": "{$product.ean13|escape:'html':'UTF-8'}",
            {else if $product.upc}
            "gtin12": "0{$product.upc|escape:'html':'UTF-8'}",
            {/if}

I banged my head around some time trying to define the property just as gtin

Edited by Surffari (see edit history)
  • Like 2
Link to comment
Share on other sites

  • 11 months later...

Solved Missing missing GTIN and MPN in Google Search Console and Rich Snippets.

PS 1.7.7.3

Panda Theme 2.6.3

Installed Module: Ultimate 4 in 1 PrestaShop Product Reviews+Google customer reviews+Google rich snippets+Google reCAPTCHA by SunnyToo/ST-Themes

In 'Product Options Tab' filled in the UPC and copied it to the EAN entry and added an extra 0 (zero) in front and filled in the MPN.

In "Combinations Tab" select edit (pencil icon) and repeated the above.

Brand was entered everywhere it needed to be in the Product page "Basic Tab" and "Options".

Hope it helps someone?

 

Link to comment
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...