Jump to content

[Solved] Product category in home featured module


Recommended Posts

  • 3 weeks later...

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:

 

T3wEx0e.png

 

doesn't it work for you? :|

  • Like 3
Link to comment
Share on other sites

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).

  • Like 1
Link to comment
Share on other sites

  • 2 months later...

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

  • 1 month later...

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

×
×
  • Create New...