De Angel Net Posted July 7, 2013 Share Posted July 7, 2013 (edited) I want to hide out of stock product from category and it can be done by not active the product but the product become cannot be search. I want the out ofd stock product still can be search but when in category it is show in the last page. Since the product is more than 10000 and the out of stock more than 2000 right now. It is not good for customer review when seeing lots of new product already out of stock. So is it posibble to show the out of stock product in the last page? Anyone can help where should i edit it? And what should i edit? Edited July 21, 2013 by De Angel Net (see edit history) Link to comment Share on other sites More sharing options...
PSfever.com Posted July 7, 2013 Share Posted July 7, 2013 (edited) Hi. please post here the URL, I want to check your product-sort.tpl to see whether you'll have all the options available. If yes, there should be no problem, as Prestashop in default can sort products that are in stock first and those that are not can be shown as last. You'll just need to go into backoffice, preferences, products. Scroll down to pagination. Sort by - Quantity. And select decreasing in the drop-down list below. That should be it! (I suppose you have PS 1.5.X version) Edited July 7, 2013 by PSfever.com (see edit history) Link to comment Share on other sites More sharing options...
sadlyblue Posted July 8, 2013 Share Posted July 8, 2013 Hi, I want to do something a little different, to order by name, but get the out of stock in last. I tried to override the category function getProducts to first only return the products with stock, then i query again to get those with no stock. But it didn't worked. It didn't changed a thing... not sure this is the corect funtion to override... Link to comment Share on other sites More sharing options...
De Angel Net Posted July 21, 2013 Author Share Posted July 21, 2013 Hi. please post here the URL, I want to check your product-sort.tpl to see whether you'll have all the options available. If yes, there should be no problem, as Prestashop in default can sort products that are in stock first and those that are not can be shown as last. You'll just need to go into backoffice, preferences, products. Scroll down to pagination. Sort by - Quantity. And select decreasing in the drop-down list below. That should be it! (I suppose you have PS 1.5.X version) Thanks. It is solved. Using this class overide : http://www.prestashop.com/forums/topic/201563-solvedsort-products-by-price-and-put-out-of-stock-products-at-the-end-of-list/ Link to comment Share on other sites More sharing options...
vekia Posted July 21, 2013 Share Posted July 21, 2013 Thanks. It is solved. Using this class overide : http://www.prestasho...he-end-of-list/ thanks for the information and for the url to the solution im convinced that it will be really helpfull for other merchants here is there any way to test your website with this override? regards Link to comment Share on other sites More sharing options...
De Angel Net Posted July 21, 2013 Author Share Posted July 21, 2013 (edited) thanks for the information and for the url to the solution im convinced that it will be really helpfull for other merchants here is there any way to test your website with this override? regards Yes. This in one site that already used the overide category.php class http://www.koreanreseller.com PS : It is only in Indonesian Edited July 21, 2013 by De Angel Net (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted July 21, 2013 Share Posted July 21, 2013 no worries, just wanted to test it btw. you've got very nice shop, good job! i like the hoover effect when my mouse is over the product Link to comment Share on other sites More sharing options...
winresh24 Posted September 8, 2016 Share Posted September 8, 2016 hi do you know how to do it in prestashop 1.6? Link to comment Share on other sites More sharing options...
winresh24 Posted September 9, 2016 Share Posted September 9, 2016 Anyone please? Link to comment Share on other sites More sharing options...
StefArts Posted October 11, 2016 Share Posted October 11, 2016 To solve it on Prestashop 1.6: Prefences -> Products -> Scroll to Pagination and set: Default order by : Product Quantity & Default order method : Descending I hope it will help. Rgds 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