Jump to content

product_list in the product page


bluegrizzly

Recommended Posts

Hello

 

I am costumizing the default theme of Prestashop 1.5.1.

I am trying to find a way to include the product list of the current category in the Product page. Below the full description.

 

i am adding this at the end of product.tpl

{if isset($category)}
{if $category->id AND $category->active}
<!--pre>{$category|print_r}<pre-->
 <h1>
  {strip}
{$category->name|escape:'htmlall':'UTF-8'}
{if isset($categoryNameComplement)}
 {$categoryNameComplement|escape:'htmlall':'UTF-8'}
{/if}
  {/strip}
 </h1>



 {if $product_list}


  {include file="./product-list.tpl" products=$product_list}


 {/if}

{/if}
{/if}

 

I get the correct category title, but the product list doesent show.

Could anyone give me a pointer so I can do this?

 

Thanks!!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...