Jump to content

How to get certain product data in tpl - custom category pages


Recommended Posts

Hello!
I want to change category pages for some of categories in my shop.

How it will work:
- for some categories (based on category id) display custom template
- for rest of categories display default category page.

For my choosen categories i want display category title, description, and some product data (of course all products will be in that category). 

Question is - can I type something like <h1>{$product->name|escape:'htmlall':'UTF-8', X}</h1> where X is id of existing product?

After category description I want to display 6 products, I know them ids, all I need is just to display their data (name, image, price, description) - only for these 6 products, not for every product in category.

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