Jump to content

multiple addresses


webspinning

Recommended Posts

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

Link to comment
Share on other sites

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) {
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...