djmatt62 Posted August 18, 2015 Share Posted August 18, 2015 (edited) Bonjour j'ai un probléme d'affichage des images des sous catégorie (subcatégorie) prestashop 1.6.0.9 Exemple : je clique sur vetement Homme j'ai les sous categorie Tee shirt manche courtes , Tee shirt manche longue ect... les images ne s'affiche pas Idem pour les secondes sous catégorie aprés avoir cliqué sur Tee shirt manche longue , j'ai les sous catégorie des marque , kaporal ,guess ect... dont les images sont manquante et n’apparaisse pas voici mon category.tpl {* * 2007-2013 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * 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 [email protected] 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 http://www.prestashop.com for more information. * * @author PrestaShop SA <[email protected]> * @copyright 2007-2013 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} {include file="$tpl_dir./breadcrumb.tpl"} {include file="$tpl_dir./errors.tpl"} {if isset($category)} {if $category->id AND $category->active} {capture name=global_h1}{$category->name|escape:'htmlall':'UTF-8'}{/capture} <h2> {strip} {$category->name|escape:'htmlall':'UTF-8'} {if isset($categoryNameComplement)} {$categoryNameComplement|escape:'htmlall':'UTF-8'} {/if} {/strip} </h2> {include file="$tpl_dir./category-count.tpl"} {capture assign=topslider}{hook h='displayCategoryTop'}{/capture} {if ($scenes || $category->description || $category->id_image) && $topslider == ''} <div class="content_scene_cat"> {if $scenes} <!-- Scenes --> {include file="$tpl_dir./scenes.tpl" scenes=$scenes} {else} <!-- Category image --> {if $category->id_image} <div class="align_center"> <img src="{$link->getCatImageLink($category->link_rewrite, $category->id_image, 'category_default')}" alt="{$category->name|escape:'htmlall':'UTF-8'}" title="{$category->name|escape:'htmlall':'UTF-8'}" id="categoryImage" width="{$categorySize.width}" height="{$categorySize.height}"/> </div> {/if} {/if} {if $category->description} <div class="cat_desc"> {if strlen($category->description) > 120} <div id="category_description_short" style="padding: 10px 0;">{$category->description|truncate:120}</div> <div id="category_description_full" style="display: none; padding: 10px 0;">{$category->description}</div> <a href="#" onclick="$('#category_description_short').hide(); $('#category_description_full').show(); $(this).hide(); return false;" class="lnk_more">{l s='More'}</a> {else} <p>{$category->description}</p> {/if} </div> {/if} </div> {else} {$topslider} {if $category->description} <div class="cleancode"> <p>{$category->description}</p> </div> {/if} {/if} {if isset($subcategories)} {if (isset($display_subcategories) && $display_subcategories eq 1) || !isset($display_subcategories)} <!-- Subcategories --> <div id="subcategories" class="row-fluid"> {foreach from=$subcategories item=subcategory name=subc} {math equation="i%6" i=$smarty.foreach.subc.iteration assign="div"} <div class="span2 product"> <div class="product-image-wrapper onhover animate scale animated"> <a href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'html':'UTF-8'}" title="{$subcategory.name|escape:'html':'UTF-8'}" class="img"> {if $subcategory.id_image} <img class="replace-2x img-rounded" src="{$link->getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'category_medium_default')|escape:'html':'UTF-8'}" alt="" width="122" height="111"> {else} <img class="replace-2x img-rounded" src="{$img_cat_dir}default-category_medium_default.jpg" alt="" width="122" height="111"> {/if} </a> </div> <a href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'html':'UTF-8'}"class="title"><label>{$subcategory.name|escape:'html':'UTF-8'}</label></a> </div> {if !$div} </div> <div id="subcategories" class="row-fluid"> {/if} {/foreach} </div> {/if} {/if} {if $products} <br> <div class="listing_header_row1"> {include file="./product-sort.tpl"} {include file="./product_view_mode.tpl"} {include file="./nbr-product-page.tpl"} </div> <div class="line1"></div> {include file="$tpl_dir./pagination.tpl"} <div style="clear:both;"></div> {if $tony_cfg.product_view_mode == 'grid'} <div class="row {if $tony_cfg.products_show_mode == 'reach'}{if $tony_cfg.products_img_dimensions == 'big'}big{else}small{/if}_with_description{else}{if $tony_cfg.products_img_dimensions == 'big'}big{else}small{/if}_without_description{/if}"> {else} <div class="{if $tony_cfg.products_show_mode == 'reach'}{if $tony_cfg.products_img_dimensions == 'big'}big{else}small{/if}_with_description{else}{if $tony_cfg.products_img_dimensions == 'big'}big{else}small{/if}_without_description{/if}"> {/if} {include file="./product-list.tpl" products=$products} </div> <div class="line1"></div> <div class="listing_header_row1"> {include file="./product-sort.tpl"} {include file="./product_view_mode.tpl"} {include file="./nbr-product-page.tpl"} </div> <div class="line1"></div> {include file="$tpl_dir./pagination.tpl"} {/if} {elseif $category->id} <p class="warning">{l s='This category is currently unavailable.'}</p> {/if} {/if} Edited August 18, 2015 by djmatt62 (see edit history) 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