chiranjit Posted July 11, 2019 Share Posted July 11, 2019 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 More sharing options...
joseantgv Posted July 11, 2019 Share Posted July 11, 2019 Have you checked this? https://support.google.com/merchants/answer/6098295?hl=en Link to comment Share on other sites More sharing options...
chiranjit Posted July 11, 2019 Author Share Posted July 11, 2019 5 minutes ago, joseantgv said: Have you checked this? https://support.google.com/merchants/answer/6098295?hl=en 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 More sharing options...
obewanz Posted November 1, 2019 Share Posted November 1, 2019 Your theme must support rich snippets, and make sure your barcode is within a snippet tag with the - itemprop="mpn" - declaration... Google apparently does not recognize gtin as a valid declaration either... Hope this helpshttps://schema.org/Product Link to comment Share on other sites More sharing options...
Surffari Posted February 22, 2020 Share Posted February 22, 2020 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 More sharing options...
obewanz Posted April 2, 2020 Share Posted April 2, 2020 (edited) 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 April 2, 2020 by obewanz more info (see edit history) Link to comment Share on other sites More sharing options...
fedor1979 Posted May 7, 2020 Share Posted May 7, 2020 (edited) Hi I have the same issue with EAN13 and also with BRAND. Is there someone who resolved this problem? Edited May 7, 2020 by fedor1979 (see edit history) Link to comment Share on other sites More sharing options...
obewanz Posted May 8, 2020 Share Posted May 8, 2020 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 More sharing options...
fedor1979 Posted May 8, 2020 Share Posted May 8, 2020 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 More sharing options...
obewanz Posted May 9, 2020 Share Posted May 9, 2020 9 hours ago, fedor1979 said: 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 Well, good luck with that upgrade. Seriously, I hope you have better luck than I did. Link to comment Share on other sites More sharing options...
Surffari Posted May 9, 2020 Share Posted May 9, 2020 (edited) So, yo need to do few things: To populate the EAN and/or UPC (or ISBN), you need to set those for each product One for simple product One for every combination if you have a combination product In the TPL, you get the GTIN codes as: For UPC $product.upc For EAN $product.ean13 For structured data, you need to: Set EAN as gtin13 property (EAN's required here are 13 digits) 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 May 9, 2020 by Surffari (see edit history) 2 Link to comment Share on other sites More sharing options...
Basix101 Posted April 16, 2021 Share Posted April 16, 2021 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 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