cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2 restrict shipping method for specific states

Magento 2 restrict shipping method for specific states

I want to restrict flat rate shipping method $7 for some specific states(Hawaii , Peru)

Shipping Method

$7.00GroundShipping & Handling
$13.002nd DayShipping & Handling
$20.00Next DayShipping & Handling
5 REPLIES 5

Re: Magento 2 restrict shipping method for specific states

Hello @akshaykamba454,

 

I kindly recommend you to see here Magento2 Shipping Restriction Extension since maybe it will get resolve your problem on shipping restrictions.

 


If my answer is helpful, then hit kudos and accept as solution.

 

Best regards
Madhuresan

Re: Magento 2 restrict shipping method for specific states

@madhuresan_ramanan thanks for the reply

I need to achieve this programmatically can you help me with this

 

Re: Magento 2 restrict shipping method for specific states

Hello @akshaykamba454 ,

please check following link ,this might help you,

 

https://magento.stackexchange.com/a/318633/72475

 

Thank you

Re: Magento 2 restrict shipping method for specific states

Or You can check with following extension just your reference,

 

https://github.com/vrajeshpatel4u/v4u-magento2-check-delivery-availability

Thank you.

Re: Magento 2 restrict shipping method for specific states

@smita_kagwade  thanks for your reply

Can please help with file paths for above code