-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Description
Magento 2.2.0 When using table rate shipping the shipping cost shown initially on the one page checkout defaults to US shipping table rate price irrespective of the default country being set to United Kingdom.
Our store is based in the UK and has a domestic table rate shipping cost of £5.20, the default country is set to 'United Kingdom' one page checkout correctly sets the country in the dropdown, however the initial postage price shown is £18.20 our USA table rate price, initially showing the incorrect (higher price) is off putting to customers.
Preconditions
- Magento CE 2.2.0
- PHP 7.0.24
- Nginx 1.10.2
- tablerates.csv example
Country,Region/State,Zip/Postal Code,Weight (and above),Shipping Price
USA,*,*,0,1
GBR,*,*,0,2
*,*,*,0,3
Steps to reproduce
- Set Default country to "United Kingdom".
- Setup table rate shipping.
- Add item to cart.
- Proceed to one page checkout.
- Default country is set automatically to "United Kingdom" as expected.
- The initial shipping price displayed is that of the USA but should be the UK.
- Deselect then reselect "United Kingdom" the shipping price refreshes correctly.
Expected result
- Initial (table rate) shipping price shown on one page checkout should be the shipping price of the "default country" or it should not display any shipping price until a valid country is selected.
Actual result
-
Despite the default country (United Kingdom) being correctly set in the one page checkout country dropdown, the Initial shipping price shown incorrectly defaults to the USA table rate shipping price.
-
Deselecting then reselecting the country (United Kingdom) refreshes the price correctly.