Jump to content

Addresses not being listed properly (listings on top of each other)


Recommended Posts

For some reason, if a customer has multiple addresses listed, they are appearing on top of each other (see the screen shot) instead of one beneath the order.

I think the fix needs to be made in the addresses.tpl file somewhere here, but I'm not sure:

{l s='My addresses'}

{l s='Configure your billing and delivery addresses that will be preselected by default when you make an order. You can also add additional addresses, which can be useful for sending gifts or receiving your order at the office.'}

{if $addresses}

{l s='Your addresses are listed below.'}

{l s='Be sure to update them if they have changed.'}

   {foreach from=$addresses item=address name=myLoop}

{$address.alias}
       {if $address.company}{$address.company}{/if}
{$address.firstname} {$address.lastname}
{$address.address1}
       {if $address.address2}{$address.address2}{/if}
{$address.postcode} {$address.city}
{$address.country}{if isset($address.state)} ({$address.state}){/if}
       {if $address.phone}{$address.phone}{/if}
       {if $address.phone_mobile}{$address.phone_mobile}{/if}
{l s='Update'}
{l s='Delete'}




   {/foreach}



{else}

{l s='No addresses available.'} {l s='add a new one!'}
{/if}



Any ideas? If it helps at all, here is the CSS for the addresses

/* adresses */
div.addresses {
   /*border: 1px solid #d0d3d8;*/
   /*background: #dcd094 url('../img/form_bg.jpg') repeat-x top left;*/
   padding: 0.6em;
   position: relative;
   width: 565px;
   margin-left: 75px;
}
div.addresses h3 { margin: 0 }
div.addresses p.checkbox input {
   margin-top: 0!important;
   margin-top: -3px
}
ul.address {
   background-color: white;
   float: left;
   list-style-image: none;
   list-style-position: outside;
   list-style-type: none;
   margin-left: 8px;
   margin-bottom: 1em;
   position: relative;
   width: 268px;
   border: 1px solid #000;
}
ul.address li {
   padding-left: 1.4em;
   margin-top: 0.6em
}
li.address_title {
   margin-top: 0!important;
   background-color: #d0d1d5;
   color: #374853;
   font-weight: bold;
   height: 24px;
   font-size: 1.2em;
   line-height: 1.9em
}
ul.item li.address_title { background-image: url('../img/address_alias.jpg'); color:#FAFD03; }
ul.alternate_item li.address_title { background-image: url('../img/address_alias.jpg'); color:#FAFD03; }
li.address_name,
li.address_update a,
li.address_delete a { color: #000000; }
li.address_name,
li.address_company { font-weight: bold }
li.address_update,
li.address_delete {
   background: transparent url('../img/bullet_myaccount.gif') no-repeat 0 0.5em!important;
   background: transparent url('../img/bullet_myaccount.gif') no-repeat 0 0.4em;
   margin-left: 1.4em
}
#center_column .address_add { padding: 1em 0 }

35710_3HXFOSgfibdIpzPv0Ism_t

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...