BV Commerce Forum
»
BV Commerce Support
»
General Support
»
Editing zip code on checkout page fails to change shipping on invoice
Rank: Member
Joined: 3/3/2006(UTC) Posts: 1,737
|
Note BOTH images below and compare the Fed Ex rate at the top and the invoice amount in the totals column. If a shopper enters a state and zip and has to correct ONLY the zip, a mis-match can occur. Apparently, clicking out of the state and zip feilds trigger different events. To reproduce: 1. Enter an address (LA, CA 90210), click into the phone field and get matching shipping costs. 2. Re-enter the zip code (for NJ, 07980) but leave the state alone, and click into the phone field - the shipping costs don't match. Editing the zip code should trigger a new shipping quiry just as it does when editing the state. MitchA attached the following image(s): shipping-zip-mismatch-1.jpg (43kb) downloaded 7 time(s).You cannot view/download attachments. Try to login or register. |
Optimists invent airplanes, Pessimists buy parachutes. |
|
|
|
Rank: Member
Joined: 11/5/2003(UTC) Posts: 2,136
Was thanked: 1 time(s) in 1 post(s)
|
Hello Mitch, This is definitely a bug. It only occurs if you have exactly one applicable shipping method for the country and region. One way to fix the bug is to add some code to the Shipping control (BVModules\Controls\Shipping.ascx.vb) that forces it to recalculate the shipping totals each time the checkout page asks for a list of shipping methods. Find the LoadShippingMethodsForOrder method in Shipping.ascx.vb. Then find this code: Code: If ShippingRatesList.Items.Count = 0 Then ShippingMessage.Text = Content.SiteTerms.GetTerm("NoValidShippingMethods") End If
Add this code right below the code shown above: Code: [color=red>If] Me.ShippingRatesList.SelectedIndex = 0 o.ApplyShippingRate(Me.FindSelectedRate(o)) Orders.Order.Update(o) RaiseEvent ShippingMethodChanged() End If [/color]
I've attached a copy of the modified file. File Attachment(s): Shipping.ascx.vb (9kb) downloaded 2 time(s).You cannot view/download attachments. Try to login or register. |
|
|
|
|
Rank: Member
Joined: 2/21/2007(UTC) Posts: 1,113
|
Mitch,
That looks correct to me -- I don't think the state has anything to do with the shipping rates, only the zip, so if the 90210 zip is farther away from you, then it would be higher. Where the state is used by FedEx is for Express Only -- in fact on my site if the zip and state do not match, no Express options are shown. |
|
|
|
|
Rank: Member
Joined: 3/3/2006(UTC) Posts: 1,737
|
Andy's the MAN! I thought this one would be in your zone. WOW, what a specific set of parameters. Send it to BVC - It catches an edit in the zip, works fine.
Joe, if a client mis-types a ship-to zip and then goes back to change it without changing the state also.... The Fed Ex Ground rate and the invoice rate don't match.
This actually happened to a client on my third sale after launching the site!!! The sale was completed, but I got an email explaining how he came accross the problem. I'd never have thought to test this. |
Optimists invent airplanes, Pessimists buy parachutes. |
|
|
|
Rank: Member
Joined: 11/5/2003(UTC) Posts: 2,136
Was thanked: 1 time(s) in 1 post(s)
|
Joe,
I think the problem Mitch was reporting is that the shipping charge in the upper right ($12.63 - FedEx) does not match the shipping charge in the lower right (Shipping: $9.98). I could only reproduce this mismatch when there is exactly one shipping method...so it probably would not occur on your site.
The code I suggested fixes that issue. |
|
|
|
|
Rank: Member
Joined: 2/21/2007(UTC) Posts: 1,113
|
that makes sense -- I didn't catch the two different amounts, though I thought it strange that FedEx Express shipments are affected by state/zip code mismatches and Ground is not. |
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.