belwarg Posted November 21, 2013 Share Posted November 21, 2013 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 More sharing options...
vekia Posted November 21, 2013 Share Posted November 21, 2013 CategoryController.php, depending on category id load different template files (in initContent function), you can do it with if conditions (if category == 1 elseif category ==2 etc.) or with switch (proper method) function Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now