Guest cntgifts Posted December 8, 2005 Share Posted December 8, 2005 i would liek to change my popular produucts box to lsit my best sellers is it possible and how would it be done Quote Link to comment Share on other sites More sharing options...
goober999 Posted December 8, 2005 Share Posted December 8, 2005 i would liek to change my popular produucts box to lsit my best sellers is it possible and how would it be done Yes, it's possible! in includes/boxes/popularProducts.inc.php find this line of code $popularProds = $db->select("SELECT name, productId FROM ".$glob['dbprefix']."CubeCart_inventory ORDER BY popularity DESC",$config['noPopularBoxItems']); And replace it with this line $popularProds = $db->select("SELECT name, productId, sum(quantity) as sales FROM ".$glob['dbprefix']."CubeCart_order_inv GROUP BY productId ORDER BY sales DESC",$config['noPopularBoxItems']); That's it Good luck Thanks /Goober Quote Link to comment Share on other sites More sharing options...
Guest cntgifts Posted December 9, 2005 Share Posted December 9, 2005 nice thanks alot 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.