Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Default payment method selected
 
Jurjen de Vries
Jr. Member
 
Avatar
Total Posts:  21
Joined:  2009-01-08
Utrecht, Netherlands
 

When a customer is at step 6 of the onepage checkout and there is only one payment option available it is’nt selected by default. A lot of customers don’t understand that they have to select some, because there is only one.
Could you make it selected by default?

 
Magento Community Magento Community
Magento Community
Magento Community
 
visualvaccine
Jr. Member
 
Total Posts:  2
Joined:  2010-02-10
 

I’m having the same issue. Anyone have a fix for this? I get errors all the time from people not selecting a payment method. It definitely hurts the conversion ratio.

 
Magento Community Magento Community
Magento Community
Magento Community
 
MagePsycho
Mentor
 
Avatar
Total Posts:  1702
Joined:  2009-06-23
 

If there is only one Payment available then it should be checked by default.
You can see the real code of the core template: checkout/onepage/payment/methods.phtml

<dl class="sp-methods" id="checkout-payment-method-load">
<?php foreach ($this->getMethods() as $_method): $_code $_method->getCode() ?>
    
<dt>
    
<?php if( sizeof($this->getMethods()) > ): ?>
        
<input id="p_method_<?php echo $_code ?>" value="<?php echo $_code ?>" type="radio" name="payment[method]" title="<?php echo $this->htmlEscape($_method->getTitle()) ?>" onclick="payment.switchMethod('<?php echo $_code ?>')"<?php if($this->getSelectedMethodCode()==$_code): ?> checked="checked"<?php endif; ?> class="radio" />
    
<?php else: ?>
        
<span class="no-display"><input id="p_method_<?php echo $_code ?>" value="<?php echo $_code ?>" type="radio" name="payment[method]" checked="checked" class="radio" /></span>
    
<?php endif; ?>
        
<label for="p_method_<?php echo $_code ?>"><?php echo $this->getMethodTitle($_method?> <?php echo $this->getMethodLabelAfterHtml($_method?></label>
    </
dt>
    
<?php if ($html $this->getPaymentMethodFormHtml($_method)): ?>
    
<dd>
        
<?php echo $html?>
    
</dd>
    
<?php endif; ?>
<?php 
endforeach; ?>
</dl>
<
script type="text/javascript">
//<![CDATA[
<?php echo $this->getChildChildHtml('scripts'); ?>
payment
.init();
//]]>
</script>

Note the else portion:

<?php else: ?>
        
<span class="no-display"><input id="p_method_<?php echo $_code ?>" value="<?php echo $_code ?>" type="radio" name="payment[method]" checked="checked" class="radio" /></span>
    
<?php endif; ?>
 
Magento Community Magento Community
Magento Community
Magento Community
 
jyotiloppy
Jr. Member
 
Total Posts:  7
Joined:  2012-08-13
 

I want select option instead of radio button could someone help me..............

 
Magento Community Magento Community
Magento Community
Magento Community
 
kevando
Jr. Member
 
Avatar
Total Posts:  20
Joined:  2011-06-27
 

<span class="no-display"><input id="p_method_<?php echo $_code ?>" value="<?php echo $_code ?>" type="radio" name="payment[method]" checked="checked" class="radio" /></span>

The code posted above creates the radio button, so you’ll need to change this to the select element:
Drop Downs from W3 Schools

I don’t have the exact code for this, but it should be rather straight forward. Just need to keep in mind that many of the options that get selected trigger something new to display. For example, when credit card gets selected it displays the input fields for name,cc#, and expr date

 
Magento Community Magento Community
Magento Community
Magento Community
 
innoexts
Sr. Member
 
Avatar
Total Posts:  124
Joined:  2011-02-10
 

Hello,

‘Default payment method’ feature is available in two our extensions: Customer Groups Manager and Zones Manager.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top