0

I want to show shipping method based on ZipCodes.

Like if zipcode isn't match with my list than shipping method doesn't need to show.

How can i achieve that ?

4
  • have u tried so far?
    – Amit Bera
    Sep 4, 2017 at 6:44
  • @AmitBera, I am confused is it really possible or not ? But thinking about to create sample module and check with in_array(). Sep 4, 2017 at 7:18
  • Yes, it possible..Are want to feature of existing shipping method?
    – Amit Bera
    Sep 4, 2017 at 7:32
  • I have developed custom module when order placed through observer it will call API and send order details, but that shipping carrier have some restricted to some zip code. So whenever checkout is processing need to validate their zip codes with entered by customer. Sep 4, 2017 at 7:35

1 Answer 1

2

You can set shipping method based on Zip/Post code by Magento-2 default table rates shipping method.enter image description here

You can add you Zip/Postal code which you want to apply shipping rates, shipping rates apply based on define in this table.

You can read complete guide here : Table Rate Shipping

3
  • Thanks for responding but this also not work. Sep 4, 2017 at 7:27
  • What is issue with this? Sep 4, 2017 at 7:28
  • it will work based on weigh or destinationt, but i need to disable whole shipping method, if entered zip code isn't present in my list. Sep 4, 2017 at 7:32

Your Answer

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

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