M4Nu1337 Posted June 15, 2012 Share Posted June 15, 2012 (edited) Salutare tuturor, sunt incepator in prestashop iar cunostintele mele de programare sunt limitate. Lucrez la un magazin de piese auto iar subcategorii ca filtrare (exemplu an, model , motor) iar numarul lor este foarte mare pentru fiecare masina in parte. As avea nevoie de o solutie pentru afisarea subcategoriilor in main sub forma de lista si nu una sub alta cu poza. Exista vre-un modul free pentru asa ceva? Edited June 15, 2012 by M4Nu1337 (see edit history) Link to comment Share on other sites More sharing options...
valentin.g Posted June 15, 2012 Share Posted June 15, 2012 in tema ta cauta fisierul category.tpl si schimba codul de mai jos {foreach from=$subcategories item=subcategory} <li> <a href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}" title="{$subcategory.name|escape:'htmlall':'UTF-8'}"> {if $subcategory.id_image} <img src="{$link->getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'medium')}" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" /> {else} <img src="{$img_cat_dir}default-medium.jpg" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" /> {/if} </a><br /> <a href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}">{$subcategory.name|escape:'htmlall':'UTF-8'}</a> </li> {/foreach} cu {foreach from=$subcategories item=subcategory} <li> <a href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}">{$subcategory.name|escape:'htmlall':'UTF-8'}</a> </li> {/foreach} Link to comment Share on other sites More sharing options...
M4Nu1337 Posted June 15, 2012 Author Share Posted June 15, 2012 (edited) Am facut modificarile de mai sus, dar categoriile tot una langa alta apar doar ca a disparut poza... Eu caut sa le listeze una sub alta http://imageshack.us/photo/my-images/440/categori.jpg Edited June 15, 2012 by M4Nu1337 (see edit history) Link to comment Share on other sites More sharing options...
M4Nu1337 Posted June 18, 2012 Author Share Posted June 18, 2012 Alte idei? Link to comment Share on other sites More sharing options...
valentin.g Posted June 18, 2012 Share Posted June 18, 2012 mai departe cu proprietati CSS le afisezi cum vrei 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