Bug? Can't Edit address in cart

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
William M
Commander (CMDR)
Commander (CMDR)
Posts: 150
Joined: Sat Feb 14, 2009 9:40 am
Contact:

Bug? Can't Edit address in cart

Post by William M » Mon May 18, 2009 9:37 am

VERSION: 7.0.2
BUILD: 11659

Problem:
You cannot edit address - if - you enter a 'bad' zip code and go back to edit it.. If your zip code is correct, you CAN go back and edit.

I've got Fed Ex set as my only ship method and it works fine if the zip is accurate.


To reproduce:

Enter site annon.
Fill cart, go to checkout, enter wrong zip code so shipping isn't available. See img.
Select 'Edit' to go back to checkout page.
State and Country fields cannot be filled in, they don't accept any text. See img.



Bug?

William M
Commander (CMDR)
Commander (CMDR)
Posts: 150
Joined: Sat Feb 14, 2009 9:40 am
Contact:

Re: Bug? Can't Edit address in cart

Post by William M » Tue May 19, 2009 6:00 am

Anyone else seeing this happen?

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

Re: Bug? Can't Edit address in cart

Post by mazhar » Tue May 19, 2009 7:00 am

Confirmed, you can track progress on this issue here
http://bugs.ablecommerce.com/show_bug.cgi?id=8054

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

Re: Bug? Can't Edit address in cart

Post by mazhar » Tue May 19, 2009 7:33 am

You can try following quick workaround to fix it. Edit you OnePageCheckout.ascx.cs file and locate following code

Code: Select all

public LocalShipRateQuote(string encodedData)
        {
            string[] values = StringHelper.Split(encodedData, "~~");
            _ShipMethodId = AlwaysConvert.ToInt(values[0]);
            _Name = values[1];
            _FormattedRate = values[2];
        }
and make it look like

Code: Select all

[code]
public LocalShipRateQuote(string encodedData)
        {
            if (string.IsNullOrEmpty(encodedData))
                return;
            string[] values = StringHelper.Split(encodedData, "~~");
            _ShipMethodId = AlwaysConvert.ToInt(values[0]);
            _Name = values[1];
            _FormattedRate = values[2];
        }
[/code]

Post Reply