How to apply shipping charge for guest user in magento 2?
-
06-03-2021 - |
문제
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?
올바른 솔루션이 없습니다
다른 팁
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.
제휴하지 않습니다 magento.stackexchange