Hi,
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.
Thanks
2 answers
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') {
$select->setExtraParams('onchange="if(window.shipping)shipping.setSameAsBilling(false);"');
}
and add right below it this code
PHP Code:
if($type === "billing"){
$select->setExtraParams('disabled');
}
I hope that would help !
Hi Sherlock,
Thanks for your reply.
I found some other solution and it works
Solution:-
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.
Thanks
This question is now closed