cubati Posted December 28, 2012 Share Posted December 28, 2012 (edited) Buenas compañeros. En mi plantilla aparecen los productos listados en grid: Me seria de gran ayuda que me dijerais alguien como hacer que salgan tipo "list". Asi salen ahora: Y asi es como quiero q salga: Si pulso ahi, sale como yo quiero: Muchas gracias! Edited December 28, 2012 by cubati (see edit history) Link to comment Share on other sites More sharing options...
Sergio Ruiz Posted December 28, 2012 Share Posted December 28, 2012 ¿El grid/list viene integrado en tu plantilla? ¿O estas usando el modulo que correo por el foro? Post Relaccionados: http://www.prestashop.com/forums/topic/192400-cambiar-presentacion-vista-productos-por-defecto-solucionado/ Link to comment Share on other sites More sharing options...
cubati Posted December 28, 2012 Author Share Posted December 28, 2012 (edited) viene integrado en la plantilla... he leido ese post antes de abrir un nuevo tema, pero a pesar de que pone "SOLUCIONADO" no dice como... el compañero que lo solucionó, al parecer cambio de orden algo dentro del ftp del forero que tenia el problema.. pero no se explica que cambio ni como lo hizo... asi que no he podido solucionarlo... Edited December 28, 2012 by cubati (see edit history) Link to comment Share on other sites More sharing options...
Sergio Ruiz Posted December 28, 2012 Share Posted December 28, 2012 viene integrado en la plantilla... ¿Url de la demo de tu plantilla o de tu tienda? Saludos Link to comment Share on other sites More sharing options...
cubati Posted December 28, 2012 Author Share Posted December 28, 2012 ¿Url de la demo de tu plantilla o de tu tienda? Saludos aqui tienes: www.supermusculo.es aun esta en construccion... pero me encuentro con ese problemilla Link to comment Share on other sites More sharing options...
Sergio Ruiz Posted December 28, 2012 Share Posted December 28, 2012 aqui tienes: www.supermusculo.es aun esta en construccion... pero me encuentro con ese problemilla A mi me ha saltado por defecto en list. Saludos Link to comment Share on other sites More sharing options...
cubati Posted December 28, 2012 Author Share Posted December 28, 2012 A mi me ha saltado por defecto en list. Saludos tienes razon... el error ha sido mio! me he confundido de web!........ donde aparece en GRID y quiero LIST no es en esa web, sino en esta otra: http://www.unlockonline.es disculpa amigo Link to comment Share on other sites More sharing options...
Sergio Ruiz Posted December 28, 2012 Share Posted December 28, 2012 tienes razon... el error ha sido mio! me he confundido de web!........ donde aparece en GRID y quiero LIST no es en esa web, sino en esta otra: http://www.unlockonline.es disculpa amigo Respuesta: En el fichero: /themes/theme329/product-sort.tplBusca esto: <ul class="product_view"> <li id="product_view_grid" class="current"></li> <li id="product_view_list"></li> </ul>Y dejalo asi: <ul class="product_view"> <li id="product_view_list" class="current" ></li> <li id="product_view_grid" ></li> </ul>Busca esto: /themes/theme329/product-list.tpl[ {if isset($products)} <div id="product_list_grid" class="box"> <ul> {foreach from=$products item=product name=products} <li class="ajax_block_product bordercolor"> <a href="{$product.link|escape:'htmlall':'UTF-8'}" class="product_img_link" title="{$product.name|escape:'htmlall':'UTF-8'}"><img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home')}" alt="{$product.legend|escape:'htmlall':'UTF-8'}" {if isset($homeSize)} width="{$homeSize.width}" height="{$homeSize.height}"{/if} /></a> <h3><a class="product_link" href="{$product.link|escape:'htmlall':'UTF-8'}" title="{$product.name|escape:'htmlall':'UTF-8'}">{$product.name|truncate:25:'...'|escape:'htmlall':'UTF-8'}</a></h3> {if (!$PS_CATALOG_MODE AND ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order)))} {if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)}<span class="price">{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}</span>{/if} {/if} </li> {/foreach} </ul> </div> <div id="product_list_list" class="bordercolor box visible"> <ul class="bordercolor"> {foreach from=$products item=product name=products} <li class="ajax_block_product bordercolor"> <a href="{$product.link|escape:'htmlall':'UTF-8'}" class="product_img_link" title="{$product.name|escape:'htmlall':'UTF-8'}"><img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home')}" alt="{$product.legend|escape:'htmlall':'UTF-8'}" {if isset($homeSize)} width="{$homeSize.width}" height="{$homeSize.height}"{/if} /></a> <div class="center_block"> <div class="product_flags"> {if isset($product.new) && $product.new == 1}<span class="new">{l s='New'}</span>{/if} {if isset($product.available_for_order) && $product.available_for_order && !isset($restricted_country_mode)}{if ($product.allow_oosp || $product.quantity > 0)}<span class="availability bordercolor">{l s='Available'}{elseif (isset($product.quantity_all_versions) && $product.quantity_all_versions > 0)}<span class="bordercolor">{l s='Product available with different options'}</span>{else}<span class="bordercolor">{l s='Out of stock'}</span>{/if}</span>{/if} {if isset($product.online_only) && $product.online_only}<span class="online_only bordercolor">{l s='Online only!'}</span>{/if} </div> <h3><a class="product_link" href="{$product.link|escape:'htmlall':'UTF-8'}" title="{$product.name|escape:'htmlall':'UTF-8'}">{$product.name}</a></h3> <p class="product_desc"><a class="product_descr" href="{$product.link|escape:'htmlall':'UTF-8'}" title="{$product.description_short|truncate:360:'...'|strip_tags:'UTF-8'|escape:'htmlall':'UTF-8'}">{$product.description_short|truncate:400:'...'|strip_tags:'UTF-8'}</a></p> </div> <div class="right_block"> {if isset($product.on_sale) && $product.on_sale && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE}<span class="on_sale">{l s='On sale!'}</span> {elseif isset($product.reduction) && $product.reduction && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE}<span class="discount">{l s='Reduced price!'}</span> {/if} {if (!$PS_CATALOG_MODE AND ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order)))} {if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)}<span class="price">{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}</span>{/if} {/if} {if ($product.id_product_attribute == 0 || (isset($add_prod_display) && ($add_prod_display == 1))) && $product.available_for_order && !isset($restricted_country_mode) && $product.minimal_quantity <= 1 && $product.customizable != 2 && !$PS_CATALOG_MODE} {if ($product.allow_oosp || $product.quantity > 0)} <a class="exclusive ajax_add_to_cart_button" rel="ajax_id_product_{$product.id_product|intval}" href="{$link->getPageLink('cart.php')}?add&id_product={$product.id_product|intval}{if isset($static_token)}&token={$static_token}{/if}" title="{l s='Add to cart'}">{l s='Add to cart'}</a> {else} <span class="exclusive">{l s='Add to cart'}</span> {/if} {/if} <a class="button" href="{$product.link|escape:'htmlall':'UTF-8'}" title="{l s='View'}">{l s='View'}</a> {if isset($comparator_max_item) && $comparator_max_item} <p class="compare checkbox"><input type="checkbox" class="comparator" id="comparator_item_{$product.id_product}" value="comparator_item_{$product.id_product}" {if isset($compareProducts) && in_array($product.id_product, $compareProducts)}checked{/if}/> <label for="comparator_item_{$product.id_product}">{l s='Select to compare'}</label></p> {/if} </div> </li> {/foreach} </ul> {if $comparator_max_item} <script type="text/javascript"> // <![CDATA[ var min_item = '{l s='Please select at least one product.' js=1}'; var max_item = "{l s='You cannot add more than' js=1} {$comparator_max_item} {l s='product(s) in the product comparator' js=1}"; //]]> </script> <form class="product_compare" method="get" action="{$link->getPageLink('products-comparison.php')}" onsubmit="true"> <input type="submit" class="button" value="{l s='Compare'}" /> <input type="hidden" name="compare_product_list" class="compare_product_list" value="" /> </form> {/if} </div> {/if} y dejalo asi: {if isset($products)} <div id="product_list_list" class="bordercolor box visible"> <ul class="bordercolor"> {foreach from=$products item=product name=products} <li class="ajax_block_product bordercolor"> <a href="{$product.link|escape:'htmlall':'UTF-8'}" class="product_img_link" title="{$product.name|escape:'htmlall':'UTF-8'}"><img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home')}" alt="{$product.legend|escape:'htmlall':'UTF-8'}" {if isset($homeSize)} width="{$homeSize.width}" height="{$homeSize.height}"{/if} /></a> <div class="center_block"> <div class="product_flags"> {if isset($product.new) && $product.new == 1}<span class="new">{l s='New'}</span>{/if} {if isset($product.available_for_order) && $product.available_for_order && !isset($restricted_country_mode)}{if ($product.allow_oosp || $product.quantity > 0)}<span class="availability bordercolor">{l s='Available'}{elseif (isset($product.quantity_all_versions) && $product.quantity_all_versions > 0)}<span class="bordercolor">{l s='Product available with different options'}</span>{else}<span class="bordercolor">{l s='Out of stock'}</span>{/if}</span>{/if} {if isset($product.online_only) && $product.online_only}<span class="online_only bordercolor">{l s='Online only!'}</span>{/if} </div> <h3><a class="product_link" href="{$product.link|escape:'htmlall':'UTF-8'}" title="{$product.name|escape:'htmlall':'UTF-8'}">{$product.name}</a></h3> <p class="product_desc"><a class="product_descr" href="{$product.link|escape:'htmlall':'UTF-8'}" title="{$product.description_short|truncate:360:'...'|strip_tags:'UTF-8'|escape:'htmlall':'UTF-8'}">{$product.description_short|truncate:400:'...'|strip_tags:'UTF-8'}</a></p> </div> <div class="right_block"> {if isset($product.on_sale) && $product.on_sale && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE}<span class="on_sale">{l s='On sale!'}</span> {elseif isset($product.reduction) && $product.reduction && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE}<span class="discount">{l s='Reduced price!'}</span> {/if} {if (!$PS_CATALOG_MODE AND ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order)))} {if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)}<span class="price">{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}</span>{/if} {/if} {if ($product.id_product_attribute == 0 || (isset($add_prod_display) && ($add_prod_display == 1))) && $product.available_for_order && !isset($restricted_country_mode) && $product.minimal_quantity <= 1 && $product.customizable != 2 && !$PS_CATALOG_MODE} {if ($product.allow_oosp || $product.quantity > 0)} <a class="exclusive ajax_add_to_cart_button" rel="ajax_id_product_{$product.id_product|intval}" href="{$link->getPageLink('cart.php')}?add&id_product={$product.id_product|intval}{if isset($static_token)}&token={$static_token}{/if}" title="{l s='Add to cart'}">{l s='Add to cart'}</a> {else} <span class="exclusive">{l s='Add to cart'}</span> {/if} {/if} <a class="button" href="{$product.link|escape:'htmlall':'UTF-8'}" title="{l s='View'}">{l s='View'}</a> {if isset($comparator_max_item) && $comparator_max_item} <p class="compare checkbox"><input type="checkbox" class="comparator" id="comparator_item_{$product.id_product}" value="comparator_item_{$product.id_product}" {if isset($compareProducts) && in_array($product.id_product, $compareProducts)}checked{/if}/> <label for="comparator_item_{$product.id_product}">{l s='Select to compare'}</label></p> {/if} </div> </li> {/foreach} </ul> {if $comparator_max_item} <script type="text/javascript"> // <![CDATA[ var min_item = '{l s='Please select at least one product.' js=1}'; var max_item = "{l s='You cannot add more than' js=1} {$comparator_max_item} {l s='product(s) in the product comparator' js=1}"; //]]> </script> <form class="product_compare" method="get" action="{$link->getPageLink('products-comparison.php')}" onsubmit="true"> <input type="submit" class="button" value="{l s='Compare'}" /> <input type="hidden" name="compare_product_list" class="compare_product_list" value="" /> </form> {/if} </div> <div id="product_list_grid" class="box"> <ul> {foreach from=$products item=product name=products} <li class="ajax_block_product bordercolor"> <a href="{$product.link|escape:'htmlall':'UTF-8'}" class="product_img_link" title="{$product.name|escape:'htmlall':'UTF-8'}"><img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home')}" alt="{$product.legend|escape:'htmlall':'UTF-8'}" {if isset($homeSize)} width="{$homeSize.width}" height="{$homeSize.height}"{/if} /></a> <h3><a class="product_link" href="{$product.link|escape:'htmlall':'UTF-8'}" title="{$product.name|escape:'htmlall':'UTF-8'}">{$product.name|truncate:25:'...'|escape:'htmlall':'UTF-8'}</a></h3> {if (!$PS_CATALOG_MODE AND ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order)))} {if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)}<span class="price">{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}</span>{/if} {/if} </li> {/foreach} </ul> </div> {/if} .. Link to comment Share on other sites More sharing options...
cubati Posted December 28, 2012 Author Share Posted December 28, 2012 lo he hecho tal cual me dices. he activado "Forzar Compilacion" en "Parametros Avanzados - Rendimiento" y he guardado. sigue viendose en GRID ;-( Link to comment Share on other sites More sharing options...
Recommended Posts