Shipping Prices Not Updated on New / Changed Address

Posted By jcosmo Fri 29 Jan 2016
Add to Favorites0
Author Message
jcosmo
 Posted Fri 29 Jan 2016
Supreme Being

Supreme Being - (10,801 reputation)Supreme Being - (10,801 reputation)Supreme Being - (10,801 reputation)Supreme Being - (10,801 reputation)Supreme Being - (10,801 reputation)Supreme Being - (10,801 reputation)Supreme Being - (10,801 reputation)Supreme Being - (10,801 reputation)Supreme Being - (10,801 reputation)

Group: Forum Members
Last Active: Tue 16 Feb 2016
Posts: 19, Visits: 117
I ran into an issue where when customers add a new shipping address or change an existing shipping address, the shipping prices were not updating. They would update anytime a Country is changed, but not if the Country selection remained the same.

This is a problem because shipping rates can vary greatly within the same country (US state).

I corrected this by changing line 250 of the CheckoutAddressPopup.ascx.vb file to always call the ContryUpdated event with a new or modified address. I was able to remove the country change detection on line 243 as well.

Ideally there should probably be a separate event for AddressUpdated apart from CountryUpdated since I'm sure CountryUpdated was originally implemented for tax rates. But since shipping rates are also working off this event, it does need to be called whenever there is an address change.
Paul Marked As Answer
 Posted Sat 6 Feb 2016
große Käse

große Käse - (522,218 reputation)große Käse - (522,218 reputation)große Käse - (522,218 reputation)große Käse - (522,218 reputation)große Käse - (522,218 reputation)große Käse - (522,218 reputation)große Käse - (522,218 reputation)große Käse - (522,218 reputation)große Käse - (522,218 reputation)

Group: Administrators
Last Active: Tue 10 Sep 2024
Posts: 807, Visits: 2,748
CountryUpdated was to refresh all calculations, tax as well as shipping. I think the safest approach is to just run country updated on any update to an address. There isn't a huge overhead to doing this as it's not something that's going to be happening all the time.

--
If my post solves your issue, can you 'Mark as Answer' so it's easier for other users to find in future.

If you would like to be informed of new features, new releases, developments and occasional special bonuses, please sign up to our mailing list: http://bit.ly/19sKMZb

Similar Topics

Expand / Collapse

Reading This Topic

Expand / Collapse

Back To Top