app\design\frontend\default\(my_skin_name)\template\checkout\onepage\shipping.phtml
Line 103, remove or comment out this line:
<php echo $this->getCountryHtmlSelect('shipping') ?>
and replace with:
<select name="shipping[country_id]" id="shipping:country_id" class="validate-select" title="Country" onchange="shipping.setSameAsBilling(false);">
<option value=""> </option>
<option value="US" selected="selected">United States</option>
</select>
<option value=""> </option>
<option value="US" selected="selected">United States</option>
</select>
Or your own set of countries you want to show. You have the valid 2 letter country abbreviation, Magento should take care of the rest on state/province selection automatically for you.
This helps but its a kind of hard work if we have let say 300 countries..
ReplyDeleteDo you any way with which we can check in collection that if we are in checkout page's shipping information section, then we can add some condition there so as to restrict some countries from the available country list of base magento..??
Need help!!
Yeah, I suggest you to download magento pdf invoice and magento social login extension
ReplyDeleteDo you know what is Magento 2. This is the new era of Magento E-commerce
ReplyDeleteI want to introduce to you Magento banner slider extension - the best extension ever
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteThis is a great post. I like this topic.This site has lots of advantage. It helps me in many ways.Thanks for posting this again.
ReplyDeletemagento development company in bangalore