ignasiuz Posted July 1, 2013 Share Posted July 1, 2013 (edited) Greetings, When I activate the "Layered Navigation" block, it will not work. Also, with "Layered Nav" active the "sort by" doesnt work (when "Layered Nav" is disabled it does work perfectly). Details: Using any filter will update the "There are x products" but will NOT change the product listing. The "Sort by" will not work when "Layered Nav" is active. Everything works fine with "Layered Nav" disabled. Also, I'm using a different theme, it seems to work fine with the default theme. I tried to initialize index (and the other stuff), cleared cache, enabled cache, disabled cache. I read the files a lot of times and search these (and other) forums for a similar problem, no luck. Theme is based off: http://html5-ninja.c...taShop-theme/10 Shop link is: http://omeuapito.pt/ Thank you for your time! Edited July 1, 2013 by ignasiuz (see edit history) 1 Link to comment Share on other sites More sharing options...
benjamin utterback Posted July 1, 2013 Share Posted July 1, 2013 Hi, can you make sure that you have mod_rewrite enabled on your server. When you go to Preferences>SEO n URL's... where it says Friendly URL, is there any warning? I say that because Layered Navigation needs Friendly URL to be active and enabled in order for it to work. 3 Link to comment Share on other sites More sharing options...
ignasiuz Posted July 1, 2013 Author Share Posted July 1, 2013 Hum... Well Thank you! You helped me in a strange way. I checked the htaccess and it was not CHMOD 666, updated it and friendly urls started to work. However the same problems persists, I think its caused by a # being added to the url. Any tip? Thank you! 1 Link to comment Share on other sites More sharing options...
benjamin utterback Posted July 1, 2013 Share Posted July 1, 2013 Yeah, that is the second issue I was going to ask. If Friendly URL isn't working and you have it active on your server, then you should check permissions. You probably won't need to do anything else. As long is the Friendly URL is working, the Layered Navigation should too. 1 Link to comment Share on other sites More sharing options...
ignasiuz Posted July 1, 2013 Author Share Posted July 1, 2013 But its is not working Check here. http://omeuapito.pt/3-desporto Neither the Filters neither the "Sort By" Is that "#" after the url normal? Thank you. Link to comment Share on other sites More sharing options...
benjamin utterback Posted July 1, 2013 Share Posted July 1, 2013 Now that you are sure that Friendly URL is active, you may want to go into the configuration of your layered navigation module and rebuild and reindex data. Go to Modules>Layered Navigation Block>and Configuration>rebuild/reindex 1 Link to comment Share on other sites More sharing options...
ignasiuz Posted July 1, 2013 Author Share Posted July 1, 2013 Yes, that was the first thing I did. Anyways, Ive done again. Problem persists. Thank you, I'm really appreciating your help. Link to comment Share on other sites More sharing options...
ignasiuz Posted July 1, 2013 Author Share Posted July 1, 2013 (edited) For example, when I move the slider it creates this URL: http://mydomain.pt/3-desporto#/price-11.7-21 If I change it to: http://mydomain.pt/3-desporto/price-11.7-21 it filters. But will keep not working Edited September 3, 2018 by ignasiuz (see edit history) Link to comment Share on other sites More sharing options...
benjamin utterback Posted July 1, 2013 Share Posted July 1, 2013 Okay, maybe when you changed the permission set your htaccess still needed to refresh. Have you generated another htaccess by toggling the Friendly URL option on and off again? 1 Link to comment Share on other sites More sharing options...
ignasiuz Posted July 1, 2013 Author Share Posted July 1, 2013 Yes, I created a blank .htaccess. Link to comment Share on other sites More sharing options...
benjamin utterback Posted July 1, 2013 Share Posted July 1, 2013 Very strange, the issue with the "#" in the URL is just due to the index not being rebuilt etc... I don't know why it's not working. What version of PrestaShop are you running? 1 Link to comment Share on other sites More sharing options...
ignasiuz Posted July 1, 2013 Author Share Posted July 1, 2013 1.5.4 What can cause the index not being rebuilt? Link to comment Share on other sites More sharing options...
ignasiuz Posted July 1, 2013 Author Share Posted July 1, 2013 I found this: http://forge.prestashop.com/browse/PNM-1154 tried the changes with no luck. I guess th # is just normal. Link to comment Share on other sites More sharing options...
benjamin utterback Posted July 1, 2013 Share Posted July 1, 2013 You tried this fix? https://github.com/pxls/PrestaShop/commit/85368c119b21783667d0b2d576a0d70ae0231ef1 1 Link to comment Share on other sites More sharing options...
ignasiuz Posted July 1, 2013 Author Share Posted July 1, 2013 You tried this fix? https://github.com/p...6a0d70ae0231ef1 Yes, I tried. I just was confused with the change on line 627, I added one extra line at the end anyways. Link to comment Share on other sites More sharing options...
benjamin utterback Posted July 1, 2013 Share Posted July 1, 2013 You made the changes to the file blocklayered.js ... After that can you rebuild htaccess and layered navigation indexes and attributes etc. 1 Link to comment Share on other sites More sharing options...
ignasiuz Posted July 1, 2013 Author Share Posted July 1, 2013 You made the changes to the file blocklayered.js ... After that can you rebuild htaccess and layered navigation indexes and attributes etc. After the changes I tried to rebuild index, prices, etc. Still no luck. If you want I can give you backoffice access via PM. Link to comment Share on other sites More sharing options...
ignasiuz Posted July 2, 2013 Author Share Posted July 2, 2013 Greetings, When I activate the "Layered Navigation" block, it will not work. Also, with "Layered Nav" active the "sort by" doesnt work (when "Layered Nav" is disabled it does work perfectly). Details: Using any filter will update the "There are x products" but will NOT change the product listing. The "Sort by" will not work when "Layered Nav" is active. Everything works fine with "Layered Nav" disabled. Also, I'm using a different theme, it seems to work fine with the default theme. I tried to initialize index (and the other stuff), cleared cache, enabled cache, disabled cache. I read the files a lot of times and search these (and other) forums for a similar problem, no luck. Theme is based off: http://html5-ninja.c...taShop-theme/10 Shop link is: http://omeuapito.pt/ Thank you for your time! Still need help. I tried everything I could with no luck. Link to comment Share on other sites More sharing options...
benjamin utterback Posted July 2, 2013 Share Posted July 2, 2013 Hi, thanks for the information. if it works on the default theme and does not work with the your theme. The problem is coming from the theme. You should contact the developer of the theme for support. 1 Link to comment Share on other sites More sharing options...
Christiaan_01 Posted October 27, 2013 Share Posted October 27, 2013 (edited) I just checked your website and see you got it working. Could you please tell what you did as a solution? I have the same problems like you described in the opening post: Using any filter will update the "There are x products" but will NOT change the product listing.The "Sort by" will not work when "Layered Nav" is active.Everything works fine with "Layered Nav" disabled. I'm working with PS 1.5.5. Customized default PS 1.5.0.17 theme myself. Thanks Edited October 27, 2013 by Christiaan_01 (see edit history) Link to comment Share on other sites More sharing options...
thooom Posted September 13, 2014 Share Posted September 13, 2014 It's an hold topic but maybe it should help someone else. I had the same problem until I found that the results wrapper (<div class="product_list"></div>) called in the blocklayered.js by the reloadContent() function, was missing in the theme. Link to comment Share on other sites More sharing options...
genweb Posted September 18, 2014 Share Posted September 18, 2014 Fast fix for indexing, this was my error code about not indexing urls & prices XMLHttpRequest cannot load http://www.yourdomain.es/modules/blocklayered/blocklayered-price-indexer.ph…=b345005f08&full=1&ajax=1&cursor=0?token=b345005f08&full=1&ajax=1&cursor=0. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://yourdomain.es' is therefore not allowed access. I was calling module URL in my backend without "www" like yourdomain.es/admin1903/index.php?controller=AdminModules&token=3c236a6284c28b4014afbd39c2141310&configure=blocklayered&conf=12 So just add www in your browser like this: www.yourdomain.es/admin1903/index.php?controller=AdminModules&token=3c236a6284c28b4014afbd39c2141310&configure=blocklayered&conf=12 And it will index nice. My fix to layered module: After reindexing, my layered module still did not appear. I was receiving a 404 error. I tried everything and it did not work. Finally I went to another Prestashop shop with an old version of this module working, I copied module folder, changed it on my new presta, activated and updated it and it worked. I got my layered navigation and all its other options working fine. I hope it helps someone! Link to comment Share on other sites More sharing options...
giorgio.beggiora Posted January 26, 2015 Share Posted January 26, 2015 It's an hold topic but maybe it should help someone else. I had the same problem until I found that the results wrapper (<div class="product_list"></div>) called in the blocklayered.js by the reloadContent() function, was missing in the theme. you saved my life with this Thanks! Link to comment Share on other sites More sharing options...
Fashionresidenz Posted March 5, 2015 Share Posted March 5, 2015 I've got the same Problem, if I check any Filter the page does not change, but I've got this Problem just on ipad and iPhone. What should I exactly change? Best regards, Lucas Link to comment Share on other sites More sharing options...
Elise B. Posted November 20, 2015 Share Posted November 20, 2015 (edited) It's an hold topic but maybe it should help someone else. I had the same problem until I found that the results wrapper (<div class="product_list"></div>) called in the blocklayered.js by the reloadContent() function, was missing in the theme. Hello, I'm not sure if I was doing this right, but I found three instances of reloadContent() via mysite/theme/js/modules/blocklayered/blocklayered.js. I changed these three instances from reloadContent() to reloadcontent(<div class="product_list"></div>), which seemed to make sort by menu work even with Layered navigation enabled. I was happy. Then I find now Layered navigation does not work. Still trying to solve the issue of sort by function not working with layered navigation enabled. The sort by function does not even work on PS default theme demo. Really wish someone would fix this bug so I do not have to choose between Layered navigation or the sort by feature. Edited November 20, 2015 by Elise B. (see edit history) Link to comment Share on other sites More sharing options...
badcrocodile Posted January 21, 2016 Share Posted January 21, 2016 Make sure that nbr-product-page.tpl is being loaded and that you have a select form control element with an ID of nb_item. Link to comment Share on other sites More sharing options...
Preskaribou Posted January 25, 2016 Share Posted January 25, 2016 Make sure that nbr-product-page.tpl is being loaded and that you have a select form control element with an ID of nb_item. More precision please. If I have another theme that the default one, what should I do please ? Thanks Link to comment Share on other sites More sharing options...
badcrocodile Posted January 25, 2016 Share Posted January 25, 2016 (edited) My problem was that the file nbr-product-page.tpl wasn't being called by my theme. More specifically, it was being called but someone had commented it out because they didn't want the select field where visitors choose how many products per page they want to show up. So instead of hiding it with CSS they commented out the include for that file. I'm using a custom theme and am new to Prestashop myself so can't give much better answer or more details than that. Basically, at some point in your product display file you need the following: {include file="$tpl_dir./nbr-product-page.tpl"} That was my experience at least. If you do a find-replace for nbr-product-page.tpl that should get you going in the right direction. Edited January 25, 2016 by badcrocodile (see edit history) Link to comment Share on other sites More sharing options...
Slumdog Posted May 16, 2016 Share Posted May 16, 2016 I also have a problem with Layered Navigation module. The shop I am working on uses the 1.6.1.5 Prestashop version, and it has over 6000 product features. When I click on Layered Navigation filter, everything freezes and endless loading icon appears, like you can see below: http://screencast.com/t/wimcOIlTHQ Do you have any idea why is this happening, and how can we fix it? PS: the shop will have 40 or 50.000 products, wen it will be completed. Link to comment Share on other sites More sharing options...
Slumdog Posted May 19, 2016 Share Posted May 19, 2016 I also have a problem with Layered Navigation module. The shop I am working on uses the 1.6.1.5 Prestashop version, and it has over 6000 product features. When I click on Layered Navigation filter, everything freezes and endless loading icon appears, like you can see below: http://screencast.com/t/wimcOIlTHQ Do you have any idea why is this happening, and how can we fix it? PS: the shop will have 40 or 50.000 products, wen it will be completed. We have found the solution: had to change the server PHP version from 5.6 to another (5.4 or 5.5 or 7). We selected the PHP version 7, and now it works. Link to comment Share on other sites More sharing options...
Guest locen Posted May 19, 2016 Share Posted May 19, 2016 Hi, i have problem with filterS because if i enable filter: products are not show and if i disable it, products are ok. this happen only for some categories. I tried to delete filter, disable module, change filter ecc but not solutions works. PRESTASHOP VERSION: 1.6.0.9 MODULE VERSION: 2.1.3 Link to comment Share on other sites More sharing options...
Vali Iacobescu Posted June 14, 2016 Share Posted June 14, 2016 Hi, A also have a problem with sortPagiBar on top. When I want to change the product view from grid to list, the buttons don't toggle the products from one view to another. This is a link pointing to the site: http://scufita-rosie.ro/magazin-scufita/323-suplimente-alimentare-argital Please help! Link to comment Share on other sites More sharing options...
lunos Posted July 8, 2016 Share Posted July 8, 2016 (edited) Would be great if the opener of this thread could follow this up with his solution. Edited July 8, 2016 by lunos (see edit history) Link to comment Share on other sites More sharing options...
somits1 Posted September 12, 2016 Share Posted September 12, 2016 Hi, can anyone please tell me how to enable layered navigation for mobile theme in prestashop 1.5.6 , its working on desktop while not working on mobile. so please help me to solve the issue. my site is http://www.slmobileprice.com Thanks, Somit Link to comment Share on other sites More sharing options...
ravinder-singh Posted May 15, 2017 Share Posted May 15, 2017 Hi, i,m facing some problem. my layered navigation block module is not working . please somebody help. my website url is http://sarawebtemplates.in/demo/4-tops. Thanks Ravinder Link to comment Share on other sites More sharing options...
somits1 Posted August 10, 2017 Share Posted August 10, 2017 layered navigation block not working in mobile theme while working on Desktop Version, Can you please tell me how to enable on mobile. I am using prestashop 1.5.6 and my site is www.kaunsamobile.com Link to comment Share on other sites More sharing options...
somits1 Posted October 4, 2017 Share Posted October 4, 2017 still not getting any reply. Is there anyone who can help me? Link to comment Share on other sites More sharing options...
Andreea S. Posted October 10, 2017 Share Posted October 10, 2017 Hello @somits1, I have the same issue, did you find a fix for it? Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts