freds83 Posted September 25 Share Posted September 25 Bonjour je rencontre une erreur critique Itemreviewed manquant J'ai fouillé le forum français et anglais mais je n'ai pas trouvé de solution Si une âme charitable passe par ici et peux m'aiguiller Version prestashop 1.7.8.11 url: https://sucette-perso.fr/tetine-bebe-animaux/1529-tetine-personnalisee-chat-mignon.html En attendant bon après midi et merci d'avoir pris le temps de me lire Link to comment Share on other sites More sharing options...
cocos.codes Posted September 25 Share Posted September 25 Mettez à jour le module d'avis Vérifiez que vous utilisez la dernière version de productcomments (module officiel Prestashop). Les versions antérieures ne généraient pas de JSON-LD correct. Après avoir apporté les modifications, testez la page dans Google Rich Results Test. https://search.google.com/test/rich-results Link to comment Share on other sites More sharing options...
freds83 Posted September 25 Author Share Posted September 25 Bonjour il est a jour, ainsi que mon module d'avis Link to comment Share on other sites More sharing options...
cocos.codes Posted September 25 Share Posted September 25 Essayez donc d'ajouter manuellement l'attribut manquant. Dans un autre article, j'ai décrit en détail comment procéder, cela vous aidera aussi 🙂 Link to comment Share on other sites More sharing options...
freds83 Posted September 25 Author Share Posted September 25 Le soucis c'est que je trouve pas sur quel fichier apporter cette modification? Dans les tpl du template? tpl du module d'avis ? Link to comment Share on other sites More sharing options...
cocos.codes Posted September 25 Share Posted September 25 Vous devrez probablement modifier cela dans le fichier (selon votre thème). themes/your-theme/templates/catalog/_partials/miniatures/product.tpl Si possible, donnez-moi le lien vers votre site, je vais essayer de vous donner l'adresse exacte du fichier. Link to comment Share on other sites More sharing options...
freds83 Posted September 25 Author Share Posted September 25 merci énormément adresse du site: https://sucette-perso.fr a Link to comment Share on other sites More sharing options...
cocos.codes Posted September 25 Share Posted September 25 /themes/universal/templates/catalog/_partials/miniatures/product.tpl vérifiez ce dossier et ce fichier Link to comment Share on other sites More sharing options...
freds83 Posted September 25 Author Share Posted September 25 pas ici apparemment voici le contenu du fichier {* ---------------------------------------- * PRESTASHOP THEME UNIVERSAL (c) Prestacrea * @author Prestacrea www.prestacrea.com * @license French copyright all rights reserved * ---------------------------------------- *} {if $page.page_name == 'index'} {if isset($pte_homeproducts) && $pte_homeproducts == 3}{assign var=col value=4}{/if} {if isset($pte_homeproducts) && $pte_homeproducts == 4}{assign var=col value=3}{/if} {if isset($pte_homeproducts) && $pte_homeproducts == 5}{assign var=col value=2}{/if} {elseif $page.page_name == 'category' || $page.page_name == 'new-products' || $page.page_name == 'prices-drop' || $page.page_name == 'best-sales'} {if isset($smarty.cookies.listproducts) && $smarty.cookies.listproducts == 3}{assign var=col value=4}{/if} {if isset($smarty.cookies.listproducts) && $smarty.cookies.listproducts == 4}{assign var=col value=3}{/if} {if isset($smarty.cookies.listproducts) && $smarty.cookies.listproducts == 5}{assign var=col value=2}{/if} {else} {assign var=col value=2} {/if} {block name='product_miniature_item'} <article class="product-miniature js-product-miniature col-6 col-sm-4 col-md-{if isset($col)}{$col}{else}3{/if}" data-id-product="{$product.id_product}" data-id-product-attribute="{$product.id_product_attribute}"> <div class="product-block {if $product.new}new-product{/if}"> <div class="thumbnail-container position-relative h-auto overflow-hidden"> {block name='product_flags'} {foreach from=$product.flags item=flag} {if $flag.type == 'new'} <span class="{$flag.type} d-flex align-items-center position-absolute font-weight-bold text-uppercase px-2">{l s='New' d='Shop.CreathemeCatalog'}</span> {/if} {/foreach} {/block} {if $product.show_price && $product.has_discount} {if $product.discount_type === 'percentage'} <span class="discount-percentage discount d-flex justify-content-center align-items-center position-absolute rounded-circle px-2"> {$product.discount_percentage} </span> {elseif $product.discount_type === 'amount'} <span class="discount-amount discount d-flex justify-content-center align-items-center position-absolute rounded-circle px-2"> -{$product.discount_amount} </span> {/if} {/if} {block name='product_thumbnail'} <span class="product-thumbnail" data-ob="{$product.url|base64_encode}"> {assign var=cover value=(isset($product.default_image)) ? $product.default_image : $product.cover} {if $cover} <img class="product-img lazy {if isset($pte_productimgborder) && $pte_productimgborder}img-thumbnail{/if}" src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" data-src="{$cover.bySize.home_default.url}" data-full-size-image-url="{$cover.bySize.large_default.url}" alt="{if $cover.legend}{$cover.legend}{else}{$product.name}{/if}" decoding="async" width="{$cover.bySize.home_default.width}" height="{$cover.bySize.home_default.height}"> {foreach from=$product.images item=image} {if $image != $cover} <img class="product-img-alt lazy {if isset($pte_productimgborder) && $pte_productimgborder}img-thumbnail{/if} position-absolute" src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" data-src="{$image.bySize.home_default.url}" data-full-size-image-url="{$image.bySize.large_default.url}" alt="{if $image.legend}{$image.legend}{else}{$product.name}{/if}" decoding="async" width="{$image.bySize.home_default.width}" height="{$image.bySize.home_default.height}"> {break} {/if} {/foreach} {elseif isset($urls.no_picture_image)} <img class="lazy {if isset($pte_productimgborder) && $pte_productimgborder}img-thumbnail{/if}" src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" data-src="{$urls.no_picture_image.bySize.home_default.url}" alt="" decoding="async" width="{$urls.no_picture_image.bySize.home_default.width}" height="{$urls.no_picture_image.bySize.home_default.height}"> {/if} </span> {/block} <div class="highlighted-informations position-absolute w-100 h-auto"> {block name='product_variants'} {if $product.main_variants} {include file='catalog/_partials/variant-links.tpl' variants=$product.main_variants} {/if} {/block} {block name='product_availability'} {if $product.show_availability && $product.available_for_order} <div class="{if $product.quantity <= 0 && $product.allow_oosp}last_remaining_items{else}{$product.availability}{/if} product-availability font-weight-bold text-center text-uppercase {if $product.main_variants}mt-1 mb-2 mx-2{else}m-2{/if}"> {if $product.availability_message} {assign var=inCart value=false} {foreach from=$cart.products item=cartproduct} {if $cartproduct.id_product == $product.id_product && $cartproduct.id_product_attribute == $product.id_product_attribute} {assign var=inCart value=true} {/if} {/foreach} {if $inCart == true && $product.quantity <= 1 && !$product.allow_oosp} {l s='The last one available is in your cart' d='Shop.CreathemeCatalog'} {else} {$product.availability_message} {/if} {else} {if $product.quantity <= 0 && $product.allow_oosp} {l s='Preorder' d='Shop.CreathemeCatalog'} {elseif $product.quantity <= 0 && !$product.allow_oosp} {l s='Out of stock' d='Shop.CreathemeCatalog'} {else} {l s='Available' d='Shop.CreathemeCatalog'} {/if} {/if} </div> {elseif $product.show_availability && !$product.available_for_order} <div class="unavailable product-availability font-weight-bold text-center text-uppercase {if $product.main_variants}mt-1 mb-2 mx-2{else}m-2{/if}">{l s='Unavailable' d='Shop.CreathemeCatalog'}</div> {/if} {/block} </div> </div> <div class="info-container w-100"> {block name='product_reviews'}{hook h='displayProductListReviews' product=$product}{/block} {block name='product_name'} <h3 class="product-title h5 text-center overflow-hidden mt-2"> <a href="{$product.url}">{$product.name|truncate:45:'...'}</a> </h3> {/block} {block name='product_description_short'} <div class="product-description-short overflow-hidden hidden mb-2">{$product.description_short|strip_tags|truncate:180:'...'}</div> {/block} {block name='product_price_and_shipping'} {if $product.show_price} <div class="product-price-and-shipping d-flex justify-content-between align-items-end"> <div class="product-price-shipping"> {if $product.has_discount} <span class="regular-price d-block" aria-label="{l s='Regular price' d='Shop.CreathemeCatalog'}">{$product.regular_price}</span> {/if} {hook h='displayProductPriceBlock' product=$product type='before_price'} <span class="price" aria-label="{l s='Price' d='Shop.CreathemeCatalog'}"> {capture name='custom_price'}{hook h='displayProductPriceBlock' product=$product type='custom_price' hook_origin='products_list'}{/capture} {if $smarty.capture.custom_price !== ''} {$smarty.capture.custom_price nofilter} {else} {$product.price} {/if} </span> {hook h='displayProductPriceBlock' product=$product type='unit_price'} {hook h='displayProductPriceBlock' product=$product type='weight'} </div> <div class="product-actions d-flex"> {if !$configuration.is_catalog && (($page.page_name == 'index' && (!isset($pte_homebutton) || $pte_homebutton)) || ($page.page_name != 'index' && (!isset($smarty.cookies.listbutton) || $smarty.cookies.listbutton)))} {if $product.add_to_cart_url != null && $product.available_for_order && $product.customizable == 0 && ($product.quantity > 0 || $product.allow_oosp) && ($product.minimal_quantity <= 1 && (!isset($product.product_attribute_minimal_quantity) || $product.product_attribute_minimal_quantity <= 1))} <form method="post" action="{url entity='cart'}"> <input name="token" type="hidden" value="{if isset($smarty.cookies.statictoken)}{$smarty.cookies.statictoken}{/if}"> <input name="id_product" type="hidden" value="{$product.id_product}"> <button class="add-to-cart btn shadow-none p-0 {if $ps_version >= '1.7.8.0'}add-to-cart-fix{/if}" type="submit" data-button-action="add-to-cart" data-toggle="tooltip" title="{l s='Add to cart' d='Shop.CreathemeCatalog'}" aria-label="{l s='Add to cart' d='Shop.CreathemeCatalog'}">{if $ps_version < '1.7.8.0'}<i class="icon-shopping-basket-round" aria-hidden="true"></i>{/if}</button> </form> {else} <button class="btn disabled p-0" type="button" data-toggle="tooltip" title="{l s='Add to cart' d='Shop.CreathemeCatalog'}" aria-label="{l s='Add to cart' d='Shop.CreathemeCatalog'}"><i class="icon-shopping-basket-round" aria-hidden="true"></i></button> {/if} {/if} {block name='quick_view'} {if !isset($pte_quickview) || $pte_quickview} <button class="quick-view js-quick-view btn shadow-none hidden-xs-down ml-2 p-0" type="button" data-link-action="quickview" data-toggle="tooltip" title="{l s='Quick view' d='Shop.CreathemeCatalog'}" aria-label="{l s='Quick view' d='Shop.CreathemeCatalog'}"><i class="icon-magnifier" aria-hidden="true"></i></button> {/if} {/block} </div> </div> {/if} {/block} </div> </div> </article> {/block} 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