[Skip to main content](#vessel-content)

#   Champ 'price' manquant

##

- **[Marti](/forum/user/2853-marti "View Marti's Profile")**
- [![Marti's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar2853.png)](/forum/user/2853-marti "View Marti's Profile") Topic Author
- [ Offline](/forum/user/2853-marti)

Less More

- Posts: 111
- Thank you received: 19
-

3 years 11 months ago -  2 years 10 months ago [\#347180](#347180) by [Marti](/forum/user/2853-marti "View Marti's Profile")  *[Champ 'price' manquant](/forum/5-support-en-francais-french-support-/905476-champ-price-manquant#347180 "-- url of the page with the problem -- :   bases-netsources.com/boutique  -- HikaShop version -- : 4.6.2  Hello, Depuis quelques temps je reçois de Google l'avertissement &quot;Champ 'price' manquant&quot; pour les sites avec HikaShop déclarés dans la Search Console. Et maintenant le message &quot;Champ 'image' manquant&quot; Evidement les fiches produits ont un prix affiché et une image. Y a-t-il moyen de corriger cela ? Merci")* was created by *[Marti](/forum/user/2853-marti "View Marti's Profile")*

-- url of the page with the problem -- : [ bases-netsources.com/boutique](https://bases-netsources.com/boutique)
-- HikaShop version -- : 4.6.2

Hello,
Depuis quelques temps je reçois de Google l'avertissement "Champ 'price' manquant" pour les sites avec HikaShop déclarés dans la Search Console.
Et maintenant le message "Champ 'image' manquant"
Evidement les fiches produits ont un prix affiché et une image.
Y a-t-il moyen de corriger cela ?
Merci

- [ ![error-search-console.png](/forum/attachment/56050) ](/forum/attachment/56050 "...ch-console.png") [ ](/forum/attachment/56050?download=1 "...ch-console.png")

Last edit: 2 years 10 months ago by [Marti](/forum/user/2853-marti "View Marti's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vOTA1NDc2LWNoYW1wLXByaWNlLW1hbnF1YW50P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

3 years 11 months ago [\#347184](#347184) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Champ 'price' manquant](/forum/5-support-en-francais-french-support-/905476-champ-price-manquant#347184 "-- url of the page with the problem -- :   bases-netsources.com/boutique  -- HikaShop version -- : 4.6.2  Hello, Depuis quelques temps je reçois de Google l'avertissement &quot;Champ 'price' manquant&quot; pour les sites avec HikaShop déclarés dans la Search Console. Et maintenant le message &quot;Champ 'image' manquant&quot; Evidement les fiches produits ont un prix affiché et une image. Y a-t-il moyen de corriger cela ? Merci")*

Bonjour,

Le souci vient des overrides de vue de la page produit.
Ils sont basés sur de vieilles versions d'HikaShop ou les meta tags en question n'étaient pas renseignés, car pas nécessaire à l'époque.
Par exemple, pour l'image, il y a ce code dans product / show_block_img: Code:

&lt;?php if(empty($this-&gt;variant_name) &amp;&amp; !empty($img-&gt;origin_url)) { if(strpos($img-&gt;origin_url, 'http://') === false &amp;&amp; strpos($img-&gt;origin_url, 'https://') === false) { $url = HIKASHOP_LIVE; $pieces = parse_url(HIKASHOP_LIVE); if(!empty($pieces['path'])) $url = substr(HIKASHOP_LIVE,0,strrpos(HIKASHOP_LIVE,$pieces['path'])); $img-&gt;origin_url = $url.$img-&gt;origin_url; } ?&gt; &lt;meta itemprop="image" content="&lt;?php echo $img-&gt;origin_url; ?&gt;"/&gt; &lt;?php } } ?&gt;

Ce code est vraissemblablement manquant dans l'override.

Pareil dans product / show_default qui contient du code pour les meta tags liés au prix: Code:

&lt;!-- PRICE --&gt; &lt;?php $itemprop_offer = ''; if (!empty($this-&gt;element-&gt;prices)) $itemprop_offer = 'itemprop="offers" itemscope itemtype="https://schema.org/Offer"'; ?&gt; &lt;span id="hikashop_product_price_main" class="hikashop_product_price_main" &lt;?php echo $itemprop_offer; ?&gt;&gt; &lt;?php $main =&amp; $this-&gt;element; if(!empty($this-&gt;element-&gt;main)) $main =&amp; $this-&gt;element-&gt;main; if(!empty($main-&gt;product_condition) &amp;&amp; !empty($this-&gt;element-&gt;prices)) { ?&gt; &lt;meta itemprop="itemCondition" itemtype="https://schema.org/OfferItemCondition" content="https://schema.org/&lt;?php echo $main-&gt;product_condition; ?&gt;" /&gt; &lt;?php } if($this-&gt;params-&gt;get('show_price') &amp;&amp; (empty($this-&gt;displayVariants['prices']) &#124;&#124; $this-&gt;params-&gt;get('characteristic_display') != 'list')) { $this-&gt;row =&amp; $this-&gt;element; $this-&gt;setLayout('listing_price'); echo $this-&gt;loadTemplate(); if (!empty($this-&gt;element-&gt;prices)) { ?&gt; &lt;meta itemprop="price" content="&lt;?php echo $this-&gt;itemprop_price; ?&gt;" /&gt; &lt;meta itemprop="availability" content="https://schema.org/&lt;?php echo ($this-&gt;row-&gt;product_quantity != 0) ? 'InStock' : 'OutOfstock' ;?&gt;" /&gt; &lt;meta itemprop="priceCurrency" content="&lt;?php echo $this-&gt;currency-&gt;currency_code; ?&gt;" /&gt; &lt;?php } } ?&gt; &lt;/span&gt; &lt;!-- EO PRICE --&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vOTA1NDc2LWNoYW1wLXByaWNlLW1hbnF1YW50P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Marti](/forum/user/2853-marti "View Marti's Profile")**
- [![Marti's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar2853.png)](/forum/user/2853-marti "View Marti's Profile") Topic Author
- [ Offline](/forum/user/2853-marti)

Less More

- Posts: 111
- Thank you received: 19
-

3 years 11 months ago [\#347200](#347200) by [Marti](/forum/user/2853-marti "View Marti's Profile")  Replied by *[Marti](/forum/user/2853-marti "View Marti's Profile")* on topic *[Champ 'price' manquant](/forum/5-support-en-francais-french-support-/905476-champ-price-manquant#347200 "-- url of the page with the problem -- :   bases-netsources.com/boutique  -- HikaShop version -- : 4.6.2  Hello, Depuis quelques temps je reçois de Google l'avertissement &quot;Champ 'price' manquant&quot; pour les sites avec HikaShop déclarés dans la Search Console. Et maintenant le message &quot;Champ 'image' manquant&quot; Evidement les fiches produits ont un prix affiché et une image. Y a-t-il moyen de corriger cela ? Merci")*

Hello Nicolas,
Super merci, ai corrigé ![:)](/media/kunena/emoticons/3.png ":)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vOTA1NDc2LWNoYW1wLXByaWNlLW1hbnF1YW50P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.056 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
