- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Remove customer country
Hello
I am having troubles removing the option of customer country on the checkout page. The backaend solution of selecting the countries does not work for some reason, and i have been fiddling with the billing.phtml and shipping.phtl in /app/design/frontend/base/default/template/checkout/onepage
It still requires country. I only sell domestically, Finland, so it is a completely useless value for me.
To add to this, although it remained a required value, I managed to remove the dropdown menu for it some time ago and I dont remember where that was..
Im running 1.9.1.0
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Remove customer country
You need to select the country as default and need to hide that field from phtml file.
You can find that phtml file from the Template Path.
200+ Premium Magento 2 Extensions Need help? Hire Magento Developer
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Remove customer country
I have set the default country in backend, and commented out all i could find about countries in the billing and shipping files.
I am by no means an expert, but it seems that there is something somewhere that is overriding this as it has no impact wether country is commented out or not.
Any ideas and input is greatly appreciated
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Remove customer country
No need to set default from Backend.
But in the phtml file select the country you want to make default.
<select > <option>-- country --</option> <option selected="selected" name="in" >India</option> </select>
In the code above, I've put India as a default country.
And after this you need to hide this select option.
200+ Premium Magento 2 Extensions Need help? Hire Magento Developer