bwtechno Posted April 4, 2014 Share Posted April 4, 2014 Hi, I have added the excellent mod by Brian, as per this post at 'the other place' - http://www.cubecartforums.org/index.php?showtopic=18555 I am banging my head against this one, as the store owner wants to sort by the latest products added into the category and then by the stock level. So what he is trying to achieve is to make sure the out of stock products are down at the bottom. By way of explanation, in the market they trade, customers want to see sold items, a lot of the watches are "one-offs" as they can then check details and see what items they have had in stock. Thanks Simon Quote Link to comment Share on other sites More sharing options...
bwtechno Posted April 11, 2014 Author Share Posted April 11, 2014 Hi, Just in case anyone uses CubeCart in the same manner, I managed to solve this, installed Brian's mod, set all my categories to sort by 'stock_level' DESC. So I then have all the sold products at the end of each category and then under this line: $order[$order_column] = $order_direction; Added: $order['date_added'] = $order_direction; So the latest products added appear first. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.