Mian Waqas Posted April 12, 2023 Share Posted April 12, 2023 hi, On category List page i want to show out of stock products at very end irrespective of the sorting on category page. so that in any case the out of stock products shall always show at the end at the pagination. Regards Link to comment Share on other sites More sharing options...
AddWeb Solution Posted April 13, 2023 Share Posted April 13, 2023 Hi @Mian Waqas, Kindly check this documentation : https://webkul.com/blog/prestashop-hide-or-disable-attributes-with-stock/#:~:text=Under Global Configuration%2C the admin,combinations instead of hiding them. Once done with the above, filter the out of stock products with the specific value and display it in respective page. Link to comment Share on other sites More sharing options...
Mian Waqas Posted April 13, 2023 Author Share Posted April 13, 2023 1 minute ago, AddWeb Solution said: Hi @Mian Waqas, Kindly check this documentation : https://webkul.com/blog/prestashop-hide-or-disable-attributes-with-stock/#:~:text=Under Global Configuration%2C the admin,combinations instead of hiding them. Once done with the above, filter the out of stock products with the specific value and display it in respective page. Thanks for the reply But i am sorry AddWeb, This not i had asked for, please read my message again. Regards Link to comment Share on other sites More sharing options...
AddWeb Solution Posted April 13, 2023 Share Posted April 13, 2023 (edited) Got it. Edited April 13, 2023 by AddWeb Solution More info (see edit history) Link to comment Share on other sites More sharing options...
AddWeb Solution Posted April 13, 2023 Share Posted April 13, 2023 @Mian Waqas, Goto Shop Parameters -> Product Settings -> scroll down to Pagination section, Change Default order by value to `Product Quantity` and Default order method value to `Descending` (Ref img) Save it once you made above changes. I hope this will help. Link to comment Share on other sites More sharing options...
Mian Waqas Posted April 13, 2023 Author Share Posted April 13, 2023 @AddWeb Solution well i know about this, but as i said in initial message the out of stock products shall always remain at the end, irrespective of any sorting order. please try to understand my question first. Link to comment Share on other sites More sharing options...
AddWeb Solution Posted April 13, 2023 Share Posted April 13, 2023 I'm just trying to figure out the solutions using which you can move the out-of-stock products to the end. Sorry, I didn't particularly notice irrespective of any sorting order. I will also work on this. If you got any solutions, kindly update here. Thanks! Link to comment Share on other sites More sharing options...
Mediacom87 Posted April 13, 2023 Share Posted April 13, 2023 Il y a 8 heures, Mian Waqas a dit : so that in any case the out of stock products shall always show at the end at the pagination. Hi, If you are using the blocklayered module offered natively by PrestaShop, then you just have to activate this option in the configuration of this module. Link to comment Share on other sites More sharing options...
Mian Waqas Posted April 13, 2023 Author Share Posted April 13, 2023 1 hour ago, Mediacom87 said: Hi, If you are using the blocklayered module offered natively by PrestaShop, then you just have to activate this option in the configuration of this module. Blocklayered is outdated for PS 1.7+ and it does not have this setting which i am asking, please read the initial message again and try to understand what i want to achive. Thanks Link to comment Share on other sites More sharing options...
Mediacom87 Posted April 13, 2023 Share Posted April 13, 2023 il y a 4 minutes, Mian Waqas a dit : Blocklayered is outdated for PS 1.7+ and it does not have this setting which i am asking, please read the initial message again and try to understand what i want to achive. Sorry, I didn't give the new name of the module and I'm sorry, I'm sorry for hurting your feelings. So the module is precisely called ps_facetedsearch and it offers the option to display at the end of the list the products out of stock, because I know how to read the few configuration fields of this module I left the screenshot in French so that you have a little challenge to make the correspondence in your own installation 😉 1 Link to comment Share on other sites More sharing options...
Mian Waqas Posted April 13, 2023 Author Share Posted April 13, 2023 19 minutes ago, Mediacom87 said: Sorry, I didn't give the new name of the module and I'm sorry, I'm sorry for hurting your feelings. I needed the code for this, but thanks anyways. i can get the code from this module. thanks for pointing this out. Kind Regards Link to comment Share on other sites More sharing options...
Mediacom87 Posted April 13, 2023 Share Posted April 13, 2023 il y a une heure, Mian Waqas a dit : I needed the code for this, but thanks anyways. i can get the code from this module. You never asked for any code, just stated a need and I brought you the solution proposed natively by PrestaShop. Link to comment Share on other sites More sharing options...
George_Mebz Posted April 13, 2023 Share Posted April 13, 2023 (edited) Hello, To achieve your desired outcome, you can follow the following steps: Retrieve all the products in the category. Separate the out of stock products from the in-stock products. Sort the in-stock products based on the sorting criteria chosen by the user. Combine the in-stock products and out of stock products lists. Display the combined list on the category page with out of stock products at the end. By following these steps, you can ensure that the out of stock products always appear at the end of the pagination on the category page. Edited April 13, 2023 by George_Mebz Further Elaborative Refrence (see edit history) Link to comment Share on other sites More sharing options...
Mian Waqas Posted April 13, 2023 Author Share Posted April 13, 2023 3 hours ago, Mediacom87 said: You never asked for any code, just stated a need and I brought you the solution proposed natively by PrestaShop. i thank you already with a cup as well 👍 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