xeneize67 Posted December 6, 2013 Share Posted December 6, 2013 quiero que aparezca la descripcion corta debajo de cada articulo en la pagina de inicio como tengo un slider en producto destacados no se que archivo modificar para agregar eso si el modulo o del tema gracias Link to comment Share on other sites More sharing options...
Sergio Ruiz Posted December 6, 2013 Share Posted December 6, 2013 ¿De donde has bajado ese slider de productos destacados? (Lo digo por verlo, porque sin verlo no se ni que fichero tpl de modulo es, ni que modulo es) Link to comment Share on other sites More sharing options...
xeneize67 Posted December 6, 2013 Author Share Posted December 6, 2013 el modulo es homefeaturedslider pero vino en una plantilla Link to comment Share on other sites More sharing options...
Sergio Ruiz Posted December 6, 2013 Share Posted December 6, 2013 el modulo es homefeaturedslider pero vino en una plantilla ¿Que contenido tienes en el tpl del modulo? Link to comment Share on other sites More sharing options...
xeneize67 Posted December 7, 2013 Author Share Posted December 7, 2013 me equivoque el slider es un modulo que muestra una categoria que yo escoja para mostrarla en la home de todas formas ni en producto destacados(homefeatured) ni en el slide me muestra la descripcion corta pongo los dos codigos stproductcategoriesslider.tpl(slider) <!-- MODULE Product categories slider --> {capture name="column_slider"}{if $column_slider}_column{/if}{/capture} {if isset($product_categories) && count($product_categories)} {foreach $product_categories as $p_c} <section class="product_categories_slider_block{$smarty.capture.column_slider} block products_block {if !$column_slider} section {/if} {if $hide_mob} hidden-phone {/if}"> <h4 class="title_block mar_b1"> <a href="{$link->getCategoryLink($p_c.id_category, $p_c.link_rewrite)|escape:'html'}" title="{$p_c.name|escape:'htmlall':'UTF-8'}">{$p_c.name|escape:'htmlall':'UTF-8'}</a> </h4> {if isset($p_c.products) AND $p_c.products} <div id="product_categories-itemslider{$smarty.capture.column_slider}_{$p_c.id_category}" class="flexslider product_categories-itemslider{$smarty.capture.column_slider}"> {if $column_slider} {include file="$tpl_dir./product-slider-list.tpl" products=$p_c.products } {else} {include file="$tpl_dir./product-slider.tpl" products=$p_c.products } {/if} </div> <script type="text/javascript"> //<![CDATA[ {literal} jQuery(function($) { $('#product_categories-itemslider{/literal}{$smarty.capture.column_slider}{literal}_{/literal}{$p_c.id_category}{literal} .sliderwrap').flexslider({ easing: "{/literal}{$pro_cate_easing}{literal}", useCSS: false, slideshow: {/literal}{$pro_cate_slideshow}{literal}, slideshowSpeed: {/literal}{$pro_cate_s_speed}{literal}, animationSpeed: {/literal}{$pro_cate_a_speed}{literal}, pauseOnHover: {/literal}{$pro_cate_pause_on_hover}{literal}, direction: "horizontal", animation: "slide", animationLoop: {/literal}{$pro_cate_loop}{literal}, controlNav: false, controlsContainer: "#product_categories-itemslider{/literal}{$smarty.capture.column_slider}_{$p_c.id_category}{literal} .nav_top_right", itemWidth: 280, minItems: getFlexSliderSize({/literal}{if $column_slider}1{else}{$slider_items}{/if}{literal},{/literal}{if isset($is_homepage_secondary_left) && $is_homepage_secondary_left}true{else}false{/if}{literal}), maxItems: getFlexSliderSize({/literal}{if $column_slider}1{else}{$slider_items}{/if}{literal},{/literal}{if isset($is_homepage_secondary_left) && $is_homepage_secondary_left}true{else}false{/if}{literal}), move: {/literal}{$pro_cate_move}{literal}, prevText: '<i class="icon-left-open-3"></i>', nextText: '<i class="icon-right-open-3"></i>', productSlider:true }); var product_categories_{/literal}{$p_c.id_category}{literal}_flexslider_rs{/literal}{$smarty.capture.column_slider}{literal}; $(window).resize(function(){ clearTimeout(product_categories_{/literal}{$p_c.id_category}{literal}_flexslider_rs{/literal}{$smarty.capture.column_slider}{literal}); var rand_s = parseInt(Math.random()*200 + 300); product_categories_{/literal}{$p_c.id_category}{literal}_flexslider_rs{/literal}{$smarty.capture.column_slider}{literal} = setTimeout(function() { var flexSliderSize = getFlexSliderSize({/literal}{if $column_slider}1{else}{$slider_items}{/if}{literal},{/literal}{if isset($is_homepage_secondary_left) && $is_homepage_secondary_left}true{else}false{/if}{literal}); var flexslide_object = $('#product_categories-itemslider{/literal}{$smarty.capture.column_slider}{literal}_{/literal}{$p_c.id_category}{literal} .sliderwrap').data('flexslider'); if(flexSliderSize && flexslide_object != null ) flexslide_object.setVars({'minItems': flexSliderSize, 'maxItems': flexSliderSize}); }, rand_s); }); }); {/literal} //]]> </script> {else} <p>{l s='No products' mod='stproductcategoriesslider'}</p> {/if} </section> {/foreach} {/if} <!-- /MODULE Product categories slider --> y el otro homefeatured.tpl <!-- MODULE Home Featured Products --> <div id="featured-products_block_center" class="block products_block clearfix"> <h4 class="title_block">{l s='Featured products' mod='homefeatured'}</h4> {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|escape:'html'}" title="{$product.name|escape:html:'UTF-8'}" class="product_image"><img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home_default')|escape:'html'}" height="{$homeSize.height}" width="{$homeSize.width}" 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> <h5 class="s_title_block"><a href="{$product.link|escape:'html'}" title="{$product.name|truncate:50:'...'|escape:'htmlall':'UTF-8'}">{$product.name|truncate:35:'...'|escape:'htmlall':'UTF-8'}</a></h5> <div class="product_desc"><a href="{$product.link|escape:'html'}" title="{l s='More' mod='homefeatured'}">{$product.description_short|strip_tags|truncate:65:'...'}</a></div> <div> <a class="lnk_more" href="{$product.link|escape:'html'}" 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')|escape:'html'}?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...
Paula Martinez Posted December 7, 2013 Share Posted December 7, 2013 me equivoque el slider es un modulo que muestra una categoria que yo escoja para mostrarla en la home de todas formas ni en producto destacados(homefeatured) ni en el slide me muestra la descripcion corta pongo los dos codigos stproductcategoriesslider.tpl(slider) <!-- MODULE Product categories slider --> {capture name="column_slider"}{if $column_slider}_column{/if}{/capture} {if isset($product_categories) && count($product_categories)} {foreach $product_categories as $p_c} <section class="product_categories_slider_block{$smarty.capture.column_slider} block products_block {if !$column_slider} section {/if} {if $hide_mob} hidden-phone {/if}"> <h4 class="title_block mar_b1"> <a href="{$link->getCategoryLink($p_c.id_category, $p_c.link_rewrite)|escape:'html'}" title="{$p_c.name|escape:'htmlall':'UTF-8'}">{$p_c.name|escape:'htmlall':'UTF-8'}</a> </h4> {if isset($p_c.products) AND $p_c.products} <div id="product_categories-itemslider{$smarty.capture.column_slider}_{$p_c.id_category}" class="flexslider product_categories-itemslider{$smarty.capture.column_slider}"> {if $column_slider} {include file="$tpl_dir./product-slider-list.tpl" products=$p_c.products } {else} {include file="$tpl_dir./product-slider.tpl" products=$p_c.products } {/if} </div> <script type="text/javascript"> //<![CDATA[ {literal} jQuery(function($) { $('#product_categories-itemslider{/literal}{$smarty.capture.column_slider}{literal}_{/literal}{$p_c.id_category}{literal} .sliderwrap').flexslider({ easing: "{/literal}{$pro_cate_easing}{literal}", useCSS: false, slideshow: {/literal}{$pro_cate_slideshow}{literal}, slideshowSpeed: {/literal}{$pro_cate_s_speed}{literal}, animationSpeed: {/literal}{$pro_cate_a_speed}{literal}, pauseOnHover: {/literal}{$pro_cate_pause_on_hover}{literal}, direction: "horizontal", animation: "slide", animationLoop: {/literal}{$pro_cate_loop}{literal}, controlNav: false, controlsContainer: "#product_categories-itemslider{/literal}{$smarty.capture.column_slider}_{$p_c.id_category}{literal} .nav_top_right", itemWidth: 280, minItems: getFlexSliderSize({/literal}{if $column_slider}1{else}{$slider_items}{/if}{literal},{/literal}{if isset($is_homepage_secondary_left) && $is_homepage_secondary_left}true{else}false{/if}{literal}), maxItems: getFlexSliderSize({/literal}{if $column_slider}1{else}{$slider_items}{/if}{literal},{/literal}{if isset($is_homepage_secondary_left) && $is_homepage_secondary_left}true{else}false{/if}{literal}), move: {/literal}{$pro_cate_move}{literal}, prevText: '<i class="icon-left-open-3"></i>', nextText: '<i class="icon-right-open-3"></i>', productSlider:true }); var product_categories_{/literal}{$p_c.id_category}{literal}_flexslider_rs{/literal}{$smarty.capture.column_slider}{literal}; $(window).resize(function(){ clearTimeout(product_categories_{/literal}{$p_c.id_category}{literal}_flexslider_rs{/literal}{$smarty.capture.column_slider}{literal}); var rand_s = parseInt(Math.random()*200 + 300); product_categories_{/literal}{$p_c.id_category}{literal}_flexslider_rs{/literal}{$smarty.capture.column_slider}{literal} = setTimeout(function() { var flexSliderSize = getFlexSliderSize({/literal}{if $column_slider}1{else}{$slider_items}{/if}{literal},{/literal}{if isset($is_homepage_secondary_left) && $is_homepage_secondary_left}true{else}false{/if}{literal}); var flexslide_object = $('#product_categories-itemslider{/literal}{$smarty.capture.column_slider}{literal}_{/literal}{$p_c.id_category}{literal} .sliderwrap').data('flexslider'); if(flexSliderSize && flexslide_object != null ) flexslide_object.setVars({'minItems': flexSliderSize, 'maxItems': flexSliderSize}); }, rand_s); }); }); {/literal} //]]> </script> {else} <p>{l s='No products' mod='stproductcategoriesslider'}</p> {/if} </section> {/foreach} {/if} <!-- /MODULE Product categories slider --> y el otro homefeatured.tpl <!-- MODULE Home Featured Products --> <div id="featured-products_block_center" class="block products_block clearfix"> <h4 class="title_block">{l s='Featured products' mod='homefeatured'}</h4> {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|escape:'html'}" title="{$product.name|escape:html:'UTF-8'}" class="product_image"><img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home_default')|escape:'html'}" height="{$homeSize.height}" width="{$homeSize.width}" 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> <h5 class="s_title_block"><a href="{$product.link|escape:'html'}" title="{$product.name|truncate:50:'...'|escape:'htmlall':'UTF-8'}">{$product.name|truncate:35:'...'|escape:'htmlall':'UTF-8'}</a></h5> <div class="product_desc"><a href="{$product.link|escape:'html'}" title="{l s='More' mod='homefeatured'}">{$product.description_short|strip_tags|truncate:65:'...'}</a></div> <div> <a class="lnk_more" href="{$product.link|escape:'html'}" 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')|escape:'html'}?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 --> Hola, Me llamo Raul Martinez En el de destacados normal, la tienes impresa, aqui: {$product.description_short... Link to comment Share on other sites More sharing options...
Paula Martinez Posted December 7, 2013 Share Posted December 7, 2013 Hola, Me llamo Raul Martinez, Viendo el codigo del primer módulo, te pregunto ¿Es posible que usando esta plantilla: http://warehouse.iqit-commerce.com/en/ ? (Lo digo porque buscando en google: homefeaturedslider en uno de los resultados me ha salido esa plantilla) Link to comment Share on other sites More sharing options...
Sergio Ruiz Posted December 7, 2013 Share Posted December 7, 2013 El codigo que has pasado del homefeatured.tpl, por lo que veo no es el codigo del slider de productos destacados que tienes en la demo que comenta Raul. (Al menos eso creo) Necesito ver el tpl del modulo. ¿La plantilla que dice Raul, es la que usas? Si fueras, así ¿Es que no tiene soporte la plantilla? Link to comment Share on other sites More sharing options...
Sergio Ruiz Posted December 7, 2013 Share Posted December 7, 2013 Referente al otro codigo, veo que aquí: {if $column_slider} {include file="$tpl_dir./product-slider-list.tpl" products=$p_c.products } {else} {include file="$tpl_dir./product-slider.tpl" products=$p_c.products } {/if} hace referencia a dos tpls, ¿En el product-slider-list.tpl y product-slider.tpl a lo mejor es donde se imprime el producto en ese slider? Pero vamos, creo que si es la plantilla que dice Raul, el autor suele dar soporte. Link to comment Share on other sites More sharing options...
xeneize67 Posted December 7, 2013 Author Share Posted December 7, 2013 (edited) bueno he solucionado el problema el mdulo en el homefeatured.tpl normal agregue esta linea <div class="product_desc"><a href="{$product.link|escape:'html'}" title="{l s='More' mod='homefeatured'}">{$product.description_short|strip_tags|truncate:65:'...'}</a></div> y luego en el slider encontre un archivo llamado product_slider.tpl en themes/mitema y agregue el mismo codigo y aparecio! Edited December 7, 2013 by xeneize67 (see edit history) Link to comment Share on other sites More sharing options...
Sergio Ruiz Posted December 7, 2013 Share Posted December 7, 2013 (edited) bueno he solucionado el problema el mdulo en el homefeatured.tpl normal agregue esta linea <div class="product_desc"><a href="{$product.link|escape:'html'}" title="{l s='More' mod='homefeatured'}">{$product.description_short|strip_tags|truncate:65:'...'}</a></div> y luego en el slider encontre un archivo llamado product_slider.tpl en themes/mitema y agregue el mismo codigo y aparecio! Pero si esa linea ya estaba agregada en el tpl que mostrastes al principio ¿no? (Hablo del homefeatured.tpl) (Al menos ese se ve desde aquí ¿no? y eso comento Raul ¿no? Edited December 7, 2013 by Sergio Ruiz (see edit history) Link to comment Share on other sites More sharing options...
Sergio Ruiz Posted December 7, 2013 Share Posted December 7, 2013 (edited) Bueno, te añado la palabra Solucionado al titulo del tema, y cierro el tema, ya que al parecer lo has resuelto. Saludos, Edited December 7, 2013 by Sergio Ruiz (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts