CrisGoth Posted November 18, 2014 Share Posted November 18, 2014 (edited) Hola buenas, Al cambiar de plantilla Prestashop me he encontrado con el siguiente problema: Cuando entro en una categoría, las subcategorías pertenecientes a la misma me aparecen al fondo de la página, justo encima del footer (foto adjunta). Me gustaría mover dicho bloque para que salga antes de los productos, pero no consigo dar con la forma de modificarlo. Espero que puedan echarme una mano con esto, Gracias y un saludo. P.D.: la versión de Prestashop que uso es 1.5.6.2., la plantilla es Leo Sportshoes y la web por si es necesario verla es: www.gothandmusic.com Subcategorías.bmp Edited November 18, 2014 by CrisGoth (see edit history) Link to comment Share on other sites More sharing options...
galindogadea Posted November 18, 2014 Share Posted November 18, 2014 Lo curioso es que en la demo si se ve como dices: http://www.leotheme.com/demo/prestashop14x/?template=leo_sportshoes Pero en tu web: http://www.gothandmusic.com/3-complementos no.. Edita el fichero: /themes/leoshoe/category.tpl El codigo de las subcategorías es parecido a esto: {if isset($subcategories)} <!-- Subcategories --> <div id="subcategories"> <h2>{l s='Subcategories'}</h2> <div class="inline_list block row"> {foreach from=$subcategories item=subcategory} <div class="category-container col-md-4 col-sm-6"> <a href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}" title="{$subcategory.name|escape:'htmlall':'UTF-8'}" class="img "> {if $subcategory.id_image} <img class="img-responsive" src="{$link->getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'subcat_default')|escape:'html'}" alt="" /> {else} <img class="img-responsive" src="{$img_cat_dir}default-subcat_default.jpg" alt="" /> {/if} </a> <h3 class="s_title_block"><a href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}" class="cat_name ">{$subcategory.name|escape:'htmlall':'UTF-8'}</a></h3> {if $subcategory.description} <div class="cat_desc">{$subcategory.description|strip_tags:'UTF-8'|truncate:60:'...':true}</div> {/if} </div> {/foreach} </div> </div> {/if} y el codigo de imprimir subcategorias, es parecido a esto. ¿Como lo tienes en tu category.tpl? Link to comment Share on other sites More sharing options...
CrisGoth Posted November 19, 2014 Author Share Posted November 19, 2014 Muchas gracias por tu respuesta. En efecto, sale distinto a la demo de la plantilla. Lo que me aparece en category.tpl es lo siguiente: {if isset($category)} {if $category->id AND $category->active} {if $scenes || $category->description || $category->id_image} <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"> <p>{$category->description}</p> <a href="#" class="lnk_more">{l s='More'}</a> </div> {/if} </div> {/if} <div class="row-fluid"> <div class="span7"> <h1> {strip} {$category->name|escape:'htmlall':'UTF-8'} {if isset($categoryNameComplement)} {$categoryNameComplement|escape:'htmlall':'UTF-8'} {/if} {/strip} </h1> <div class="resumecat category-product-count"> {include file="$tpl_dir./category-count.tpl"} </div> </div> <div class="content_sortPagiBar span5"> <div class="sortPagiBar"> {include file="./product-sort.tpl"} {include file="./product-compare.tpl"} {include file="./nbr-product-page.tpl"} </div> </div> </div> {if $products} {include file="./product-list.tpl" products=$products} {include file="$tpl_dir./pagination.tpl"} {/if} {if isset($subcategories)} <!-- Subcategories --> <div id="subcategories"> <h3>{l s='Subcategories'}</h3> <ul class="inline_list"> {foreach from=$subcategories item=subcategory} <li class="clearfix"> <a href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}" title="{$subcategory.name|escape:'htmlall':'UTF-8'}" class="img"> {if $subcategory.id_image} <img src="{$link->getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'medium_default')}" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" /> {else} <img src="{$img_cat_dir}leoshoe-medium.jpg" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" /> {/if} </a> <a href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}" class="cat_name">{$subcategory.name|escape:'htmlall':'UTF-8'}</a> {if $subcategory.description} <p class="cat_desc">{$subcategory.description}</p> {/if} </li> {/foreach} </ul> <br class="clear"/> </div> {/if} {elseif $category->id} <p class="warning">{l s='This category is currently unavailable.'}</p> {/if}{/if} Link to comment Share on other sites More sharing options...
galindogadea Posted November 20, 2014 Share Posted November 20, 2014 Colocalo debajo o encima de: <div class="resumecat category-product-count"> {include file="$tpl_dir./category-count.tpl"} </div> el: {if isset($subcategories)} <!-- Subcategories --> <div id="subcategories"> <h3>{l s='Subcategories'}</h3> <ul class="inline_list"> {foreach from=$subcategories item=subcategory} <li class="clearfix"> <a href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}" title="{$subcategory.name|escape:'htmlall':'UTF-8'}" class="img"> {if $subcategory.id_image} <img src="{$link->getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'medium_default')}" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" /> {else} <img src="{$img_cat_dir}leoshoe-medium.jpg" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" /> {/if} </a> <a href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}" class="cat_name">{$subcategory.name|escape:'htmlall':'UTF-8'}</a> {if $subcategory.description} <p class="cat_desc">{$subcategory.description}</p> {/if} </li> {/foreach} </ul> <br class="clear"/> </div> {/if} a ver como queda.. 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