samator79 Posted December 17, 2017 Share Posted December 17, 2017 Hola amigos de prestashop. Excelente ecommerce, creo que es el mejor! Mi pregunta es la siguiente: Tengo este archivo category.tpl {if isset($category)} {if $category->id AND $category->active} {if isset($subcategories)} {if (isset($display_subcategories) && $display_subcategories eq 1) || !isset($display_subcategories) } <h1 class="page-heading{if (isset($subcategories) && !$products) || (isset($subcategories) && $products) || !isset($subcategories) && $products} product-listing{/if}"> <span class="cat-name"> {$category->name|escape:'html':'UTF-8'}{if isset($categoryNameComplement)} {$categoryNameComplement|escape:'html':'UTF-8'}{/if} </span> {include file="$tpl_dir./category-count.tpl"} </h1> {if $category->description} <div class="cat_desc rte"> {if Tools::strlen($category->description) > 350} <div id="category_description_short">{$description_short}</div> <div id="category_description_full" class="unvisible">{$category->description}</div> <a href="{$link->getCategoryLink($category->id_category, $category->link_rewrite)|escape:'html':'UTF-8'}" class="lnk_more">{l s='More'}</a> {else} <div>{$category->description}</div> {/if} </div> {/if} El problema es que solo muestra la descripción de la categoría cuando hay una subcategoria, de lo contrariar no muestra la descripción. Que error puede haber en este código???, que solo me muestra la descripción cuando hay un subcategoria. Gracias de antemano por su respuesta. 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