Paul Sarstiuc Posted September 10, 2010 Share Posted September 10, 2010 Hello,Is there a way to have a checkbox to show only products in stock?Maybe a filter?http://www.pav-moto.ro/new_filter.pngIf any has a good idea how to show only products in stock, please do tell me!Thank you in advance,Paul. Link to comment Share on other sites More sharing options...
prestamodules.net Posted September 11, 2010 Share Posted September 11, 2010 Hello, in the file classes/Category.php in the fonction getProducts()Change this row :WHERE cp.`id_category` = '.intval($this->id).($active ? ' AND p.`active` = 1' : '').'by :WHERE p.quantity > 0 AND cp.`id_category` = '.intval($this->id).($active ? ' AND p.`active` = 1' : '').'it's in row 292 and 309 Link to comment Share on other sites More sharing options...
Paul Sarstiuc Posted September 11, 2010 Author Share Posted September 11, 2010 Thank you,But if I do this, manually, then the clients will never see the products that are out-of-order..Is there a way to put a checkbox to let users select if they want to see all the products or only in-stock products (with default set to "see all products")?Thank you,Paul. Link to comment Share on other sites More sharing options...
shake Posted September 17, 2010 Share Posted September 17, 2010 +1 on this, but slightly different i think, i'd like to filter stock products and out of stock product within a category at a time, not just the whole store(like when you go into the category you can order by price/stock etc..) similar to that but a button that can filter the out of stock item Link to comment Share on other sites More sharing options...
Paul Sarstiuc Posted September 17, 2010 Author Share Posted September 17, 2010 This is what I want too! But no one replied (or I did not explained correctly)... Link to comment Share on other sites More sharing options...
bure Posted July 31, 2011 Share Posted July 31, 2011 And I want checkbox like in http://www.chainreactioncycles.com/Offers.aspx too. (See in left top corner). Hope for answer 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