B. Szakacs Posted July 2, 2013 Share Posted July 2, 2013 Hi there I want to add an infinite scroll type script to my webshop. All is going well on normal pages (category, manufacturer, search etc) but i want to do this on layered navigation too, which currently is not possible, as this module replaces the pagination with it's own code, and has ajax instant load. This is nice of course, but i want infinite scroll here so i must disable ajax pagination. I presume i must edit the "blocklayered.js", but this seems very very complex Any ideea? Thanks! Link to comment Share on other sites More sharing options...
B. Szakacs Posted July 3, 2013 Author Share Posted July 3, 2013 Any ideas? Link to comment Share on other sites More sharing options...
B. Szakacs Posted July 15, 2013 Author Share Posted July 15, 2013 Nobody? Link to comment Share on other sites More sharing options...
ErikSebastia2 Posted July 17, 2013 Share Posted July 17, 2013 Did you solve it? Thanks Link to comment Share on other sites More sharing options...
wondrik Posted July 17, 2013 Share Posted July 17, 2013 Hi, maybe you should try to share code which you already created/edited(list of changes) to be able to review it. Thanks Link to comment Share on other sites More sharing options...
ErikSebastia2 Posted July 18, 2013 Share Posted July 18, 2013 (edited) This is the code related with "pagination" of the blocklayered.php // Need a nofollow on the pagination links? $smarty->assign('no_follow', $filter_block['no_follow']); // Add pagination variable $nArray = (int)Configuration::get('PS_PRODUCTS_PER_PAGE') != 200 ? array((int)Configuration::get('PS_PRODUCTS_PER_PAGE'), 200, 200, 200) : array(200, 200, 200); /* We are sending an array in jSon to the .js controller, it will update both the filters and the products zones */ return Tools::jsonEncode(array( 'filtersBlock' => utf8_encode($this->generateFiltersBlock($selected_filters)), 'productList' => utf8_encode($product_list), 'pagination' => $smarty->fetch(_PS_THEME_DIR_.'pagination.tpl'), 'categoryCount' => $category_count)); Edited July 18, 2013 by ErikSebastia2 (see edit history) Link to comment Share on other sites More sharing options...
B. Szakacs Posted July 21, 2013 Author Share Posted July 21, 2013 Hi Did not managed to solve it yet. Whatever i do to leave normal pagination for blocklayered, the module just brokes. I gave up But of course, any solution would be welcommed ! Link to comment Share on other sites More sharing options...
PrestaFanBoy Posted August 26, 2013 Share Posted August 26, 2013 Hi Did not managed to solve it yet. Whatever i do to leave normal pagination for blocklayered, the module just brokes. I gave up But of course, any solution would be welcommed ! Hi, Good that you got infinite scroll. I am also trying to have infinite scroll for my product list. Can you guide me how I can achieve this. Thank you. Link to comment Share on other sites More sharing options...
B. Szakacs Posted September 20, 2013 Author Share Posted September 20, 2013 Anything? ErikSebastia2 - no results? Link to comment Share on other sites More sharing options...
Emzed Posted October 20, 2013 Share Posted October 20, 2013 I've only used it for a second but have you tried the free Infinite Ajax Scroll module at http://www.prestashop.com/forums/topic/232911-module-infinite-ajax-scroll-d%C3%A9filement-infini-en-ajax/?do=findComment&comment=1145759? At the time of writing the author believed it to be the only infinite scrolling module that supports layered navigation - and it's free! If you decide to use it, make sure you replace or create /theme/your-theme/js/modules/blocklayered/blocklayered.js with the file in post #18 http://www.prestashop.com/forums/topic/232911-module-infinite-ajax-scroll-d%C3%A9filement-infini-en-ajax/?do=findComment&comment=1225025. Link to comment Share on other sites More sharing options...
B. Szakacs Posted October 24, 2013 Author Share Posted October 24, 2013 Hmm, i take a look! Link to comment Share on other sites More sharing options...
AndrewStel Posted October 14, 2014 Share Posted October 14, 2014 I found the solution ! You need only comment paginationButton function into blocklayered.js. Link to comment Share on other sites More sharing options...
kolxoznik1 Posted December 16, 2014 Share Posted December 16, 2014 I found the solution ! You need only comment paginationButton function into blocklayered.js. what line you have been commented ? Please give a code 1 Link to comment Share on other sites More sharing options...
Andrejro Posted February 14, 2018 Share Posted February 14, 2018 (edited) Solution is here: https://www.prestashop.com/forums/topic/611073-how-to-remove-ajax-navigation/ for version 1.7 Edited February 14, 2018 by Andrejro (see edit history) 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