Jump to content

Show best selling products of a category in category page


Recommended Posts

  • 3 weeks later...
  • 1 month later...

Hi.

 

1 - Solved?!

 

2 - Im trying to get the bestseller to show best sellers in the current category. Any ideas?

 

2 - I did edit the blockbestseller.tpl - My displays 12 medium images without any text.

I have 12 lines looking like this (with different numbers 1 to 12)

{if $best_sellers|@count > 1}<li><a href="{$best_sellers.1.link}" title="{$best_sellers.1.legend}"><img src="{$link->getImageLink($best_sellers.1.link_rewrite, $best_sellers.1.id_image, 'medium')}" height="{$mediumSize.height}" width="{$mediumSize.width}" alt="{$best_sellers.1.legend}" /></a></li>{/if}

Link to comment
Share on other sites

  • 2 years later...

Hmmm I'm also trying to find a mod for this, so I can limit the number shown etc etc..... anyone know of a mod or a method - edit the tpl maybe?

hi you

if you want to limit number product in tpl you could try this code

{foreach from=$myproducts item=product name=myLoop}    

            {if $product@iteration is even by 5}

                   .... your code product

           {/if}

{/foreach}

Edited by john smith151 (see edit history)
  • Like 1
Link to comment
Share on other sites

  • 2 years later...
×
×
  • Create New...