me.yasin Posted July 25, 2013 Share Posted July 25, 2013 I create module that display filters in left column. I want to run this module on categories page. I want custom queries to get products data and create pagination for this data. But I don't know how to override these functionalists in my custom module. Any functions or hooks that I use when queering products. Category page may be like this http://localhost/prestashop/2-men Link to comment Share on other sites More sharing options...
vekia Posted July 25, 2013 Share Posted July 25, 2013 hello sorry but i don't understand what you exactly want to achieve, can you put some more light on this? I will be gratefull bye 1 Link to comment Share on other sites More sharing options...
me.yasin Posted July 25, 2013 Author Share Posted July 25, 2013 I want to pass product data to product-list.tpl file from my module. In short I don't want to use prestashop functions to get product data instead I code my custom queries to get product data and assign this data to product-list file to display. hope you can understand now. Link to comment Share on other sites More sharing options...
Martin Uker K Posted July 25, 2013 Share Posted July 25, 2013 Your Post is quite confusing. I'm not sure what you want, a module or an override for a page...? Martin (Don't trust the Purple V, he's evil) Link to comment Share on other sites More sharing options...
vekia Posted July 25, 2013 Share Posted July 25, 2013 in this case you have to override the category controller or front controller (with static function) then you will be able to use variables in the product-list.tpl file there is no other way Link to comment Share on other sites More sharing options...
Martin Uker K Posted July 25, 2013 Share Posted July 25, 2013 (edited) Ah Got it, You want to override a controller. I think it's categoryController you want to change. But first, tell us what you want as a result? What is shortly your query? Martin Dang he answered before me... Edited July 25, 2013 by Martin Uker K (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts