Jump to content

Specific category in specific cms page

Recommended Posts

What i want to do is to have a specific category in a specific cms page.
I can include the product-list.tpl in a cms.tpl page

I have a problem with showing a product-list inside my cms.tpl page.

I have included the file product-list.tpl and it is showing all my products, but there is no name/title for the products.

I have Prestashop

There must be a simpeler way to get product list showing in a cms page from a certain category.

Link to comment
Share on other sites

by default it's not possible.

to achieve this you will have to alter cms controller


you will have to pass to smarty array variable that will contain products from selected category (with category::getProducts() function)


then in .tpl file you will have to include product-list.tpl file with defined variable $products.

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