Basically I would like to show selected countries in the shipping and billing forms. Is there a correct way to achieve this?
I intend to use following JS:
jQuery('select[name=country_id]')
.find('option')
.remove()
.end()
.append('<option value=""> </option><option data-title="United Kingdom" value="GB">United Kingdom</option>');
It works fine, but I'm curious is there any other correct method available to do this?
Best Answer
You can achieve this from admin panel. There is no need of writing any code.
Go to Admin Panel :
There you can select whatever countries or state you want to be showed.