How to apply shipping charge for guest user in magento 2?
-
06-03-2021 - |
Question
In Magento 2 I have configured shipping charge of 50 INR for below 500 INR purchase and for above 500 INR purchase shipping is free. But I need to customize there is no free shipping for guest user. How can I achieve this?
Pas de solution correcte
Autres conseils
Inside this class vendor/magento/module-offline-shipping/Model/Carrier/Tablerate.php
there is a method for price calculation with the name **collectRates**
.
In this method, Magento will calculate the price based on the conditions that you provided. Override the function and change the calculation according to you.
Licencié sous: CC-BY-SA avec attribution
Non affilié à magento.stackexchange