0

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?

3
  • Are you using Magento default shipping module or Custom shipping module ? Commented Jul 9, 2019 at 6:10
  • I am using the default shipping module.
    – Arul
    Commented Jul 9, 2019 at 6:17
  • which default shipping method are you using ? Commented Jul 9, 2019 at 6:46

1 Answer 1

1

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.

2
  • I am using Flat shipping rate method
    – Arul
    Commented Jul 9, 2019 at 7:16
  • 1
    override this class for price modification "vendor/magento/module-offline-shipping/Model/Carrier/Flatrate.php" Commented Jul 9, 2019 at 7:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.