0

I want to show shipping method base on total product weight.

I have 2 Shipping method A and B.

If total shipping weight equal or less than 150. Then will show shipping method A

If total shipping weight greater than 150. Then will show shipping method B.

Anyone can explain how to apply shipping method condition total product weight wise?

  • What about using max package weight?? – HoangHieu Dec 5 '18 at 6:56
  • Yes, apply the condition on total shipping weight. – Masud Shaikh Dec 5 '18 at 8:10
1

In collectRates function of specific shipping method, add logic to check weight of cart item.

For example, in collectRates method of shipping method A, add following logic. // Add logic to calculate cartweight if ($cartweight > 150 ) { return false; }

  • Thanks for the answer to my question. If you any method through cart price rules by admin panel. please tell me. – Masud Shaikh Dec 5 '18 at 6:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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