Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

What Am I Missing?


sowjourn

Recommended Posts

I tried copying the code suggested in "Credit Card Selection List", but I cannot get the drop down box to appear on my payment page. Can someone look at the code below to see what I am missing? I have put the suggested added code in bold. This code is from /catalog/includes/modules/payment/cc.php.

 

Thanks.

 

$today = getdate();

for ($i=$today['year']; $i < $today['year']+10; $i++) {

$expires_year[] = array('id' => strftime('%y',mktime(0,0,0,1,1,$i)), 'text' => strftime('%Y',mktime(0,0,0,1,1,$i)));

}

$cards_array[] = array('id' => '1','text' => 'MasterCard');

$cards_array[] = array('id' => '2','text' => 'Visa Card');

$cards_array[] = array('id' => '3','text' => 'American Express');

$cards_array[] = array('id' => '4','text' => 'Discovery');

 

$confirmation = array('fields' => array(array('title' => MODULE_PAYMENT_CC_TEXT_CREDIT_CARD_OWNER,

'field' => tep_draw_input_field('cc_owner', $order->billing['firstname'] . ' ' . $order->billing['lastname'])),

'field' => tep_draw_pull_down_menu('cards', $cards_array, $default = '1')),

array('title' => 'Card Type',

'field' => tep_draw_pull_down_menu('cards', $cards_array, $default = '1')),

array('title' => MODULE_PAYMENT_CC_TEXT_CREDIT_CARD_NUMBER,

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...