Jump to content

How include some categories to category's screen?


maiskiykot
 Share

Recommended Posts

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

Share this post


Link to post
Share on other sites

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()".

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More