JerseyG Posted October 14, 2013 Share Posted October 14, 2013 (edited) Hi Version 1.5.4.1 This was an issue I had in version 1.4.9 and "Shacker" was able to kindly help me resolve the issue. What I am trying to achieve is when you have the tags option active and click on a tag I want the results displayed in alphabetical order. The older resolution of amending classes/tag.php is not applicable now. Any help would be appreciated. G Edited October 14, 2013 by JerseyG (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted October 14, 2013 Share Posted October 14, 2013 in classes/search.php you've got function: public static function searchTag($id_lang, $tag, $count = false, $pageNumber = 0, $pageSize = 10, $orderBy = false, $orderWay = false, with code somewhere inside it: ORDER BY position DESC'.($orderBy ? ', '.$orderBy : '').($orderWay ? ' '.$orderWay : '').' change position DESC to pl.name ASC ORDER BY pl.name ASC'.($orderBy ? ', '.$orderBy : '').($orderWay ? ' '.$orderWay : '').' 1 Link to comment Share on other sites More sharing options...
JerseyG Posted October 14, 2013 Author Share Posted October 14, 2013 Hi Vekia Thank you for your prompt reply and working solution. Items now showing as I want them. Kind Regards G Link to comment Share on other sites More sharing options...
arlys Posted May 20, 2014 Share Posted May 20, 2014 I'm working on prestashop 1.6 an it doesn't work properly, now it shows in alphabetical order, but per category, so i have something like category 1: A B C Category 2: A B C and it doesn't works for me... any help? Link to comment Share on other sites More sharing options...
Recommended Posts