We only allow 1 country in our Magento store. Now we load on a custom module the country selector, but this does not select the only country as default selection.

It currently show a select box with the following values. But we want to select NL as a default country. How can we achieve that?

<select name="billing[country_id]" id="billing:country" class="validate-select" title="Land">
    <option value="" selected="selected"></option>
    <option value="NL">Nederland</option>

Our code:

        <td class="p5 input-select">
            <label for="<?php echo $this->getAddedFieldName(); ?>:country"><?php echo Mage::helper('sales')->__('Country') ?></label>
            <?php echo $this->getFieldRequiredSpan(true); ?>
            <?php echo Mage::getBlockSingleton('directory/data')->getCountryHtmlSelect(
                $parent->getValue('country_id', $formType),
                $this->getAddedFieldName() . ':country',

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.