mohcineel Posted June 11, 2019 Share Posted June 11, 2019 Hello, i've just installed prestashop 1.7 on my server and added some products but when i select a categorie and use sort by price it gives a blank page with just the number of products, but the sort by name works, i parmetred the number of product per page to 80 . this is the link to website tachri.com Link to comment Share on other sites More sharing options...
slimallani Posted June 23, 2019 Share Posted June 23, 2019 Hi, I am experiencing the same thing and I noticed that if you disable the Faceted Search module, the sorting by price will work again. let me know if it is the same for you. I am still looking for a good solution as having the faceted search disabled is not a good option. Thanks, Slim Link to comment Share on other sites More sharing options...
karus Posted September 5, 2019 Share Posted September 5, 2019 Hello, as of FacetedSearch 3.2.1 you need to comment lines 333-335 in ps_facetedsearch/src/Adapter/MySQL.php: // if ($orderField === 'price') { // $orderField = $this->getOrderDirection() === 'asc' ? 'price_min' : 'price_max'; // } this change fixed it for me. 1 Link to comment Share on other sites More sharing options...
01Park Posted September 27, 2019 Share Posted September 27, 2019 Hi @karus, You code works perfect, but not for multistore. Do you have any idea how to fix this? Link to comment Share on other sites More sharing options...
InfantryDev Posted September 27, 2019 Share Posted September 27, 2019 (edited) On 9/5/2019 at 9:44 PM, karus said: Hello, as of FacetedSearch 3.2.1 you need to comment lines 333-335 in ps_facetedsearch/src/Adapter/MySQL.php: // if ($orderField === 'price') { // $orderField = $this->getOrderDirection() === 'asc' ? 'price_min' : 'price_max'; // } this change fixed it for me. Expand I did it @karus , but won't work. Result before and after: https://imgur.com/xVALpM2 but with sorting with name it's ok: https://imgur.com/Ad6K438 Edited September 27, 2019 by InfantryDev (see edit history) Link to comment Share on other sites More sharing options...
karus Posted September 27, 2019 Share Posted September 27, 2019 Module has been updated, probably that's the case. For 3.2.1 it is working also with multistore. I don't want to update because it may be harder to fix so I can't help you at this moment. Link to comment Share on other sites More sharing options...
InfantryDev Posted October 9, 2019 Share Posted October 9, 2019 Isn't it pathetic that on clean install of latest stable prestashop we can't sort products by price? How it's possible to release version with that bug and what's worse devs didn't fix it yet. Link to comment Share on other sites More sharing options...
Maria Posted October 16, 2019 Share Posted October 16, 2019 Hello, do you know if this is fixed now? I also have this issue with 1.7.6.1 and multistore.. regards Link to comment Share on other sites More sharing options...
Alessandro Posted October 24, 2019 Share Posted October 24, 2019 On 9/27/2019 at 8:21 PM, karus said: Module has been updated, probably that's the case. For 3.2.1 it is working also with multistore. I don't want to update because it may be harder to fix so I can't help you at this moment. Expand Hello, I'm also having this problem. I reallty need both the sorting and the filters to be active, I don't want to disable them. I also tried downgrading to 3.2.1, but your fix isn't working. Could you let us know the versions of PS? Maybe it also influences. Thanks 1 Link to comment Share on other sites More sharing options...
agalussio Posted October 25, 2019 Share Posted October 25, 2019 I have a similar problem with Prestashop 1.7.6.1 and ps_facetedsearch 3.4.0 Enabling the module changes the order of the categories! Does anyone know if this is a common error? It's a new installation 1 Link to comment Share on other sites More sharing options...
PCQUATRO Posted November 12, 2019 Share Posted November 12, 2019 On 6/11/2019 at 12:30 AM, mohcineel said: Hello, i've just installed prestashop 1.7 on my server and added some products but when i select a categorie and use sort by price it gives a blank page with just the number of products, but the sort by name works, i parmetred the number of product per page to 80 . Expand Just go to modules manager faceted search -> rebuild price index... Best Regards 4 4 Link to comment Share on other sites More sharing options...
Erost Posted December 8, 2019 Share Posted December 8, 2019 On 11/12/2019 at 4:13 AM, PCQUATRO said: Just go to modules manager faceted search -> rebuild price index... Best Regards Expand As I see that nobody thanks you, in fact it is not a mistake if a bad indexation of product prices. Clear the cache before, so that you don't get an error, and after this reconstruct the price index. Or add a cron for prices, names and references so, you can remember to reconstruct the indexes again and again. Thank you very much PCQUATRO!!!!!🤩 1 Link to comment Share on other sites More sharing options...
PCQUATRO Posted December 8, 2019 Share Posted December 8, 2019 On 12/8/2019 at 4:49 PM, Erost said: Thank you very much PCQUATRO!!!!!🤩 Expand I learn by helping others, so that´s my thank you anyway thank you for your thank you Best Regards 1 Link to comment Share on other sites More sharing options...
Yulia Vitun Posted October 2, 2020 Share Posted October 2, 2020 On 12/8/2019 at 4:49 PM, Erost said: As I see that nobody thanks you, in fact it is not a mistake if a bad indexation of product prices. Clear the cache before, so that you don't get an error, and after this reconstruct the price index. Or add a cron for prices, names and references so, you can remember to reconstruct the indexes again and again. Thank you very much PCQUATRO!!!!!🤩 Expand Prestashop 1.7.6.5 - it did not help (( any other advise? Link to comment Share on other sites More sharing options...
Shakalaka Posted November 30, 2020 Share Posted November 30, 2020 On 9/5/2019 at 9:44 PM, karus said: Hello, as of FacetedSearch 3.2.1 you need to comment lines 333-335 in ps_facetedsearch/src/Adapter/MySQL.php: // if ($orderField === 'price') { // $orderField = $this->getOrderDirection() === 'asc' ? 'price_min' : 'price_max'; // } this change fixed it for me. Expand Hello, It did work out for me (PS 1.7.6.3 and facetedsearch 3.6.0) Thanks ! Link to comment Share on other sites More sharing options...
Ana Maria Sierra Posted December 23, 2020 Share Posted December 23, 2020 Has anyone solved this issue? It is happening to me in version 1.7.7.0 and faceted 3.7.0. Comment the lines didn't work Link to comment Share on other sites More sharing options...
ClassyDevs Posted December 23, 2020 Share Posted December 23, 2020 @Ana Maria Sierra Will please check the page where you check all price is same or they has variant. In freshp prestashop 1.7.7.0 it work check this two screen short https://pscreenshot.com/i/iU2D24 https://pscreenshot.com/i/GAIj25 If we reproduce your issue we will try to help Thank you Link to comment Share on other sites More sharing options...
AgentZoy Posted January 31, 2021 Share Posted January 31, 2021 Hi I found your solution Can yoy write me in English how to reindex prices that shown on screenshot I can't found Link to comment Share on other sites More sharing options...
jugalfas Posted May 11, 2021 Share Posted May 11, 2021 On 12/8/2019 at 4:49 PM, Erost said: As I see that nobody thanks you, in fact it is not a mistake if a bad indexation of product prices. Clear the cache before, so that you don't get an error, and after this reconstruct the price index. Or add a cron for prices, names and references so, you can remember to reconstruct the indexes again and again. Thank you very much PCQUATRO!!!!!🤩 Expand Hello Erost, I did first clear cache and do rebuild entire price index but it failed after 200 or something products. so what to do in this case? Thanks, Link to comment Share on other sites More sharing options...
Ana Maria Sierra Posted July 24, 2021 Share Posted July 24, 2021 Hello everyone, I solve the issue!!! atfer giving up I finally found the issue, it turns out that I had disabled the default country so the index was not being contructed for that country, my advise to find the issue: --try to rebuilt the index and check, if that doesn't work do the following: 1. activate the database log 2. reproduce the issue. 3. then check the last query about list of product. 4. Test the query and see if the result is empty 5. If so, you can check why it is empty, the related table is information_schema ps_layered_price_index If the query result is not empty the issue is somewhere else in the template, theme or something. Link to comment Share on other sites More sharing options...
oliver139 Posted January 25, 2022 Share Posted January 25, 2022 On 7/24/2021 at 8:31 PM, Ana Maria Sierra said: Hello everyone, I solve the issue!!! atfer giving up I finally found the issue, it turns out that I had disabled the default country so the index was not being contructed for that country, my advise to find the issue: --try to rebuilt the index and check, if that doesn't work do the following: 1. activate the database log 2. reproduce the issue. 3. then check the last query about list of product. 4. Test the query and see if the result is empty 5. If so, you can check why it is empty, the related table is information_schema ps_layered_price_index If the query result is not empty the issue is somewhere else in the template, theme or something. Expand This is exactly the same problem as mine. Thanks so much! Link to comment Share on other sites More sharing options...
Hehn-MB Posted August 18, 2022 Share Posted August 18, 2022 (edited) Though it's late I'd like to ask again. "?order=product.price.[asc|desc]&from-xhr=" works fine in Edge and Firefox but NOT in chrome. console.log output is: updateProductListDOM :<div id="js-product-list"> <div class="products"> </div> <div class="row u-a-i-c"> <div class="small col-lg-4"> Showing 1-4 of 4 item(s) </div> <nav class="col-lg-8"> </nav> </div> <div class="visible--mobile text-right up"> <a href="#header" class="btn btn-secondary"> Back to top <i class="material-icons"></i> </a> </div> </div> I assume it's a JS problem. Any ideas? Edited August 18, 2022 by Hehn-MB Ajax Request (see edit history) Link to comment Share on other sites More sharing options...
plutten22 Posted October 10, 2022 Share Posted October 10, 2022 Thank you. Link to comment Share on other sites More sharing options...
biello Posted February 14, 2023 Share Posted February 14, 2023 On 11/12/2019 at 4:13 AM, PCQUATRO said: Just go to modules manager faceted search -> rebuild price index... Best Regards Expand Thank you! ❤️ Link to comment Share on other sites More sharing options...
Educreativos Posted March 9, 2024 Share Posted March 9, 2024 On 11/12/2019 at 4:13 AM, PCQUATRO said: Just go to modules manager faceted search -> rebuild price index... Best Regards Expand Thanks a lot ! 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