webspinning Posted July 12, 2014 Share Posted July 12, 2014 I have a customer with CC5 who has multiple customer addresses for one customer. They would like to display the address list in alphabetical order when checking out to make finding the address easier. Anyone got an idea how to sort the address list from the check out pages please? Thanks Quote Link to comment Share on other sites More sharing options...
bsmither Posted July 12, 2014 Share Posted July 12, 2014 Please try this edit in the file /classes/user.class.php, near line 441: Was: if (($addresses = $GLOBALS['db']->select('CubeCart_addressbook', false, $where, 'billing DESC')) !== false) { Now: if (($addresses = $GLOBALS['db']->select('CubeCart_addressbook', false, $where, 'line1 DESC')) !== false) { Quote Link to comment Share on other sites More sharing options...
webspinning Posted July 13, 2014 Author Share Posted July 13, 2014 So I actually ended up with if (($addresses = $GLOBALS['db']->select('CubeCart_addressbook', false, $where, 'description ASC')) !== false) { which worked perfectly because of the way they save the address, I was looking in completely the wrong place previously - thank you, saved me a considerable amount of time. 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.