Magento develop branch
develop branch.Enter an address.
The shipping methods should update and list rates for UPS.
Shipping methods still shows "Sorry, no quotes are available for this order at this time"
Note, a related issue on the current 2.0.4 release: I installed my module that provides custom shipping methods and rates. As long as I have one of the built in Magento shipping methods enabled (such as flat rate) then the Ajax calls work fine. Changing the zip code triggers the Ajax call to to update the shipping methods and rates, as expected. But if I have all the built in Magento shipping methods disabled then the Ajax calls stop working completely.
As noted above, in the develop branch the Ajax calls don't work even with built-in shipping methods enabled.
I Also Having same issue when i change country in section "Estimate Shipping and Tax" .
Ajax is not working
Thanks
Hi @jim5359
We have MAGETWO-50504 ticket created regarding this issue already
Thank you
Timeline on getting a fix into a release? Causing issues for many SIs trying to push Magento2 live. It's pretty fundamental that it does an ajax callback when the address changes.
bug shows as fixed in mainline. Trying to see if this will go with the next patch.
@jim5359 Closing this issue as the fix had been delivered to the develop branch with the commit cca6a48.
Please feel free to reopen if the issue persists.
I just tested the latest develop branch and this is still not fixed. It's fixed specifically for the built in methods, like UPS. But for custom shipping methods (added via extension) it is still not triggering the update.
Also having the same issue..
cc @elenleonova @antboiko I reopened this issue as it seems it was not fully fixed (not fixed for custom shipping methods)
@jim5359 @Khaleel
Please check if your custom shipping module follows this doc: http://devdocs.magento.com/guides/v2.0/howdoi/checkout/checkout_carrier.html
If carrier module does not provide the list of required fields – rates may not update.
@ishakhsuvarov I had the same problem and this solves it, however there is a case where the shipping methods are not updated.
In my case the carrier is dependent on postcode but if you enter a postcode that is not considered valid it will trigger the "_Provided Zip/Postal Code seems to be invalid. Example: 12345. If you believe it is the right one you can ignore this notice._" warning and the shipping methods are then not updated.
@domeglic Thanks for reporting, we will look into it and update you with the result.
Anyone facing this issue - there is a workaround: https://github.com/magento/magento2/issues/5490
In brief, shipping methods don't update when using one custom shipping method. If you add in a built in Magento method (eg Free Shipping for orders over a very large amount), then shipping methods update when address fields change.
@jim5359, thank you for your report.
We were not able to reproduce this issue by following the steps you provided. If you'd like to update it, please reopen the issue.
We tested the issue on 2.1.9
my magento ver. is 2.1.8, still same issue coming, please review this once.
can confirm this for magento 2.2.6
custom shipping methods are only updated when there is at least one magento default shipping method enabled
adding a validator as described here does not help
For anyone finding this having trouble with a custom shipping method, it could be the wrong carrier code in checkout_index_index.xml. This sounds like the issue @mattf10 and @dwirt had above:
From the Magento doc: "You must add
eg. we discovered the DHL Express Rates module has the carrier code 'dhlexpress', but in the XML, it had:
<item name="shipping-rates-validation" xsi:type="array">
<item name="children" xsi:type="array">
<item name="**dhl-express**-rates-validation" xsi:type="array">
<item name="component" xsi:type="string">Dhl_ExpressRates/js/view/register-shipping-rates-validator</item>
</item>
</item>
</item>
This validator was being removed, because the code 'dhl-express' was not the same as the carrier code 'dhlexpress'. This happens in module-checkout/Block/Checkout/LayoutProcessor.php - it retrives a list of active carriers (where the config path carrier//active is set) and removes any validators whose code is not listed.
Hope this helps someone else... v1.0.3 of DHL Express is affected, I will submit a patch.
Most helpful comment
Anyone facing this issue - there is a workaround: https://github.com/magento/magento2/issues/5490
In brief, shipping methods don't update when using one custom shipping method. If you add in a built in Magento method (eg Free Shipping for orders over a very large amount), then shipping methods update when address fields change.