juanrojas Posted April 16, 2016 Share Posted April 16, 2016 Hola tengo prestashop 1.6. como puedo hacer para ocultar la descripcion corta pero solo en el listado o grid y que permanezca en la ficha del producto. gracias. Link to comment Share on other sites More sharing options...
Rolige Posted April 17, 2016 Share Posted April 17, 2016 Si tienes un tema personalizado, es necesario que publiques la direccion URL de tu tienda y que tengas deshabilitado el cache CSS Link to comment Share on other sites More sharing options...
juanrojas Posted April 17, 2016 Author Share Posted April 17, 2016 sitio url y esta es la descripcion corta http://screencast.com/t/7Vx8fcJK8D Link to comment Share on other sites More sharing options...
Code-Plus Posted April 17, 2016 Share Posted April 17, 2016 Buenas, archivo themes > default > product_list.tpl Comenta esto: <p class="product-desc" itemprop="description"> {$product.description_short|strip_tags:'UTF-8'|truncate:360:'...'} </p> Se comenta con asteriscos, prueba y nos cuentas. Saludos Link to comment Share on other sites More sharing options...
juanrojas Posted April 19, 2016 Author Share Posted April 19, 2016 hola mi product list no tiene esas lineas, tengo una plantilla de pago *} {if isset($products) && $products} {*define number of products per line in other page for desktop*} {if Configuration::get('PTS_CP_PRODUCTS_ITEMROW')} {assign var='nbItemsPerLine' value=Configuration::get('PTS_CP_PRODUCTS_ITEMROW')} {assign var='nbItemsPerLineTablet' value=Configuration::get('PTS_CP_PRODUCTS_ITEMROW')} {else} {assign var='nbItemsPerLine' value=3} {assign var='nbItemsPerLineTablet' value=3} {/if} {assign var='nbItemsPerLineMobile' value=3} {*define numbers of product per line in other page for tablet*} {assign var='nbLi' value=$products|@count} {math equation="nbLi/nbItemsPerLine" nbLi=$nbLi nbItemsPerLine=$nbItemsPerLine assign=nbLines} {math equation="nbLi/nbItemsPerLineTablet" nbLi=$nbLi nbItemsPerLineTablet=$nbItemsPerLineTablet assign=nbLinesTablet} {math equation="nbLi/nbItemsPerLine" nbLi=12 nbItemsPerLine=$nbItemsPerLine assign=colLap} {math equation="nbLi/nbItemsPerLine" nbLi=12 nbItemsPerLine=$nbItemsPerLineTablet assign=colTablet} {math equation="nbLi/nbItemsPerLine" nbLi=12 nbItemsPerLine=$nbItemsPerLineMobile assign=colMobile} <!-- Products list --> <script type="text/javascript"> var colLap = {$colLap}; var colTablet = {$colTablet}; var colMobile = {$colMobile}; </script> <ul{if isset($id) && $id} id="{$id}"{/if} class="product_list products-block grid row{if isset($class) && $class} {$class}{/if}"> {foreach from=$products item=product name=products} {math equation="(total%perLine)" total=$smarty.foreach.products.total perLine=$nbItemsPerLine assign=totModulo} {math equation="(total%perLineT)" total=$smarty.foreach.products.total perLineT=$nbItemsPerLineTablet assign=totModuloTablet} {math equation="(total%perLineT)" total=$smarty.foreach.products.total perLineT=$nbItemsPerLineMobile assign=totModuloMobile} {if $totModulo == 0}{assign var='totModulo' value=$nbItemsPerLine}{/if} {if $totModuloTablet == 0}{assign var='totModuloTablet' value=$nbItemsPerLineTablet}{/if} {if $totModuloMobile == 0}{assign var='totModuloMobile' value=$nbItemsPerLineMobile}{/if} <li class="ajax_block_product col-xs-12 col-sm-{$colMobile} col-md-{$colTablet} col-lg-{$colLap}{if $smarty.foreach.products.iteration%$nbItemsPerLine == 0} last-in-line{elseif $smarty.foreach.products.iteration%$nbItemsPerLine == 1} first-in-line{/if}{if $smarty.foreach.products.iteration > ($smarty.foreach.products.total - $totModulo)} last-line{/if}{if $smarty.foreach.products.iteration%$nbItemsPerLineTablet == 0} last-item-of-tablet-line{elseif $smarty.foreach.products.iteration%$nbItemsPerLineTablet == 1} first-item-of-tablet-line{/if}{if $smarty.foreach.products.iteration%$nbItemsPerLineMobile == 0} last-item-of-mobile-line{elseif $smarty.foreach.products.iteration%$nbItemsPerLineMobile == 1} first-item-of-mobile-line{/if}{if $smarty.foreach.products.iteration > ($smarty.foreach.products.total - $totModuloMobile)} last-mobile-line{/if}" data-col-lg="{$colLap}" data-col-md="{$colTablet}" data-col-sm="{$colMobile}"> {include file="$tpl_dir./sub/product/default.tpl" product=$product class=''} </li> {/foreach} </ul> {addJsDefL name=min_item}{l s='Please select at least one product' js=1}{/addJsDefL} {addJsDefL name=max_item}{l s='You cannot add more than %d product(s) to the product comparison' sprintf=$comparator_max_item js=1}{/addJsDefL} {addJsDef comparator_max_item=$comparator_max_item} {addJsDef comparedProductsIds=$compared_products} {/if} Link to comment Share on other sites More sharing options...
Code-Plus Posted April 19, 2016 Share Posted April 19, 2016 Pon el código de este archivo: default.tpl Saludos Link to comment Share on other sites More sharing options...
juanrojas Posted April 19, 2016 Author Share Posted April 19, 2016 no te entiendo Link to comment Share on other sites More sharing options...
Code-Plus Posted April 19, 2016 Share Posted April 19, 2016 Creo que lo que necesitas cambiar está aquí: .../sub/product/default.tpl Link to comment Share on other sites More sharing options...
juanrojas Posted April 19, 2016 Author Share Posted April 19, 2016 Alli si estan las lineas pero no funciona el consejo, lo he puesto asi *<div class="product-desc description" itemprop="description"> {$product.description_short|strip_tags:'UTF-8'|truncate:150:'...'} </div>* Link to comment Share on other sites More sharing options...
juanrojas Posted April 19, 2016 Author Share Posted April 19, 2016 lo he conseguido creo que sirvio tu ayuda gracias pero complemento la info el archivo a cambiar es default-list.tpl y no es con asteriscos sino de la siguiente manera <!-- <div class="product-desc description hidden-xs" itemprop="description"> {$product.description_short|strip_tags:'UTF-8'|truncate:110:'...'} </div> --> Link to comment Share on other sites More sharing options...
ventura Posted April 19, 2016 Share Posted April 19, 2016 Es mejor practica poner llaves y asteriscos {* Codigo comentado *} Link to comment Share on other sites More sharing options...
Code-Plus Posted April 19, 2016 Share Posted April 19, 2016 Perfecto! Si está solucionado, por favor, marca el hilo como "Contestado", y si consideras que mi respuesta lo merece, márcala como "Mejor respuesta". Gracias y un saludo! 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