cancel
Showing results for 
Search instead for 
Did you mean: 

When checking out as a guest, it skips shipping, so the customer doesn't get charged freight at all

SOLVED

When checking out as a guest, it skips shipping, so the customer doesn't get charged freight at all

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?

1 ACCEPTED SOLUTION

Accepted Solutions

Re: When checking out as a guest, it skips shipping, so the customer doesn't get charged freight at

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.

https://magento.stackexchange.com/questions/167894/magento-2-shipping-method-not-working-sorry-no-qu...

 

Hope this helps you!

Problem Solved! Click Kudos & Accept as Solution!

View solution in original post

3 REPLIES 3

Re: When checking out as a guest, it skips shipping, so the customer doesn't get charged freight at

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!

Problem solved? Click Accept as Solution!

Re: When checking out as a guest, it skips shipping, so the customer doesn't get charged freight at

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.

https://magento.stackexchange.com/questions/167894/magento-2-shipping-method-not-working-sorry-no-qu...

 

Hope this helps you!

Problem Solved! Click Kudos & Accept as Solution!

Re: When checking out as a guest, it skips shipping, so the customer doesn't get charged freight at

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.