terminanix Posted May 18, 2020 Share Posted May 18, 2020 Bonjour a tous juste un petit souci qui doit pas etre bie serieux, en fait voila, dans mes categories j illustre par une image, mais en sous categories je met d autre images mais l image de la categorie racine s affiche en gros alors que je ne vet que les images de sous categerie ? Prestashop 1.7 url: cashboutique.fr Link to comment Share on other sites More sharing options...
Mediacom87 Posted May 18, 2020 Share Posted May 18, 2020 Bonjour, dans le fichier category-header.tpl de votre template vous pouvez effacer le code correspondant aux éléments que vous ne souhaitez pas voire afficher. Link to comment Share on other sites More sharing options...
terminanix Posted May 18, 2020 Author Share Posted May 18, 2020 ok je vais regarder ca Link to comment Share on other sites More sharing options...
terminanix Posted May 18, 2020 Author Share Posted May 18, 2020 Tu le trouves ou ce fichier j ai fait une recherche sur le serveur il trouve rien Link to comment Share on other sites More sharing options...
Mediacom87 Posted May 18, 2020 Share Posted May 18, 2020 /prestashop/themes/classic/templates/catalog/_partials/category-header.tpl Link to comment Share on other sites More sharing options...
terminanix Posted May 18, 2020 Author Share Posted May 18, 2020 Alors je l ai 2 fois celui du theme classic et celui du theme installe, j ai pris celui du theme installe une idee de ce que je dois modifier? <div id="js-product-list-header"> {if $listing.pagination.items_shown_from == 1} <div class="block-category"> <h1 class="h1 page-maintitle">{$category.name}{if isset($smarty.get.page) && $smarty.get.page > 1} <span class="small"> - Page {$smarty.get.page}</span>{/if}</h1> {if $themeOpt.cat_image == 1} {if $category.image.bySize.category_default.url} <div class="category-cover mb-2"> <img src="{$category.image.bySize.category_default.url}" alt="{if !empty($category.image.legend)}{$category.image.legend}{else}{$category.name}{/if}" width="{$category.image.bySize.category_default.width}" height="{$category.image.bySize.category_default.height}"> </div> {/if} {/if} {if $themeOpt.cat_desc == 1} {if $category.description} <div class="category-description">{$category.description nofilter}</div> {/if} {/if} </div> {if $themeOpt.cat_sub_thumbs == 1} {if isset($subcategories) && $subcategories} <div class="subcategories {if $themeOpt.cat_sub_hide_mobile} hidden-sm-down{/if}"> <div class="row"> {foreach from=$subcategories item=subcategory} <div class="col-6 col-sm-4 col-md-3 col-lg-3 col-xl-15"> <div class="subcategory-image"> <a href="{$subcategory.url}"> {if $subcategory.image.bySize.category_default.url} <img src="{$subcategory.image.bySize.category_default.url}" alt="{$subcategory.name}" width="{$subcategory.image.bySize.category_default.width}" height="{$subcategory.image.bySize.category_default.height}" class="img-fluid"/> {else} <img src="{$urls.img_cat_url}{$language.iso_code}-default-category_default.jpg" alt="{$subcategory.name}" /> {/if} </a> </div> <a class="subcategory-name d-block text-center" href="{$subcategory.url}">{$subcategory.name nofilter}</a> </div> {/foreach} </div> </div> {/if} {/if} {/if} </div> Link to comment Share on other sites More sharing options...
Mediacom87 Posted May 18, 2020 Share Posted May 18, 2020 {if $themeOpt.cat_image == 1} {if $category.image.bySize.category_default.url} <div class="category-cover mb-2"> <img src="{$category.image.bySize.category_default.url}" alt="{if !empty($category.image.legend)}{$category.image.legend}{else}{$category.name}{/if}" width="{$category.image.bySize.category_default.width}" height="{$category.image.bySize.category_default.height}"> </div> {/if} {/if} 1 Link to comment Share on other sites More sharing options...
terminanix Posted May 18, 2020 Author Share Posted May 18, 2020 Ok merci je repere bien la ligne d apres vous je modifie quoi ? Link to comment Share on other sites More sharing options...
Mediacom87 Posted May 18, 2020 Share Posted May 18, 2020 Il y a 4 heures, Mediacom87 a dit : vous pouvez effacer le code correspondant aux éléments que vous ne souhaitez pas voire afficher 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