Pages

Magento - billing countries different from shipping countries

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>

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.

6 comments:

  1. This helps but its a kind of hard work if we have let say 300 countries..
    Do 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!!

    ReplyDelete
  2. Do you know what is Magento 2. This is the new era of Magento E-commerce

    ReplyDelete
  3. I want to introduce to you Magento banner slider extension - the best extension ever

    ReplyDelete
  4. This comment has been removed by the author.

    ReplyDelete
  5. This 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.
    magento development company in bangalore 

    ReplyDelete