yaniv14 Posted May 5, 2013 Share Posted May 5, 2013 (edited) Hi, Trying to get the associated category in Home Featured module. But getting only with dashes like: 'category-associated-name' Still trying to fig out Smarty Thanks in advance Edited May 23, 2013 by yaniv14 (see edit history) Link to comment Share on other sites More sharing options...
splash_info Posted May 5, 2013 Share Posted May 5, 2013 I am not really sure to understand your question. But as far as i know, the category of the products wich are shown in the "Home Featured" module is the "Home" category (Level 0 of your store). Link to comment Share on other sites More sharing options...
yaniv14 Posted May 6, 2013 Author Share Posted May 6, 2013 I am talking about showing the related category of the product inside the product lising (like under the name of the product). Link to comment Share on other sites More sharing options...
vekia Posted May 22, 2013 Share Posted May 22, 2013 hello yaniv you're talking about homefatured module or about product listings? Link to comment Share on other sites More sharing options...
yaniv14 Posted May 22, 2013 Author Share Posted May 22, 2013 homefeatured module Link to comment Share on other sites More sharing options...
vekia Posted May 22, 2013 Share Posted May 22, 2013 Hello Yaniv i checked sources and if you use {$products.category_default} you will get the category name. i checked it on my demo store on localhost (i changed iPod category to iPod test) and here is the effect: doesn't it work for you? :| 3 Link to comment Share on other sites More sharing options...
yaniv14 Posted May 23, 2013 Author Share Posted May 23, 2013 Yes, it works perfect. Thank you so much Link to comment Share on other sites More sharing options...
Carlsen Posted May 24, 2013 Share Posted May 24, 2013 Suggestions for doing this in module Blocknewproducts ? I have tried taking code from homefeatured; But then I can only show category names of products which are actually placed in the home category (and also are new). 1 Link to comment Share on other sites More sharing options...
PleXy Posted July 31, 2013 Share Posted July 31, 2013 I´ve really tried to get this to work, but it doesn´t. Both in homefeatured and homenewproducts. Done some reading about smarty but I can´t get it to work anyway. Anyone mind giving me a helping hand? Thanks! Link to comment Share on other sites More sharing options...
vekia Posted July 31, 2013 Share Posted July 31, 2013 can your describe your problem? it is the same as problem described in first post? Link to comment Share on other sites More sharing options...
yaniv14 Posted July 31, 2013 Author Share Posted July 31, 2013 Try {$product.category_default} instead of {$products.category_default} Link to comment Share on other sites More sharing options...
vekia Posted August 2, 2013 Share Posted August 2, 2013 PleXy, let us know if yaniv solution works as you expect Link to comment Share on other sites More sharing options...
Jiten rash (away) Posted September 14, 2013 Share Posted September 14, 2013 for new products replace homefeatured.tpl lines marked with red with green <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}"> {if $products_type == 0} {if $new_products} Link to comment Share on other sites More sharing options...
Recommended Posts