BV Commerce Forum
»
BV Commerce Support
»
General Support
»
310 OPEN: Updating Shipping Charge is out of sync on one page checkout
Rank: Member
Joined: 7/28/2006(UTC) Posts: 79
|
When I change the shipping charge from one choice to another on the single page checkout, the summary order total does not change to reflect the current charge, then when I change back, the change that was missing appears but now the current shipping charge is the previous, it seems something is getting out of sync.
Anthony
|
|
|
|
Rank: Member
Joined: 8/17/2006(UTC) Posts: 681
|
|
|
|
|
|
Rank: Member
Joined: 3/1/2006(UTC) Posts: 1,142
|
Thanks, we are looking into it. |
Justin Etheredge Senior Software Engineer BVSoftware |
|
|
|
Rank: Member
Joined: 11/5/2003(UTC) Posts: 2,136
Was thanked: 1 time(s) in 1 post(s)
|
It works for me here. I am interested in this one because it is an Anthem callback that updates the shipping and I would like to help figure out if the issue is due to Anthem. Can someone with this problem send me a URL that I can use to reproduce the problem? Corneliu, I see that your live site only has one shipping method. Do you have a test site online? It may just be a timing thing. The callback may be taking 2 or 3 seconds to process. If you switch between shipping choices faster than that, it will look like the page has fallen behind. If this is the problem, then I can suggest two options: 1) display a message while the callback is processing (ala Google Mail), or 2) disable the radio buttons while the callback is processing. To display a message during the callback, add TextDuringCallBack="message" to BVModules\Controls\Shipping.ascx Code: [color=#0000ff> <</FONT>:]<FONT color=#ff0000>ID[/color][color=#0000ff>="ShippingRatesList"runat]<FONT color=#ff0000>AutoCallBack[/color][color=#0000ff>="True"TextDuringCallBack[/color]
To disable the radio buttons during the callback, add EnabledDuringCallBack="false" Code: [color=#0000ff> <:]<FONT color=#ff0000>ID[/color][color=#0000ff>="ShippingRatesList"runat]<FONT color=#ff0000>AutoCallBack[/color][color=#0000ff>="True"EnabledDuringCallBack<FONT]="false"> [/color]
You can add both if you want. |
|
|
|
|
Rank: Member
Joined: 8/17/2006(UTC) Posts: 681
|
Andy, I have one shipping method only for each country. In the Ship To address change the country and you will see the Shipping Method changed and the Total recalculated. They are our of sync. You don't have to do it fast. You can wait for the page to load and the issue is still there. Can you check again for me please?
Thanks, Corneliu. |
|
|
|
|
Rank: Member
Joined: 11/5/2003(UTC) Posts: 2,136
Was thanked: 1 time(s) in 1 post(s)
|
Corneliu, I see it now and I can reproduce it. I think you and Anthony are seeing different problems. As near as I can tell, yours only comes up if you have exactly one shipping method per country and they are different for each country. Lucky you...that's exactly what you have! I suggest you wait for a fix from Justin, et al. The fix below seems to work with your configuration (1 unique shipping method per country), but may not work with other configurations. If you can't wait, try deleting (or commenting out) these lines from the Page_Load method in BVModules/Controls/Shipping.ascx.vb Code: If Me.ShippingRatesList.Items.Count = 1 Then Dim o As Orders.Order = SessionManager.CurrentShoppingCart() Me.ShippingRatesList.SelectedIndex = 0 o.ApplyShippingRate(Me.FindSelectedRate(o)) Orders.Order.Update(o) RaiseEvent ShippingMethodChanged() End If
Then add almost the same lines to the LoadShippingMethodsForOrder method: Code: If Me.ShippingRatesList.Items.Count = 1 Then Me.ShippingRatesList.SelectedIndex = 0 o.ApplyShippingRate(Me.FindSelectedRate(o)) Orders.Order.Update(o) RaiseEvent ShippingMethodChanged() End If
I put them right after Me.ShippingRatesList.DataBind() |
|
|
|
|
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.