clara0987 Posted January 10, 2017 Share Posted January 10, 2017 Buenas tardes, me gustaría quitar el botón más de las categorías para que se pueda ver el texto completo pero no consigo encontrar el archivo para cambiar el código, alguien sabe cómo hacerlo pero paso a paso ya que no tengo mucha idea de código web. Muchas gracias, Clara Link to comment Share on other sites More sharing options...
nadie Posted January 10, 2017 Share Posted January 10, 2017 Prestashop 1.6.1.10 - Plantilla por defecto Fichero: /themes/default-bootstrap/category.tpl Busca esto: {if Tools::strlen($category->description) > 350} <div id="category_description_short" class="rte">{$description_short}</div> <div id="category_description_full" class="unvisible rte">{$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 class="rte">{$category->description}</div> {/if} Si lo dejas asi: <div class="rte">{$category->description}</div> Ver directamente la descripcion completa sin cortar. Si lo dejas asi: {if Tools::strlen($category->description) > 350} <div id="category_description_short" class="rte">{$description_short}</div> {else} <div class="rte">{$category->description}</div> {/if} No veras el boton "mas", pero veras la descripción "cortada cuando supere los 350 caracteres" Saludos, Link to comment Share on other sites More sharing options...
clara0987 Posted January 10, 2017 Author Share Posted January 10, 2017 Dónde puedo encontrar el fichero?¿ Link to comment Share on other sites More sharing options...
nadie Posted January 10, 2017 Share Posted January 10, 2017 Dónde puedo encontrar el fichero?¿ El fichero: /themes/default-bootstrap/category.tpl Lo puedes editar/bajar tanto desde administrador de archivos de tu alojamiento, como bajar desde un cliente ftp como por ejemplo filezilla que se conecte a tu alojamiento web Link to comment Share on other sites More sharing options...
clara0987 Posted January 10, 2017 Author Share Posted January 10, 2017 No se va el más el código està así {if $scenes} <div class="content_scene"> <!-- Scenes --> {include file="$tpl_dir./scenes.tpl" scenes=$scenes} {if $category->description} <div class="cat_desc rte"> <div class="rte">{$category->description}</div> </div> {/if} </div> Link to comment Share on other sites More sharing options...
nadie Posted January 10, 2017 Share Posted January 10, 2017 Dime la versión de Prestashop que usas y la plantilla que usas. (Yo te lo he comentado en base a .a 1.6.1.10 con la plantilla por defecto) Saludos, Link to comment Share on other sites More sharing options...
clara0987 Posted January 10, 2017 Author Share Posted January 10, 2017 1.6.1.5 plantilla por defecto Link to comment Share on other sites More sharing options...
nadie Posted January 10, 2017 Share Posted January 10, 2017 1.6.1.5 plantilla por defecto Entonces si tienes el codigo que te dije en mi anterior mensaje en el category.tpl de la plantilla. Si lo has modificado, recuerda forzar compilación ! Link to comment Share on other sites More sharing options...
Sergio Ruiz Posted January 10, 2017 Share Posted January 10, 2017 Que codigo "completo" tienes en tu category.tpl ¿No tienes lo que dice Nadie? Link to comment Share on other sites More sharing options...
clara0987 Posted January 10, 2017 Author Share Posted January 10, 2017 no me funciona sigue saliendo el más, no se si lo estoy haciendo bien ya que me salen dos prestashops en el cpanel uno se llama presta y el otro prestashop y salen las plantillas por defecto en los dos lo he cambiado en todos y aún así sigue saliendo el más, estoy un poco desesperada jjejeje Link to comment Share on other sites More sharing options...
Sergio Ruiz Posted January 10, 2017 Share Posted January 10, 2017 no me funciona sigue saliendo el más, no se si lo estoy haciendo bien ya que me salen dos prestashops en el cpanel uno se llama presta y el otro prestashop y salen las plantillas por defecto en los dos lo he cambiado en todos y aún así sigue saliendo el más, estoy un poco desesperada jjejeje En Parametros Avanzados -> Rendimiento, ¿Limpiastes cache? Link to comment Share on other sites More sharing options...
clara0987 Posted January 10, 2017 Author Share Posted January 10, 2017 este es el código completo: {* * 2007-2016 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to [email protected] so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <[email protected]> * @copyright 2007-2016 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} {include file="$tpl_dir./errors.tpl"} {if isset($category)} {if $category->id AND $category->active} {if $scenes || $category->description || $category->id_image} <div class="content_scene_cat"> {if $scenes} <div class="content_scene"> <!-- Scenes --> {include file="$tpl_dir./scenes.tpl" scenes=$scenes} {if $category->description} <div class="cat_desc rte"> <div class="rte">{$category->description}</div> </div> {/if} </div> {else} <!-- Category image --> <div class="content_scene_cat_bg"{if $category->id_image} style="background:url({$link->getCatImageLink($category->link_rewrite, $category->id_image, 'category_default')|escape:'html':'UTF-8'}) right center no-repeat; background-size:cover; min-height:{$categorySize.height}px;"{/if}> {if $category->description} <div class="cat_desc"> <span class="category-name"> {strip} {$category->name|escape:'html':'UTF-8'} {if isset($categoryNameComplement)} {$categoryNameComplement|escape:'html':'UTF-8'} {/if} {/strip} </span> <div class="rte">{$category->description}</div> </div> {/if} </div> {/if} </div> {/if} <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 isset($subcategories)} {if (isset($display_subcategories) && $display_subcategories eq 1) || !isset($display_subcategories) } <!-- Subcategories --> <div id="subcategories"> <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="{$subcategory.name|escape:'html':'UTF-8'}" width="{$mediumSize.width}" height="{$mediumSize.height}" /> {else} <img class="replace-2x" src="{$img_cat_dir}{$lang_iso}-default-medium_default.jpg" alt="{$subcategory.name|escape:'html':'UTF-8'}" 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'}</a></h5> {if $subcategory.description} <div class="cat_desc">{$subcategory.description}</div> {/if} </li> {/foreach} </ul> </div> {/if} {/if} {if $products} <div class="content_sortPagiBar clearfix"> <div class="sortPagiBar clearfix"> {include file="./product-sort.tpl"} {include file="./nbr-product-page.tpl"} </div> <div class="top-pagination-content clearfix"> {include file="./product-compare.tpl"} {include file="$tpl_dir./pagination.tpl"} </div> </div> {include file="./product-list.tpl" products=$products} <div class="content_sortPagiBar"> <div class="bottom-pagination-content clearfix"> {include file="./product-compare.tpl" paginationId='bottom'} {include file="./pagination.tpl" paginationId='bottom'} </div> </div> {/if} {elseif $category->id} <p class="alert alert-warning">{l s='This category is currently unavailable.'}</p> {/if} {/if} Link to comment Share on other sites More sharing options...
clara0987 Posted January 11, 2017 Author Share Posted January 11, 2017 si queda así tendría que funcionar?¿ o me falta alguna cosa?¿ {if $scenes} <div class="content_scene"> <!-- Scenes --> {include file="$tpl_dir./scenes.tpl" scenes=$scenes} {if $category->description} <div class="cat_desc rte"> <div class="rte">{$category->description}</div> {/if} </div> {/if} </div> {else} <!-- Category image --> 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