Jump to content

[SOLVED] How to make out of stock product show in the last page


De Angel Net

Recommended Posts

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 by De Angel Net (see edit history)
Link to comment
Share on other sites

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 by PSfever.com (see edit history)
Link to comment
Share on other sites

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

  • 2 weeks later...

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

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 by De Angel Net (see edit history)
Link to comment
Share on other sites

  • 3 years later...
  • 1 month later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...