Change Country dropdown to Read only Text field in checkout page


I am trying to change country dropdown to readonly text field in checkout page. PFA for clear idea

I try to do it on changing the file billing.phtml but it does not reflects in my website.

Can any one please help me on this.


2 answers

Profile photo of Sherlock 0.00 $tone January 25, 2013

Hi soamz,

I think a dropdown does not has a readonly attribute, it’s the disabled attribute instead, you can open the file of app\code\core\Mage\Checkout\Block\Onepage\Abstract .php there you look for this code

PHP Code:

  if ($type === 'shipping') {

and add right below it this code

PHP Code:

  if($type === "billing"){


I hope that would help !

Profile photo of soam jena 0.00 $tone January 25, 2013

Hi Sherlock,

Thanks for your reply.

I found some other solution and it works


You can disable the Persistent Shopping Cart feature from:

System -> Configuration -> CUSTOMERS -> Persistent Shopping Cart -> General Options -> Enable Persistence = No

If the above doesn’t work then you can directly disable the module by editing the file: app/etc/modules/Mage_Persistent.xml by setting active = false.



This question is now closed

Written By