sheraz4pro Posted May 15, 2013 Share Posted May 15, 2013 Hi, i have to customize the categories products page. i am unable to find which function is rendering the products. I have found a function named getProducts() in classes/category. But any changes i made in it does not have any effect on the page.i removed function body but it is still displaying the products. Please guide me which function is used to display category products. Link to comment Share on other sites More sharing options...
shacker Posted May 15, 2013 Share Posted May 15, 2013 check in classes/category.php -> getProducts 1 Link to comment Share on other sites More sharing options...
PascalVG Posted May 15, 2013 Share Posted May 15, 2013 I'm not sure if I understood your question well, but as I read it you want to know where the actual HTML page is built for the category with it's list of products for that category? That is done in /themes/<your theme folder>/product-list.tpl This does the actual building of the listed items (products) of the chosen category etc. If I totally misunderstood, please elaborate a little. My 2 cents, pascal Link to comment Share on other sites More sharing options...
vekia Posted May 16, 2013 Share Posted May 16, 2013 php code - classes/Category.hp tempalte file - themes/YOUR_THEME/product-list.tpl Link to comment Share on other sites More sharing options...
sheraz4pro Posted May 17, 2013 Author Share Posted May 17, 2013 Thanks for the help. i have solved the issue. Actually i have enabled "Layered Navigation Module" thats why category page was not using classes/Category.php class but it was using its own class. issue resolved. Link to comment Share on other sites More sharing options...
shacker Posted May 17, 2013 Share Posted May 17, 2013 ok, regards. remember to change the title to solved Link to comment Share on other sites More sharing options...
vekia Posted May 17, 2013 Share Posted May 17, 2013 done (marked as solved) here is an instruction: To mark a topic as [solved] :- Edit the first post of your topic by clicking on the "Edit" button, - Click on the "Use full editor" button, - Add the "[solved]" string at the beginning of your topic title and click on the "Submit Modified Post" button. dear @sheraz4pro in the future, please follow these steps, we will be gratefull Link to comment Share on other sites More sharing options...
dramdram Posted June 4, 2013 Share Posted June 4, 2013 (edited) Hello, How exactly all that works, could you guys provide the code for the two files? Thank you Edited June 4, 2013 by dramdram (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted June 4, 2013 Share Posted June 4, 2013 Hello, How exactly all that works, could you guys provide the code for the two files? Thank you you're asking about what? product-list.tpl or ... ? Link to comment Share on other sites More sharing options...
Recommended Posts