Address Book Odd Behavior

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
User avatar
jsmits
Lieutenant (LT)
Lieutenant (LT)
Posts: 66
Joined: Wed Sep 30, 2009 11:57 am

Address Book Odd Behavior

Post by jsmits » Wed Mar 24, 2010 3:00 pm

In the MyAddressBookPage control, I have a situation where the first address in the AddressList Repeater brings up edit billing address when clicked. So what happens is the primary billing address and first address are switched whenever an address is saved.

Basically, the CommandArgument='<%#Eval("AddressId")%>' of the first item in the repeater always defaults to the PrimaryAddressId i.e the Billing Address.

Has anybody experienced this or know what could cause this to happen?

EDIT: This simply happens when the page loads. Somewhere Token.Instance.User.PrimaryAddressId is being toggled between the default billing address, and the first address in the addresslist. All I have to do is refresh the page.

User avatar
jsmits
Lieutenant (LT)
Lieutenant (LT)
Posts: 66
Joined: Wed Sep 30, 2009 11:57 am

Re: Address Book Odd Behavior

Post by jsmits » Thu Mar 25, 2010 8:51 am

Not sure of the cause, but the solution was to change from Three Column layout to just a left side bar. Some control in my right column was causing it.

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Address Book Odd Behavior

Post by mazhar » Thu Mar 25, 2010 12:13 pm

Can you provide some reproduction scenario for this. For example upon which page I need to set three column layout and what controls should be there on different sections plus how many addresses should be there?

User avatar
jsmits
Lieutenant (LT)
Lieutenant (LT)
Posts: 66
Joined: Wed Sep 30, 2009 11:57 am

Re: Address Book Odd Behavior

Post by jsmits » Thu Mar 25, 2010 12:22 pm

Members/MyAddressBook.aspx with the MyAddressBookPage control.

There needs to be at least 2 addresses.

BasketTotalSummary.ascx is what causes the issue. (I am not even sure I am using that as intended, but I use it to display the cart total in the right column.)

In my case, it is not a big deal as I don't really need the right column in the account area.

Post Reply