maiskiykot Posted November 1, 2020 Share Posted November 1, 2020 I want include products from some categories to category's screen. I.e. I have products Motorola and I want include products Nokia. What files contains functions for correction? I can't understand logic of new PS. I have version 1.7.6.1 Link to comment Share on other sites More sharing options...
rrataj Posted November 3, 2020 Share Posted November 3, 2020 Your description is not very precise. Main template for categories is here: "/themes/your_theme/templates/catalog/listing/category.tpl". Controller is here: "/controllers/front/listing/CategoryController.php". Normally you can prepare custom products inside controller, pass it as smarty variable to the template and display it. Here you can find some additional controller and some useful functions: "/classes/controller/ProductListingFrontController" and function "prepareProductForTemplate()". Link to comment Share on other sites More sharing options...
maiskiykot Posted November 4, 2020 Author Share Posted November 4, 2020 On 11/3/2020 at 1:47 PM, rrataj said: Your description is not very precise. Main template for categories is here: "/themes/your_theme/templates/catalog/listing/category.tpl". Controller is here: "/controllers/front/listing/CategoryController.php". Normally you can prepare custom products inside controller, pass it as smarty variable to the template and display it. Here you can find some additional controller and some useful functions: "/classes/controller/ProductListingFrontController" and function "prepareProductForTemplate()". I tried correct this files. Not changes Link to comment Share on other sites More sharing options...
rrataj Posted November 4, 2020 Share Posted November 4, 2020 So please share what did you correct exactly and where? You can include code and file names. Link to comment Share on other sites More sharing options...
maiskiykot Posted November 4, 2020 Author Share Posted November 4, 2020 I tried changes with working project and deletes all if not working. Therefore I started this topic. May be somebody have solution or ideas. I want fill categories with little count of products, 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