Page 1 of 1

Bug? Can't Edit address in cart

Posted: Mon May 18, 2009 9:37 am
by William M
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?

Re: Bug? Can't Edit address in cart

Posted: Tue May 19, 2009 6:00 am
by William M
Anyone else seeing this happen?

Re: Bug? Can't Edit address in cart

Posted: Tue May 19, 2009 7:00 am
by mazhar
Confirmed, you can track progress on this issue here
http://bugs.ablecommerce.com/show_bug.cgi?id=8054

Re: Bug? Can't Edit address in cart

Posted: Tue May 19, 2009 7:33 am
by mazhar
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]