Q:

hide radio button under checkout payment method

we are using 5 Payment methods with payment methods codes are "code1, code2 , code3, code4 and code5".
for site purpose we are using code1 , code2, code3 payment methods.
we have mobile app for our site, for that purpose,
we are using code4 , code5 payment methods.
So code4 and code5 payment methods should not display in site. so i removed those payment methods name. but code4 and code5 payment methods RADIO BUTTONS are still displaying in the site.

in methods.phtml i used this script to remove those radio buttons
foreach ($methods as $_method):
$_code = $_method->getCode();
if($_code == 'innobyte_payu_lite_cc' or $_code == 'cashondelivery'{continue;} //this line
?>

but those Radio buttons are not hiding. If we disabled the payment method code "code3" than those radio buttons will hide. but we want the payment method code3 in our site.
How to hide those radio buttons with payment method code3 enabled in site.

A:

Try this:
app/design/frontend/your_packge/your_theme/template/checkout/onepage/payment/methods.phtml

Add bellow code above file after code :foreach ($methods as $_method):
        $_code = $_method->getCode();
?> 
Add code in file: 
<?php if(in_array($_code,array('cashondelivery','innobyte_payu_lite_cc'))):?>
    <?php continue;?>
<?php endif;?>

