Jump to content

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


Recommended Posts

My products are sort by position inside category but I want to put those products with quantity equal to zero at the very end of the list and when the products are available again to regain the old position inside category.


I am using Prestashop I'm attached category.php


Anyone can help me to resolve that task?


Edited by diyan1234 (see edit history)
Link to comment
Share on other sites

I'd say you are in the wrong file. Category.php is to display the categories. Your file might be classes/Product.php and there the function getProducts.  Furthermore if you want to have differen sort criteries, you needed to adapat product-sort.tpl in your themes directory as well.

Link to comment
Share on other sites

  • 1 year 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...