- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
for more info you can follow following link :
https://docs.magento.com/m2/ce/user_guide/marketing/price-rules-cart-free-shipping.html
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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. .
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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