Jump to content

all products category on homepage


Recommended Posts

Change the file homefeatured.tpl in modules\homefeatured so that it contains the following content:

<!-- MODULE Home Featured Products -->
<div id="featured-products_block_center" class="block products_block clearfix">
	<h4>{l s='Featured products' mod='homefeatured'}</h4>
	{if isset($products) AND $products}
		{include file="$tpl_dir./product-list.tpl" products=$products}
	{/if}
</div>
<!-- /MODULE Home Featured Products -->
Link to comment
Share on other sites

I haven't experimented with it, but the code you want is something like that found in category.tpl

 

There you will find the code 

{include file="$tpl_dir./product-compare.tpl"}
{include file="$tpl_dir./product-sort.tpl"}
{include file="$tpl_dir./product-list.tpl" products=$products}
{include file="$tpl_dir./product-compare.tpl"}
{include file="$tpl_dir./pagination.tpl"}

I suppose you should use that instead of just including product-list.php

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

 

Change the file homefeatured.tpl in modules\homefeatured so that it contains the following content:

<!-- MODULE Home Featured Products -->
<div id="featured-products_block_center" class="block products_block clearfix">
	<h4>{l s='Featured products' mod='homefeatured'}</h4>
	{if isset($products) AND $products}
		{include file="$tpl_dir./product-list.tpl" products=$products}
	{/if}
</div>
<!-- /MODULE Home Featured Products -->

Hello Musicmaster,

 

Can you explain what this code does. 

 

Im trying to add product carousels on home page containing featured products from various categories separately with 'view more' 

 

I have attached a screenshot. How can i do like this..

 

Can you guide me how I can do this. 

 

Thank you. 

 

PrestaFanBoy

post-494308-0-21441500-1378220462_thumb.png

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

  • 9 months later...

Doifashion,

 

I'm trying to get pagination to show up on home > featured products.  I'm not having any luck.  You mentioned that added an include for pagination and it worked.  Is that all you did?  I have done the same (plus some) and have had zero luck in achieving pagination on my home page for the featured products.  Any insight you could share would be very appreciated.  Thank you in advance.

Link to comment
Share on other sites

×
×
  • Create New...