P i l o u Posted October 20, 2021 Share Posted October 20, 2021 Bonjour, J'ai depuis peu des avertissements sur la console Google Search. Il est indiqué Type d'objet invalide pour le champ "Brand" alors que le test des résultats enrichis trouve bien la ligne <meta itemprop="brand" content="marque"> Le type trouvé est "Thing", est-ce le bon type svp ? Merci d'avance. Cordialement, Pilou Link to comment Share on other sites More sharing options...
Eolia Posted October 20, 2021 Share Posted October 20, 2021 Non... "Thing" est générique. https://developers.google.com/search/docs/advanced/structured-data/product?hl=fr Link to comment Share on other sites More sharing options...
P i l o u Posted October 20, 2021 Author Share Posted October 20, 2021 Bonjour Eolia, Merci pour ta réponse. Thing n'est donc pas le bon type ? Comment le changer svp ? Dans le product.tpl, j'ai ceci: <meta itemprop="brand" content="{$product_manufacturer->name|escape:'html':'UTF-8'}"> {if file_exists($smarty.const._PS_ROOT_DIR_|cat:'/img/m/'|cat:$product_manufacturer->id|cat:'.jpg')} <span class="manufacturer-logo" data-ob="{$link->getManufacturerLink($product_manufacturer->id, $product_manufacturer->link_rewrite)|escape:'html':'UTF-8'|base64_encode}"> <img src="{$img_manu_dir|escape:'html':'UTF-8'}{$product_manufacturer->id|intval}.jpg" alt="{$product_manufacturer->name|escape:'html':'UTF-8'}"> </span> {else} <label class="mb-0">{l s='Brand:'}</label> <span class="text-primary font-weight-bold" data-ob="{$link->getManufacturerLink($product_manufacturer->id, $product_manufacturer->link_rewrite)|escape:'html':'UTF-8'|base64_encode}"> {$product_manufacturer->name|escape:'html':'UTF-8'} </span> {/if} Que dois-je changer svp ? Link to comment Share on other sites More sharing options...
Eolia Posted October 20, 2021 Share Posted October 20, 2021 Ben en suivant la doc^^ {if file_exists($smarty.const._PS_ROOT_DIR_|cat:'/img/m/'|cat:$product_manufacturer->id|cat:'.jpg')} <span class="manufacturer-logo" data-ob="{$link->getManufacturerLink($product_manufacturer->id, $product_manufacturer->link_rewrite)|escape:'html':'UTF-8'|base64_encode}"> <img src="{$img_manu_dir|escape:'html':'UTF-8'}{$product_manufacturer->id|intval}.jpg" alt="{$product_manufacturer->name|escape:'html':'UTF-8'}"> </span> {else} <label class="mb-0">{l s='Brand:'}</label> <span itemprop="brand" itemtype="https://schema.org/Brand" itemscope class="text-primary font-weight-bold" data-ob="{$link->getManufacturerLink($product_manufacturer->id, $product_manufacturer->link_rewrite)|escape:'html':'UTF-8'|base64_encode}"> <span itemprop="name">{$product_manufacturer->name|escape:'html':'UTF-8'}</span> </span> {/if} PS: Vous me faites marrer avec vos lien obfusqués^^ Link to comment Share on other sites More sharing options...
P i l o u Posted October 20, 2021 Author Share Posted October 20, 2021 Qu'entends-tu par liens obfusqués ? Link to comment Share on other sites More sharing options...
P i l o u Posted October 20, 2021 Author Share Posted October 20, 2021 En modifiant le code comme tu l'as indiqué, il y a toujours le même message dans GSC.. Link to comment Share on other sites More sharing options...
Eolia Posted October 20, 2021 Share Posted October 20, 2021 <span class="manufacturer-logo" data-ob="{$link->getManufacturerLink($product_manufacturer->id, $product_manufacturer->link_rewrite)|escape:'html':'UTF-8'|base64_encode}"> Ca c'est un lien obsuqué pour pas que Google le voit^^ Mais ton js le remplace par un lien <a> en mettant en hrf le data-ob décodé. On peut avoir une url de la page qui pose souci ? Link to comment Share on other sites More sharing options...
P i l o u Posted October 20, 2021 Author Share Posted October 20, 2021 Je te l'ai envoyé par mp. Merci Link to comment Share on other sites More sharing options...
P i l o u Posted October 21, 2021 Author Share Posted October 21, 2021 Bonjour, D'après Eolia, ce serait un problème de cache. Comment trouver d'où cela vient svp ? Ps 1.6.1.26 Php 7.4.22 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