Jump to content

[Solved] To show one of featured item in left column and 12 items in center column...


Recommended Posts

Hello and thank you for your help as always!

 

Now I want to put 1 item of featured products in Left column and show always  as "Today's Picked up item".

 

I want use featured products module in homepage center area also...

 

I added the code in "homefeatured.php" to make enable to hook featured products module to left column like this.

 public function hookDisplayLeftColumn($params){
return $this->hookDisplayHome($params);
}

and now it is possible to see featured products list in left column and center column of homapage also.

 

I want to show only 1 item in left column and 12items in center column but I don't know how to change the number of display...

 

Is there someone who can give me advices? 

Edited by tatamimi (see edit history)
Link to comment
Share on other sites

Solved by myself.

I added the code of $smarty to restrict the number of loop in the template for the homefeatured items in left column like this.

{foreach from=$products item=product name=products}
    {if $smarty.foreach.products.index < 1 }
          ---  template code ---
    {/if}
{/foreach}
  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...