When checking out as a guest, it skips shipping, so the customer doesn't get charged freight at all. How can I correctly configure this?
Solved! Go to Solution.
Hi @bigbob2 ,
Please check below points
1. Make sure, you are using product which have some weight (not virtual).
2. You dont have any extension for restriction of shipping methods.
3. Please check your developer console for any error using f12.
Hope this helps you!
Problem Solved! Click Kudos & Accept as Solution!
Hi @bigbob2
Please have a look at this class Magento\Quote\Model\Quote.
In this class you have this method isVirtual(), if the return result is true, Magento will skip the Shipping Step.
You can override this method or create a "after plugin" (recommended) to change the return value as you want.
Kindly refer below link :
https://devdocs.magento.com/guides/v2.3/extension-dev-guide/plugins.html
Problem Solved? Please click on 'Kudos' & Accept as Solution!
Hi @bigbob2 ,
Please check below points
1. Make sure, you are using product which have some weight (not virtual).
2. You dont have any extension for restriction of shipping methods.
3. Please check your developer console for any error using f12.
Hope this helps you!
Problem Solved! Click Kudos & Accept as Solution!
You were right, some of the products had changed to virtual products (I don't know how) and the one I was testing happened to be one that had changed. Now I just need to figure out how about 30 of 500 products, somehow changed to virtual.
Thanks.