abdul6103 Posted February 6, 2015 Share Posted February 6, 2015 Ciao Ragazzi, quando clicco su una categoria, al centro della pagina mi appare la griglia della sottocategorie e in basso gli articoli di quella categoria. Come posso eliminare la griglia delle Sottocategorie? Non voglio che vengano visualizzate, bensì devono vedersi solo i prodotti. Grazie Alessandro Link to comment Share on other sites More sharing options...
Giuseppe C. Posted February 6, 2015 Share Posted February 6, 2015 Ciao Alessando, apri il file category.tpl e inserisci style="display:none" nel div che visualizza le sottocategorie. Esempio category.tpl PS 1.6.0.9 <!-- Subcategories --> <div id="subcategories" style="display:none"> <p class="subcategory-heading">{l s='Subcategories'}</p> <ul class="clearfix"> {foreach from=$subcategories item=subcategory} <li> <div class="subcategory-image"> <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" src="{$link->getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'medium_default')|escape:'html':'UTF-8'}" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" /> {else} <img class="replace-2x" src="{$img_cat_dir}default-medium_default.jpg" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" /> {/if} </a> </div> <h5><a class="subcategory-name" href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'html':'UTF-8'}">{$subcategory.name|truncate:25:'...'|escape:'html':'UTF-8'|truncate:350}</a></h5> {if $subcategory.description} <div class="cat_desc">{$subcategory.description}</div> {/if} </li> {/foreach} </ul> </div> PierGiuseppe Q / Prestashop Developer [email protected] Consulenza, Formazione e Sviluppo Prestashop 3 Link to comment Share on other sites More sharing options...
lapergamena Posted February 7, 2015 Share Posted February 7, 2015 (edited) Salve, ho trovato utile questo post e l'ho utlizzato. Consiglio di svuotare la cache di prestashop dopo le modifiche per avere il risultato corretto. Giovanni - http://www.lapergamena.it Edited February 7, 2015 by lapergamena (see edit history) Link to comment Share on other sites More sharing options...
abdul6103 Posted February 7, 2015 Author Share Posted February 7, 2015 Grazie PierGiuseppe Link to comment Share on other sites More sharing options...
Perla2018 Posted January 22, 2016 Share Posted January 22, 2016 Grazie ottimo.. Link to comment Share on other sites More sharing options...
Giuseppe C. Posted January 23, 2016 Share Posted January 23, 2016 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