Claudia M Posted July 12, 2018 Share Posted July 12, 2018 I noticed in admin/store settings/ layout you can sort the product list by Product Code ASC of DESC. Is there anyway to offer these choices as well as the views or sales options for the latest products / featured products? Thanks in advance! Claudia Link to comment Share on other sites More sharing options...
havenswift-hosting Posted July 12, 2018 Share Posted July 12, 2018 Hi Claudia Our plugin does that and a whole lot more - see https://www.cubecart.com/extensions/plugins/enhanced-sorting for all the current features. As normal with all our plugins, you can try for a week before you buy and as you are hosted by us, happy to help with installation although it is pretty simple ! Ian Link to comment Share on other sites More sharing options...
Claudia M Posted July 12, 2018 Author Share Posted July 12, 2018 Thanks for that Ian, but I've used SemperFi's mod for years, but I'm trying to get away from editing core code ( plugin didn't work for my needs) and I don't really need all the extras. If I can sort the latest products by product code that's all I need. Link to comment Share on other sites More sharing options...
bsmither Posted July 12, 2018 Share Posted July 12, 2018 Please build a new Code Snippet. Use: Hook: class.cubecart.latest_products PHP Code: <?php if($latestProducts) { foreach($latestProducts as $product) { $latestProducts_sorted_by_PID[$product['product_id']] = $product; ksort($latestProducts_sorted_by_PID); $latestProducts = $latestProducts_sorted_by_PID; } } Link to comment Share on other sites More sharing options...
Claudia M Posted July 12, 2018 Author Share Posted July 12, 2018 Thank you so much!!! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.