cancel
Showing results for 
Search instead for 
Did you mean: 

Modify store free shipping source from countries to specific states?

Modify store free shipping source from countries to specific states?

Hi All. My name is Mudita. 

 

I was trying to modify free shipping applicable from countries to specific country state. I was looking to code in Magento 2.3.1 and found some clue:

 

- A dropdown source comes from Country.php located in vendor/magento/module-directory/Model/Config/Source/Country.php.

 

Is there any elegant way to modify free shipping source from countries to specific country states?

 

Any help would be appreciated.


Thank you.

 

4 REPLIES 4

Re: Modify store free shipping source from countries to specific states?

Hi @mudita_wijaya,

You don't need to modify code to achieve this.

You can do it using shopping cart price rule. PFA for the reference.

Screenshot from 2019-06-13 14-00-56.png
for more info you can follow following link :
https://docs.magento.com/m2/ce/user_guide/marketing/price-rules-cart-free-shipping.html

Re: Modify store free shipping source from countries to specific states?

Hi @Vimal Kumar,

 

Thank you for your reply. I have read and tried the link you give. Unfortunately, the states I want to add in the condition section are not shown in the list.

 

Could you please advice another advice about, how can I add more states from a country I want into the condition?

 

Thank you in advance.

Re: Modify store free shipping source from countries to specific states?

You can add multiple condition as you want.

You can add region, postal code, country, state etc. .

Screenshot from 2019-06-13 15-21-13.png

Re: Modify store free shipping source from countries to specific states?

Do you have States enabled for the country you're trying to create this rule for? You can enable states for additional countries by following these instructions: https://docs.magento.com/m2/ce/user_guide/stores/state-options.html