sean1688 Posted January 21, 2015 Share Posted January 21, 2015 the sort function does not seem to work on search result, is this a bug or is it normal? our website is http://www.mastechpowersupply.com, if you search for 30V, there are a lot of results. it will be nice to sort the results, and the website does provide that "sort" function, but if you try to sort it, it does not seem to do anything? thank you in advance for your help. Quote Link to comment Share on other sites More sharing options...
bsmither Posted January 21, 2015 Share Posted January 21, 2015 Please feel free to mention the exact version of CubeCart you are running. It helps to let one know what line numbers to edit. There is an existing bug (https://github.com/cubecart/v5.2.14/issues/147) that messes with the ability to get a sort to happen. In the file /classes/catalogue.class.php, near line 173, try this edit: Was: // Sorting $GLOBALS['smarty']->assign('SORTING', ($sorting = $this->displaySort((isset($_GET['cat_id']) && $_GET['cat_id'] == 'sale'))) ? $sorting : false); Now: // Sorting $GLOBALS['smarty']->assign('SORTING', ($sorting = $this->displaySort(!isset($_GET['cat_id']))) ? $sorting : false); Hopefully, this fixes your observation. Quote Link to comment Share on other sites More sharing options...
sean1688 Posted January 21, 2015 Author Share Posted January 21, 2015 Thanks for your help! we are using 5.2.16 . I did put in the change, it does not seem to make any difference. you can try it on our site, just search for 30V and then try to sort it. Quote Link to comment Share on other sites More sharing options...
bsmither Posted January 21, 2015 Share Posted January 21, 2015 Please also clear the cache (admin, Maintenance, Rebuild tab, Clear cache and Clear SQL cache). There may be cached queries that need expunged. Quote Link to comment Share on other sites More sharing options...
bsmither Posted January 21, 2015 Share Posted January 21, 2015 If this does not work, a more deeper analysis will be required. Quote Link to comment Share on other sites More sharing options...
sean1688 Posted January 22, 2015 Author Share Posted January 22, 2015 nothing seems to happen when I tried to sort 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.