mendi_xtv Posted October 2, 2014 Share Posted October 2, 2014 (edited) Buenas tardes, por mucho que lo intento, intento cambiar el value de 4 a 3, sin conseguir nada, hay alguna manera de cambiar las 4 columnas que vienen por defecto para el homefeatured en prestashop 1.6.0.9 a 3 columnas? Como está actualmente la pagina.. Gracias! Edited October 2, 2014 by mendi_xtv (see edit history) Link to comment Share on other sites More sharing options...
rafaelamargo Posted October 2, 2014 Share Posted October 2, 2014 http://www.prestashop.com/forums/topic/347733-change-width-to-featured-products-on-prestashot-16/ http://www.prestashop.com/forums/topic/332073-display-of-home-featured-products/?do=findComment&comment=1682102 http://www.prestashop.com/forums/topic/325744-solved-product-list-size-with-4-per-row/ Link to comment Share on other sites More sharing options...
mendi_xtv Posted October 2, 2014 Author Share Posted October 2, 2014 http://www.prestashop.com/forums/topic/347733-change-width-to-featured-products-on-prestashot-16/ http://www.prestashop.com/forums/topic/332073-display-of-home-featured-products/?do=findComment&comment=1682102 http://www.prestashop.com/forums/topic/325744-solved-product-list-size-with-4-per-row/ Gracias, por cierto esos posts los he leido y ya lo he probado todo, pero resulta que se hago eso, me quedo en el paso en que salen las columnas descuadradas, como están ahora porqué?¿ que deberia modificar para el ancho de las imagenes? Link to comment Share on other sites More sharing options...
mendi_xtv Posted October 2, 2014 Author Share Posted October 2, 2014 (edited) Al final tocando tocando lo he podido cuadrar todo, dejando el codigo del product_list de la siguiente manera: {else} {assign var='nbItemsPerLine' value=3} {assign var='nbItemsPerLineTablet' value=3} {assign var='nbItemsPerLineMobile' value=2} {/if} {*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} <!-- Products list --> <ul{if isset($id) && $id} id="{$id}"{/if} class="product_list 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{if $page_name == 'index' || $page_name == 'product'} col-xs-12 col-sm-4 col-md-4{else} col-xs-12 col-sm-6 col-md-4{/if}{if Gracias! Se puede cerrar el tema! Edited October 2, 2014 by mendi_xtv (see edit history) 1 Link to comment Share on other sites More sharing options...
Recommended Posts