1

i would like to set the country in guest checkout form for invoice und delivery adress hardcoded to default country x. And no other country should be able to getting selected. How do i managed this? Thanks already for support Greetz

0

The most easiest method to achieve this is to override billing.phtml and shipping.phtml in your custom module and then replace country select field with your single country dropdown for guest users.

<?php if(!Mage::getSingleton('customer/session')->isLoggedIn()): ?>
<select > 
    <option>Select Country</option> 
    <option selected="selected" name="YOUR_COUNTRY_VALUE" >YOUR_COUNTRY_NAME</option> 
</select>
<?php else: ?>
DEFAULT DROPDOWN CODE
<?php endif; ?>

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.