Virodo Posted December 5, 2020 Share Posted December 5, 2020 Bonjour, Je viens de passer à la 1.7.7 (prestashop classic) et c'est un carnage niveau erreurs du coup j'aimerais savoir si quelqu'un connait un correctif car je n'ai rien trouvé nul part. J'ai deux erreurs dans le fil d'ariane et 1 redondante dans les produits : Erreur Ariane 1 : Vous devez indiquer "name" ou "item.name" Ligne 471 : <li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"> <a itemprop="item" href=""> <span itemprop="name"></span> </a> <meta itemprop="position" content="2"> </li> Erreur Ariane 2 : Champ "itemListElement" manquant Ligne 462 : <ol itemscope itemtype="http://schema.org/BreadcrumbList"> <li> <span>Accueil</span> </li> </ol> Erreur Products : Il faut indiquer "offers", "review", ou "aggregateRating" Ligne 621 : <article class="product-miniature js-product-miniature" data-id-product="31" data-id-product-attribute="0" itemscope itemtype="http://schema.org/Product"> <div class="thumbnail-container"> <a href="https://www.arzerezh.com/en/aluminum-doorbells/31-aluminum-doorbells-round-doorbell-with-brushed-aluminum-front.html" class="thumbnail product-thumbnail"> <img src="https://www.arzerezh.com/155-home_default/aluminum-doorbells-round-doorbell-with-brushed-aluminum-front.jpg" alt="aluminum doorbells Round doorbell with brushed aluminum front" data-full-size-image-url="https://www.arzerezh.com/155-large_default/aluminum-doorbells-round-doorbell-with-brushed-aluminum-front.jpg" /> </a> <div class="product-description"> <h2 class="h3 product-title" itemprop="name"><a href="https://www.arzerezh.com/en/aluminum-doorbells/31-aluminum-doorbells-round-doorbell-with-brushed-aluminum-front.html">Round doorbell with brushed...</a></h2> <div class="product-price-and-shipping"> <span class="sr-only">Price</span> <span itemprop="price" class="price">€19.60</span> </div> </div> <!-- @todo: use include file='catalog/_partials/product-flags.tpl'} --> <ul class="product-flags"> </ul> <div class="highlighted-informations no-variants hidden-sm-down"> <a class="quick-view" href="#" data-link-action="quickview"> <i class="material-icons search"></i> Quick view </a> </div> </div> </article> Voilà, j'ai cherché sur les forums anglais mais j'ai rien trouver. Link to comment Share on other sites More sharing options...
Mediacom87 Posted December 5, 2020 Share Posted December 5, 2020 Link to comment Share on other sites More sharing options...
Virodo Posted December 5, 2020 Author Share Posted December 5, 2020 Merci beaucoup ! Link to comment Share on other sites More sharing options...
Virodo Posted December 5, 2020 Author Share Posted December 5, 2020 Bon en fait c'est pas ça. Rien sur le probleme des fils d'ariane. Quand à l'autre j'ai essayé comme dit dans les messages mais ça a planté mon site. J'ai retirer les "itemquelquechose" dans le fichier : themes/classic/templates/catalog/_partials/miniatures/product.tpl mais les retirer en barbare n'était pas la bonne solution. Du coup je reviens vers vous avec le fichier d'origine, et en gras les parties que j'ai enlevé. J'ai forcement mal fait quelque chose, si vous avez la possibilité de m'indiquer où je me suis planté ce serait fortement apprécié. {** * Copyright since 2007 PrestaShop SA and Contributors * PrestaShop is an International Registered Trademark & Property of PrestaShop SA * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License 3.0 (AFL-3.0) * that is bundled with this package in the file LICENSE.md. * It is also available through the world-wide-web at this URL: * https://opensource.org/licenses/AFL-3.0 * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to https://devdocs.prestashop.com/ for more information. * * @author PrestaShop SA and Contributors <contact@prestashop.com> * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) *} {block name='product_miniature_item'}<div itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"> {if isset($position)}<meta itemprop="position" content="{$position}" />{/if} <article class="product-miniature js-product-miniature" data-id-product="{$product.id_product}" data-id-product-attribute="{$product.id_product_attribute}" itemprop="item" itemscope itemtype="http://schema.org/Product"> <div class="thumbnail-container"> {block name='product_thumbnail'} {if $product.cover} <a href="{$product.url}" class="thumbnail product-thumbnail"> <img src="{$product.cover.bySize.home_default.url}" alt="{if !empty($product.cover.legend)}{$product.cover.legend}{else}{$product.name|truncate:30:'...'}{/if}" data-full-size-image-url="{$product.cover.large.url}" /> </a> {else} <a href="{$product.url}" class="thumbnail product-thumbnail"> <img src="{$urls.no_picture_image.bySize.home_default.url}" /> </a> {/if} {/block} <div class="product-description"> {block name='product_name'} {if $page.page_name == 'index'} <h3 class="h3 product-title" itemprop="name"><a href="{$product.url}" itemprop="url" content="{$product.url}">{$product.name|truncate:30:'...'}</a></h3> {else} <h2 class="h3 product-title" itemprop="name"><a href="{$product.url}" itemprop="url" content="{$product.url}">{$product.name|truncate:30:'...'}</a></h2> {/if} {/block} {block name='product_price_and_shipping'} {if $product.show_price} <div class="product-price-and-shipping"> {if $product.has_discount} {hook h='displayProductPriceBlock' product=$product type="old_price"} <span class="regular-price" aria-label="{l s='Regular price' d='Shop.Theme.Catalog'}">{$product.regular_price}</span> {if $product.discount_type === 'percentage'} <span class="discount-percentage discount-product">{$product.discount_percentage}</span> {elseif $product.discount_type === 'amount'} <span class="discount-amount discount-product">{$product.discount_amount_to_display}</span> {/if} {/if} {hook h='displayProductPriceBlock' product=$product type="before_price"} <span class="price" aria-label="{l s='Price' d='Shop.Theme.Catalog'}">{$product.price}</span> <div itemprop="offers" itemscope itemtype="http://schema.org/Offer" class="invisible"> <meta itemprop="priceCurrency" content="{$currency.iso_code}" /> <meta itemprop="price" content="{$product.price_amount}" /> </div> {hook h='displayProductPriceBlock' product=$product type='unit_price'} {hook h='displayProductPriceBlock' product=$product type='weight'} </div> {/if} {/block} {block name='product_reviews'} {hook h='displayProductListReviews' product=$product} {/block} </div> {include file='catalog/_partials/product-flags.tpl'} <div class="highlighted-informations{if !$product.main_variants} no-variants{/if} hidden-sm-down"> {block name='quick_view'} <a class="quick-view" href="#" data-link-action="quickview"> <i class="material-icons search"></i> {l s='Quick view' d='Shop.Theme.Actions'} </a> {/block} {block name='product_variants'} {if $product.main_variants} {include file='catalog/_partials/variant-links.tpl' variants=$product.main_variants} {/if} {/block} </div> </div> </article> </div> {/block} En vous remerciant. Link to comment Share on other sites More sharing options...
Virodo Posted December 6, 2020 Author Share Posted December 6, 2020 Concernant le probleme de fils d'ariane j'ai trouver ceci : Il faut mettre à jour breadcrumb.tpl : https://www.prestashop.com/forums/topic/1002405-fils-dariane-champ-item-manquant/ Si jamais ça peut aider quelqu'un d'autre. 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