kate66 Posted January 29, 2017 Share Posted January 29, 2017 Bonjour, j'ai prestashop 1.6 mais et quand j'ai aucun produit dans une categorie ou sous categorie j'ai un espace blanc sans le massage qui s'affiche il n'y a aucun produit dans cette catégoriePouvez-vous me dire quel est le fichier a corriger pour cela ? merci. Link to comment Share on other sites More sharing options...
Zestiria Posted January 30, 2017 Share Posted January 30, 2017 pourrais tu être plus précis ^^, donne un lien de ton site avec la page qui bug stp ^^ et à tu modifier du code avant ? avant sa fonctionner ? Link to comment Share on other sites More sharing options...
kate66 Posted January 30, 2017 Author Share Posted January 30, 2017 (edited) bonjour, voici une page sous categorie: http://chaussuresbob.fr/fr/49-ballerines-et-babies Non c'est un théme que j'ai acheté. j'ai bien dans category-count.tpl: {if $category->id == 1 OR $nb_products == 0} ({l s='There are no products in this category'}) {else} {if $nb_products == 1} (<span>{l s='%d ' sprintf=$nb_products}</span>{l s='Item' }) {else} (<span>{l s='%d ' sprintf=$nb_products}</span>{l s='Items' }) {/if} {/if} Merci. Edited January 30, 2017 by kate66 (see edit history) Link to comment Share on other sites More sharing options...
Zestiria Posted January 30, 2017 Share Posted January 30, 2017 (edited) ton message n'est pas echo fait echo ({l s='There are no products in this category'}) Edited January 30, 2017 by Zestiria (see edit history) Link to comment Share on other sites More sharing options...
kate66 Posted January 30, 2017 Author Share Posted January 30, 2017 (edited) aucun changement voici la page categorie.tpl: {include file="$tpl_dir./errors.tpl"} {if isset($category)} {if $category->id AND $category->active} {if $products} <div class="filters-panel"> <div class="row"> <div class="col-md-4 col-lg-4 hidden-sm hidden-xs view-mode pull-left"> <label>{l s='View as : '}</label> <a class="view-grid" href="#"> <span class="fa fa-th"></span> </a> <a class="view-list" href="#"> <span class="fa fa-list"></span> </a> </div> <div class="col-sm-6 col-md-4 col-lg-4 compare-box"> {include file="./product-compare.tpl"} </div> <div class="col-sm-6 col-md-4 col-lg-4 product-sort pull-right"> {include file="./product-sort.tpl"} </div> </div> </div> {include file="./product-list.tpl" products=$products} <div class="filters-panel-bottom"> {include file="./pagination.tpl"} </div> {/if} {elseif $category->id} <div class="alert alert-warning"><button data-dismiss="alert" type="button" class="close">X</button>{l s='This category is currently unavailable.'}</div> {/if} {/if} et categorie-count.tpl: {if $category->id == 1 OR $nb_products == 0} echo ({l s='There are no products in this category'}) {else} {if $nb_products == 1} (<span>{l s='%d ' sprintf=$nb_products}</span>{l s='Item' }) {else} (<span>{l s='%d ' sprintf=$nb_products}</span>{l s='Items' }) {/if} {/if} ainsi que product-list.php {if isset($products)} <!-- Products list --> <div id="product_list" class="products-list products-list-in-column row"> {$i=0} {foreach from=$products item=product name=products} <div class="item ajax_block_product" itemscope itemtype="http://schema.org/Product"> <div class="product-preview {if $phover == 'image_swap'}image_swap{/if}"> <div class="preview"> <a href="{$product.link|escape:'html'}" class="preview-image product_img_link image-rollover" data-id-product="{$product.id_product}" itemprop="url"> <img class="img-responsive product-img1" src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home_default')|escape:'html'}" alt="" itemprop="image" /> </a> {if isset($product.on_sale) && $product.on_sale && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE} <div class="label-wrapper wrapper-sale"> <div class="label label-sale">{l s='Sale'}</div> </div> {elseif isset($product.new) && $product.new == 1} <div class="label-wrapper"> <div class="label label-new">{l s='New'}</div> </div> {/if} <div class="product-button"> <ul> <li> <a class="addToWishlist product-btn" href="#" onclick="WishlistCart('wishlist_block_list', 'add', '{$product.id_product|escape:'html'}', false, 1); return false;" data-id-product="{$product.id_product|escape:'html'}" title="{l s='Add to Wishlist' mod='jmsbestsellers'}"><i class="fa fa-heart-o"></i></a> </li> <li> {if $page_name != 'index'} {if isset($comparator_max_item) && $comparator_max_item} <a class="add_to_compare product-btn" href="{$product.link|escape:'html':'UTF-8'}" data-id-product="{$product.id_product}" title="{l s='Add to Compare'}"> <i class="fa fa-spinner fa-spin"></i> <i class="fa fa-check"></i><i class="fa fa-copy"></i></a> {/if} {/if} </li> <li> <a data-link="{$product.link|escape:'html':'UTF-8'}" class="quick-view product-btn hidden-xs" title="{l s='Quick View' mod='jmsbestsellers'}"><i class="fa fa-external-link"></i></a> </li> </ul> </div> </div> <div class="product-info"> <h3 class="title" itemprop="name"><a href="{$product.link|escape:'html'}" itemprop="url">{$product.name|truncate:25:'...'|escape:'html':'UTF-8'}</a></h3> <div class="content_price" itemprop="offers" itemscope itemtype="http://schema.org/Offer"> {if $product.show_price AND !isset($restricted_country_mode) AND !$PS_CATALOG_MODE} {if isset($product.specific_prices) && $product.specific_prices && isset($product.specific_prices.reduction) && $product.specific_prices.reduction > 0} {hook h="displayProductPriceBlock" product=$product type="old_price"} <span class="old price"> {displayWtPrice p=$product.price_without_reduction} </span> {/if} <span class="price new" itemprop="price"> {hook h="displayProductPriceBlock" product=$product type="before_price"} {if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if} </span> {if $PS_STOCK_MANAGEMENT && isset($product.available_for_order) && $product.available_for_order && !isset($restricted_country_mode)} <span class="unvisible"> {if ($product.allow_oosp || $product.quantity > 0)} <link itemprop="availability" href="http://schema.org/InStock" />{if $product.quantity <= 0}{if $product.allow_oosp}{if isset($product.available_later) && $product.available_later}{$product.available_later}{else}{l s='In Stock'}{/if}{else}{l s='Out of stock'}{/if}{else}{if isset($product.available_now) && $product.available_now}{$product.available_now}{else}{l s='In Stock'}{/if}{/if} {elseif (isset($product.quantity_all_versions) && $product.quantity_all_versions > 0)} <link itemprop="availability" href="http://schema.org/LimitedAvailability" />{l s='Product available with different options'} {else} <link itemprop="availability" href="http://schema.org/OutOfStock" />{l s='Out of stock'} {/if} </span> {/if} {hook h="displayProductPriceBlock" product=$product type="price"} {hook h="displayProductPriceBlock" product=$product type="unit_price"} {/if} <meta itemprop="priceCurrency" content="{$currency->iso_code}" /> </div> {if isset($product.is_virtual) && !$product.is_virtual}{hook h="displayProductDeliveryTime" product=$product}{/if} {hook h="displayProductPriceBlock" product=$product type="weight"} <div class="add_to_cart_button"> {if ($product.id_product_attribute == 0 OR (isset($add_prod_display) AND ($add_prod_display == 1))) AND $product.available_for_order AND !isset($restricted_country_mode) AND $product.minimal_quantity == 1 AND $product.customizable != 2 AND !$PS_CATALOG_MODE} {if ($product.quantity > 0 OR $product.allow_oosp)} <a class="exclusive ajax_add_to_cart_button cart-button product-btn" data-id-product="{$product.id_product}" href="{$link->getPageLink('cart')|escape:'html':'UTF-8'}?qty=1&id_product={$product.id_product}&token={$static_token}&add" title="{l s='Add to cart' mod='jmsbestsellers'}"> <span>{l s='Add to cart'}</span> <i class="fa fa-spinner fa-spin"></i> <i class="fa fa-check"></i> </a> {else} <a href="#" class="disable product-btn cart-button" title="{l s='Add to cart'}"> <span>{l s='Add to cart'}</span> </a> {/if} {/if} </div> <div class="list_info"> <div class="list_button"> <div class="add_to_cart_button"> {if ($product.id_product_attribute == 0 OR (isset($add_prod_display) AND ($add_prod_display == 1))) AND $product.available_for_order AND !isset($restricted_country_mode) AND $product.minimal_quantity == 1 AND $product.customizable != 2 AND !$PS_CATALOG_MODE} {if ($product.quantity > 0 OR $product.allow_oosp)} <a class="ajax_add_to_cart_button product-btn cart-button" data-id-product="{$product.id_product}" href="{$link->getPageLink('cart')|escape:'html'}?qty=1&id_product={$product.id_product}&token={$static_token}&add" title="{l s='Add to cart'}"> <i class="fa fa-check"></i> <i class="fa fa-spinner fa-spin"></i> <span>{l s='Add to cart'}</span> </a> {else} <a href="#" class="disable product-btn cart-button" title="{l s='Add to cart'}"> <span>{l s='Add to cart'}</span> </a> {/if} {/if} </div> </div> <!--description--> <div class="list_description"> {$product.description_short|strip_tags:'UTF-8'|truncate:260:'...'} </div> </div> </div> </div> </div> {$i=$i+1} {/foreach} </div> <!-- /Products list --> {/if} mon site prestashop 1.6 est en multi langue. merci pour votre aide. Edited January 30, 2017 by kate66 (see edit history) Link to comment Share on other sites More sharing options...
kate66 Posted January 31, 2017 Author Share Posted January 31, 2017 bonjour, personne n'aurai une idée ? merci. Link to comment Share on other sites More sharing options...
Zestiria Posted January 31, 2017 Share Posted January 31, 2017 {if $category->id == 1 OR $nb_products == 0} echo ({l s='There are no products in this category'}) {else} {if $nb_products == 1} (<span>{l s='%d ' sprintf=$nb_products}</span>{l s='Item' }) {else} (<span>{l s='%d ' sprintf=$nb_products}</span>{l s='Items' }) {/if} {/if} à la place de ci- dessu essayer sa : {if $category->id == 1 OR $nb_products == 0} <span>{l s='There are no products in this category'}</span> {else} {if $nb_products == 1} (<span>{l s='%d ' sprintf=$nb_products}</span>{l s='Item' }) {else} (<span>{l s='%d ' sprintf=$nb_products}</span>{l s='Items' }) {/if} {/if} Link to comment Share on other sites More sharing options...
kate66 Posted January 31, 2017 Author Share Posted January 31, 2017 aucun changement rien ne s'affiche comme quand on clic sur accessoires ou il y'a pas de produit par exemple.merci Link to comment Share on other sites More sharing options...
kate66 Posted February 1, 2017 Author Share Posted February 1, 2017 bonjour, je n'ai trouvé aucune solution personne n'aurai une suggestion.merci. Link to comment Share on other sites More sharing options...
Zestiria Posted February 1, 2017 Share Posted February 1, 2017 je pense du coup peut être à un soucie de configuration Link to comment Share on other sites More sharing options...
kate66 Posted February 1, 2017 Author Share Posted February 1, 2017 serait-tu ce qu'il faut cocher pour faire apparaitre ce message.merci. Link to comment Share on other sites More sharing options...
Zestiria Posted February 1, 2017 Share Posted February 1, 2017 la je ne pas t'aider regarde dans tes module du doit avoir un module catégorie regarde sa configuration 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