I am using the Magento 2.3.1 for my store. I just only enabled Table Rate shipping method with Price Vs Destination.
After that I exported the sample format & updated country, zone values with shipping amount. Finally imported & saved the configuration and cleared cache.
But when I add to the product & checked the Cart & Checkout page but still the table rate value as 0 even I have selected proper Country & State.
Here is my imported csv file.
Can anyone let me know what's the issue?
Best Answer
I finally figured out the issue.
The code to check the shipping method to show is in the template file vendor/magento/module-checkout/view/frontend/web/template/shipping.html
See Below code
Above code review rate avaliable or not . If have then show shipping method and rate
The available rates is getting from the view vendor/magento/module-checkout/view/frontend/web/js/view/shipping.js
/** * Shipping Method View */ rates: shippingService.getShippingRates(),
The logic Magento 2 to set shipping rates is beyond this single post, but you can check more details in
Focus on lines related to
My case, there was an extension that overrides the shipping view of default Magento
it is overridden by another extension
And in the code of that extension, it checks one more condition to show only shipping methods it allows, so the default Flat Rate returned but it is not in the allowed shipping method, then nothing showed!