Jump to content

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


tapukatata
 Share

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 1.6.1.12. I'm attached category.php

 

Anyone can help me to resolve that task?

Category.php

Edited by diyan1234 (see edit history)

Share this post


Link to post
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.

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More