cancel
Showing results for 
Search instead for 
Did you mean: 

Remove customer country

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

3 REPLIES

Re: Remove customer country

@ballvant

 

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.

Found something useful, please give "Kudos" or "Accept as Solution" for Token of Appreciation.
Free Magento Extensions : https://magecomp.com/free-magento-extensions.html

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

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. 

Found something useful, please give "Kudos" or "Accept as Solution" for Token of Appreciation.
Free Magento Extensions : https://magecomp.com/free-magento-extensions.html