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?
No correct solution
OTHER TIPS
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.
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange