yucos Posted December 29, 2012 Share Posted December 29, 2012 blocklayered is it possible to be installed on the front page or all pages if can .. what should i change I use presta ver 1.5.2.0 thanks Link to comment Share on other sites More sharing options...
anisimow Posted December 29, 2012 Share Posted December 29, 2012 of cource it's possible, but you should work on it. I can help you a little. after line 2225 and 2581 it is after line $id_parent = (int)Tools::getValue('id_category', Tools::getValue('id_category_layered', 1)); add this code $page_name = Dispatcher::getInstance()->getController(); if($page_name == 'index') $id_parent= 2;//in frontpage = id_parent = 2(home category) on line 1211 delete if (Tools::getValue('id_category', Tools::getValue('id_category_layered', 1)) == 1) return; And dont forget to set up in configuration, category depth 0 or more than 1. this changes help you to see blocklayerd on front page but it would not work. you should make changes in your template file that makes to work correctly ajax request answer. for that the most important is presenting in your template (#product_list, than div#pagination, .category-product-count ) may bee someting more. It worked on my test sight but i desided left standart module. As for mee it's better . good new year!!! Link to comment Share on other sites More sharing options...
yucos Posted January 4, 2013 Author Share Posted January 4, 2013 of cource it's possible, but you should work on it. I can help you a little. after line 2225 and 2581 it is after line $id_parent = (int)Tools::getValue('id_category', Tools::getValue('id_category_layered', 1)); add this code $page_name = Dispatcher::getInstance()->getController(); if($page_name == 'index') $id_parent= 2;//in frontpage = id_parent = 2(home category) on line 1211 delete if (Tools::getValue('id_category', Tools::getValue('id_category_layered', 1)) == 1) return; And dont forget to set up in configuration, category depth 0 or more than 1. this changes help you to see blocklayerd on front page but it would not work. you should make changes in your template file that makes to work correctly ajax request answer. for that the most important is presenting in your template (#product_list, than div#pagination, .category-product-count ) may bee someting more. It worked on my test sight but i desided left standart module. As for mee it's better . good new year!!! What file should to editing ..?? Link to comment Share on other sites More sharing options...
anisimow Posted January 4, 2013 Share Posted January 4, 2013 (edited) What file should to editing ..?? blocklayered.php )) I tried this on my test sight It looked like work, but i didn't tested it. Good luck Edited January 4, 2013 by anisimow (see edit history) Link to comment Share on other sites More sharing options...
NOjAN Posted February 16, 2013 Share Posted February 16, 2013 Is there any similiar solution for 1.4.9 ? i tried this on 1.4.9 , but script didn't load anything.. Link to comment Share on other sites More sharing options...
anisimow Posted February 16, 2013 Share Posted February 16, 2013 (edited) Is there any similiar solution for 1.4.9 ? i tried this on 1.4.9 , but script didn't load anything.. did you made this? this changes help you to see blocklayerd on front page but it would not work. you should make changes in your template file that makes to work correctly ajax request answer. for that the most important is presenting in your template (#product_list, than div#pagination, .category-product-count ) may bee someting more Script load result to containers #product_list, div#pagination, .category-product-count Edited February 16, 2013 by anisimow (see edit history) Link to comment Share on other sites More sharing options...
NOjAN Posted February 17, 2013 Share Posted February 17, 2013 (edited) did you made this? Script load result to containers #product_list, div#pagination, .category-product-count It's before that... when i apply changes in blocklayered.php i get this error in my error_log: [17-Feb-2013 03:38:58] PHP Fatal error: Class 'Dispatcher' not found in /home/mydirectory/modules/blocklayered/blocklayered.php on line 2223 and site won't load. Edited February 17, 2013 by NOjAN (see edit history) Link to comment Share on other sites More sharing options...
anisimow Posted February 17, 2013 Share Posted February 17, 2013 (edited) yes dispatcher is only for 1.5. there is soemting else to determinate wether frontpage but i didnt remember. try write with number "2" $id_parent = (int)Tools::getValue('id_category', Tools::getValue('id_category_layered', 2)); and not use $page_name = Dispatcher::getInstance()->getController(); if($page_name == 'index') $id_parent= 2;//in frontpage = id_parent = 2(home category) maybe helps ) Edited February 17, 2013 by anisimow (see edit history) Link to comment Share on other sites More sharing options...
Niferman Posted May 27, 2013 Share Posted May 27, 2013 (edited) Help my Made a change in blocklayered.php The filter can be seen on the main page. In which file to change (#product_list, div#pagination, .category-product-count) module that would work? Sorry for my English. Edited May 27, 2013 by Niferman (see edit history) Link to comment Share on other sites More sharing options...
Erica-fin8 Posted September 27, 2013 Share Posted September 27, 2013 hi, can you help me? i would link insert the filter on the search page but the code don't work. " $page_name = Dispatcher::getInstance()->getController();if($page_name == 'index') $id_parent= 2;//in frontpage = id_parent = 2(home category) " How can I modify it? Link to comment Share on other sites More sharing options...
mascotasavila Posted October 22, 2013 Share Posted October 22, 2013 Hi, i try to show blocklayered on manufacter page. The code for fornt page are: $page_name = Dispatcher::getInstance()->getController(); if($page_name == 'index') $id_parent= 2;//in frontpage = id_parent = 2(home category) For Manufacturer page, what code i changed??? $page_name = Dispatcher::getInstance()->getController(); if($page_name == 'manufacturer') $id_parent= 2; ¿¿¿???? Link to comment Share on other sites More sharing options...
faumarzola Posted September 15, 2014 Share Posted September 15, 2014 How show blocklayered on manufacturer page????For prestashop 1.5, blocklayered 2.0 Help me please!!! 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