darbork Posted February 6, 2014 Share Posted February 6, 2014 (edited) Buenos días, uso prestashop 1.5.6 y la plantilla leo gitf mi problema es el siguiente, se me muestra en las paginas de los productos la opcion de "deseo" y "compara" (como en la foto1) pero yo quisiera que se mostrasen donde "compara" la opcon de "ver" que te lleve a la ficha del producto (como en la foto2). Un saludo. Edited February 9, 2014 by darbork (see edit history) Link to comment Share on other sites More sharing options...
darbork Posted February 6, 2014 Author Share Posted February 6, 2014 ¿Alguien me podría ayudar si paso el código que tiene el modulo de la 1º foto ? para poder modificar (el de la segunda foto). Link to comment Share on other sites More sharing options...
shacker Posted February 6, 2014 Share Posted February 6, 2014 pon aqui el codigo del homefeatured de tu theme/modules/homefeatured/homefeatured.tpl Link to comment Share on other sites More sharing options...
darbork Posted February 6, 2014 Author Share Posted February 6, 2014 <!-- MODULE Home Featured Products --> <div id="featured-products_block_center" class="block products_block clearfix"> <p class="title_block">{l s='Featured products' mod='homefeatured'}</p> {if isset($products) AND $products} <div class="block_content"> {assign var='liHeight' value=250} {assign var='nbItemsPerLine' value=4} {assign var='nbLi' value=$products|@count} {math equation="nbLi/nbItemsPerLine" nbLi=$nbLi nbItemsPerLine=$nbItemsPerLine assign=nbLines} {math equation="nbLines*liHeight" nbLines=$nbLines|ceil liHeight=$liHeight assign=ulHeight} <ul style="height:{$ulHeight}px;"> {foreach from=$products item=product name=homeFeaturedProducts} {math equation="(total%perLine)" total=$smarty.foreach.homeFeaturedProducts.total perLine=$nbItemsPerLine assign=totModulo} {if $totModulo == 0}{assign var='totModulo' value=$nbItemsPerLine}{/if} <li class="ajax_block_product {if $smarty.foreach.homeFeaturedProducts.first}first_item{elseif $smarty.foreach.homeFeaturedProducts.last}last_item{else}item{/if} {if $smarty.foreach.homeFeaturedProducts.iteration%$nbItemsPerLine == 0}last_item_of_line{elseif $smarty.foreach.homeFeaturedProducts.iteration%$nbItemsPerLine == 1} {/if} {if $smarty.foreach.homeFeaturedProducts.iteration > ($smarty.foreach.homeFeaturedProducts.total - $totModulo)}last_line{/if}"> <a href="{$product.link}" title="{$product.name|escape:html:'UTF-8'}" class="product_image"><img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home_default')}" alt="{$product.name|escape:html:'UTF-8'}" />{if isset($product.new) && $product.new == 1}<span class="new">{l s='New' mod='homefeatured'}</span>{/if}</a> <p class="s_title_block"><a href="{$product.link}" title="{$product.name|truncate:50:'...'|escape:'htmlall':'UTF-8'}">{$product.name|truncate:35:'...'|escape:'htmlall':'UTF-8'}</a></p> <div class="product_desc"><a href="{$product.link}" title="{l s='More' mod='homefeatured'}">{$product.description_short|strip_tags|truncate:65:'...'}</a></div> <div> <a class="lnk_more" href="{$product.link}" title="{l s='View' mod='homefeatured'}">{l s='View' mod='homefeatured'}</a> {if $product.show_price AND !isset($restricted_country_mode) AND !$PS_CATALOG_MODE}<p class="price_container"><span class="price">{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}</span></p>{else}<div style="height:21px;"></div>{/if} {if ($product.id_product_attribute == 0 OR (isset($add_prod_display) AND ($add_prod_display == 1))) AND $product.available_for_order AND !isset($restricted_country_mode) AND $product.minimal_quantity == 1 AND $product.customizable != 2 AND !$PS_CATALOG_MODE} {if ($product.quantity > 0 OR $product.allow_oosp)} <a class="exclusive ajax_add_to_cart_button" rel="ajax_id_product_{$product.id_product}" href="{$link->getPageLink('cart')}?qty=1&id_product={$product.id_product}&token={$static_token}&add" title="{l s='Add to cart' mod='homefeatured'}">{l s='Add to cart' mod='homefeatured'}</a> {else} <span class="exclusive">{l s='Add to cart' mod='homefeatured'}</span> {/if} {else} <div style="height:23px;"></div> {/if} </div> </li> {/foreach} </ul> </div> {else} <p>{l s='No featured products' mod='homefeatured'}</p> {/if} </div> <!-- /MODULE Home Featured Products --> Link to comment Share on other sites More sharing options...
shacker Posted February 7, 2014 Share Posted February 7, 2014 parece que este no es el modulo. debe ser otro que tienes en la home debe ser el product-list.tpl del template Link to comment Share on other sites More sharing options...
darbork Posted February 7, 2014 Author Share Posted February 7, 2014 que modulo necesitas el de la foto 1 o el de la foto 2? Link to comment Share on other sites More sharing options...
darbork Posted February 7, 2014 Author Share Posted February 7, 2014 Mira el de la foto 2 el modulo se llama blockleoprodcarousel y tiene 2 .tpl 1º blockleoprodcarousel.tpl <!-- MODULE Block specials --> <div id="categoriesprodtabs" class="block_box_center products_block exclusive blockleoprodcarousel"> <h1>{l s='New Arrivals' mod='blockleoprodcarousel'}</h1> <div class="block_content"> {if !empty($products )} {$tabname="leoproductcarousel"} {include file="{$product_tpl}"} {/if} </div> </div> <!-- /MODULE Block specials --> <script> $(document).ready(function() { $('.blockleoprodcarousel').each(function(){ $(this).carousel({ pause: true, interval: false }); }); }); </script> 2º products.tpl {if !empty($products)} <div class=" carousel slide" id="{$tabname}"> {if count($products)>$itemsperpage} <a class="carousel-control left icon-leo-prev" href="#{$tabname}" data-slide="prev"> </a> <a class="carousel-control right icon-leo-next" href="#{$tabname}" data-slide="next"> </a> {/if} <div class="carousel-inner"> {$mproducts=array_chunk($products,$itemsperpage)} {foreach from=$mproducts item=products name=mypLoop} <div class="item {if $smarty.foreach.mypLoop.first}active{/if}"> {foreach from=$products item=product name=products} {if $product@iteration%$columnspage==1&&$columnspage>1} <div class="row-fluid"> {/if} <div class="p-item span{$scolumn} product_block ajax_block_product {if $smarty.foreach.products.first}first_item{elseif $smarty.foreach.products.last}last_item{/if} {if $smarty.foreach.products.index % 2}alternate_item{else}p-item{/if} clearfix"> <div class="product-container"> <div class="center_block"> <a href="{$product.link}" title="{$product.name|escape:html:'UTF-8'}" class="product_image"><img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home_default')}" alt="{$product.name|escape:html:'UTF-8'}" />{if isset($product.new) && $product.new == 1}<span class="new">{l s='New' mod='blockleoprodcarousel'}</span>{/if}</a> {if ($product.id_product_attribute == 0 OR (isset($add_prod_display) AND ($add_prod_display == 1))) AND $product.available_for_order AND !isset($restricted_country_mode) AND $product.minimal_quantity == 1 AND $product.customizable != 2 AND !$PS_CATALOG_MODE} {if ($product.quantity > 0 OR $product.allow_oosp)} <a class="button exclusive ajax_add_to_cart_button" rel="ajax_id_product_{$product.id_product}" href="{$link->getPageLink('cart')}?qty=1&id_product={$product.id_product}&token={$static_token}&add" title="{l s='Add to cart' mod='blockleoprodcarousel'}">{l s='Add to cart' mod='blockleoprodcarousel'}</a> {else} <span class="button exclusive">{l s='Add to cart' mod='blockleoprodcarousel'}</span> {/if} {/if} <a href="#" id="wishlist_button{$product.id_product}" title="{l s='Add to wishlist' mod='blockleoprodcarousel'}" class="btn-add-wishlist button" onclick="LeoWishlistCart('wishlist_block_list', 'add', '{$product.id_product}', $('#idCombination').val(), 1 ); return false;"><i class="icon-heart icon-white"> </i>{l s='wishlist' mod='blockleoprodcarousel'}</a> <a class="lnk_more button comparator" href="{$product.link}" title="{l s='View' mod='blockleoprodcarousel'}"><i class="icon-file"> </i>{l s='View' mod='blockleoprodcarousel'}</a> </div> <div class="right_block"> <p class="s_title_block"><a href="{$product.link}" title="{$product.name|truncate:50:'...'|escape:'htmlall':'UTF-8'}">{$product.name|truncate:35:'...'|escape:'htmlall':'UTF-8'}</a></p> <p class="product_desc"><a href="{$product.link}" title="{l s='More' mod='blockleoprodcarousel'}">{$product.description_short|strip_tags|truncate:65:'...'}</a></p> {if $product.show_price AND !isset($restricted_country_mode) AND !$PS_CATALOG_MODE}<p class="price_container"><span class="price">{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}</span></p>{else}<div style="height:21px;"></div>{/if} </div> </div> </div> {if ($product@iteration%$columnspage==0||$smarty.foreach.products.last)&&$columnspage>1} </div> {/if} {/foreach} </div> {/foreach} </div> </div> {/if} Link to comment Share on other sites More sharing options...
darbork Posted February 7, 2014 Author Share Posted February 7, 2014 shacker estas por hay? Link to comment Share on other sites More sharing options...
shacker Posted February 9, 2014 Share Posted February 9, 2014 debes reemplazar este <a class="lnk_more button comparator" href="{$product.link}" title="{l s='View' mod='blockleoprodcarousel'}"><i class="icon-file"> </i>{l s='View' mod='blockleoprodcarousel'}</a> x <a class="button" href="{$product.link|escape:'htmlall':'UTF-8'}" title="{l s='View'}">{l s='View'}</a> pero creo que el codigo esta en el product-list.tpl de tu template Link to comment Share on other sites More sharing options...
darbork Posted February 9, 2014 Author Share Posted February 9, 2014 Shacker lo acabo de hacer y no me funciona, ahora a desaparecido la opción de comparar pero no me muestra la opción de ver.. puedo comprobarlo en http://www.nuestramascota.es/31-accesorios-coches-y-viajes Link to comment Share on other sites More sharing options...
shacker Posted February 9, 2014 Share Posted February 9, 2014 yo puedo verlo. prueba en otro navegador Link to comment Share on other sites More sharing options...
darbork Posted February 9, 2014 Author Share Posted February 9, 2014 Solucionado he copiado el codigo del otro modulo <a class="lnk_more button comparator" href="{$product.link}" title="{l s='Ver' mod='blockleoprodcarousel'}"><i class="icon-file"> </i>{l s='Ver' mod='blockleoprodcarousel'}</a> y lo he sustituido donde tu me has dicho <a class="lnk_more button comparator" href="{$product.link}" title="{l s='View' mod='blockleoprodcarousel'}"><i class="icon-file"> </i>{l s='View' mod='blockleoprodcarousel'}</a> y ya se me muestra perfectamente el ver!! Un saludo y gracias. Link to comment Share on other sites More sharing options...
shacker Posted February 9, 2014 Share Posted February 9, 2014 perfecto.saludos Link to comment Share on other sites More sharing options...
Recommended Posts