Disappearing shipping quote on shipping address form
Currently having this issue on 2.1.3.
var/debug.log (with debugging turned on for the UPS XML type) is showing that the full State name (Missouri) is being sent instead of its corresponding code (MO) for the destination address.
This isn't a problem with the non-XML UPS type, so it seems to definitely be a bug.
This seems to be related to this issue: https://github.com/magento/magento2/issues/6564
I ran into this issue, as well. saw the corresponding patch in the other issue #6564. However that didn't work either.
after digging in it looks like a typo of sorts in Magento_Customer/js/address-converter.js
changing
addressData.region = {
region_id: addressData.region_id,
region_code: addressData.region_code,
region: regionName
};
to (notice: regionId vs region_id)
addressData.region = {
region_id: addressData.regionId,
region_code: addressData.regionCode,
region: regionName
};
resolved it for now
Hello,
I confirm the issue. It fix the problem for me too.
Thanks!
The problem is NOT fixed for me. Very frustrated.
6 Months later still no fix...
To Recap I have updated the 3 files mentioned in 2 posts here:
address-converter.js
new-customer-address.js
shipping-rates-validator.js
Even after updating these files still UPS quotes show up for 2 seconds and then all disappear on the checkout page.
`
<ShipFrom>
<Address>
<PostalCode>32905</PostalCode>
<CountryCode>US</CountryCode>
**<StateProvinceCode>FL</StateProvinceCode>**
</Address>
</ShipFrom>
<Package>
<PackagingType><Code>00</Code></PackagingType>
<PackageWeight>
<UnitOfMeasurement><Code>LBS</Code></UnitOfMeasurement>
<Weight>2</Weight>
</PackageWeight>
</Package><RateInformation><NegotiatedRatesIndicator/></RateInformation> </Shipment>
',
'result' => '
) {"is_exception":false} []`
I also tried fix on #6875 and this solved nothing either.
`after digging in it looks like a typo of sorts in Magento_Customer/js/address-converter.js
changing
addressData.region = {
region_id: addressData.region_id,
region_code: addressData.region_code,
region: regionName
};
to (notice: regionId vs region_id)
addressData.region = {
region_id: addressData.regionId,
region_code: addressData.regionCode,
region: regionName
};
`
Isn't the problem related to a mistake in the UPS module rather then general shipping info files above? Right now using UPS XML with M2 is impossible. Why cannot anyone fix this? Its impossible to bring a site Live if using UPS.
@dhob68 Is this issue still actual? We were not able to reproduce it on ver. 2.1.7
Yes, still a problem on 2.1.7 Here is a link to a video that shows what happens. https://youtu.be/jPI2R7jlb7k
It is still broke. I have to use a 3rd party checkout because they do not seem to want to fix this bug. Almost 9 months now..sigh.
@dhob68 , could you please provide some more information?
Origin
Departure
UPS Settings
Hi, @dhob68. Thank you, we know about this problem and it has already been fixed, you will get a fix in the upcoming release.
Here is the pull request that solves the problem: https://github.com/magento/magento2/pull/9485.
Fixed in https://github.com/magento/magento2/pull/9485 Thank you @rachkulik
Most helpful comment
I ran into this issue, as well. saw the corresponding patch in the other issue #6564. However that didn't work either.
after digging in it looks like a typo of sorts in Magento_Customer/js/address-converter.js
changing
to (notice: regionId vs region_id)
resolved it for now