wkdwich
03-05-2010, 10:08 PM
Need help getting the CVV into adiinm/edit_orders.php it shows everywhere it it is supposed to..
Is this correct??
ORIGINAL
'cc_expires' => tep_db_prepare_input($_POST['update_info_cc_expires']),
'last_modified' => 'now()');
Change to:
'cc_expires' => tep_db_prepare_input($_POST['update_info_cc_expires']),
'cc_cvv' => tep_db_prepare_input($_POST['update_info_cc_cvv']),
'last_modified' => 'now()');
and
ORIGINAL:
<tr>
<td class="main"><?php echo ENTRY_CREDIT_CARD_EXPIRES; ?></td>
<td class="main"><input name="update_info_cc_expires" size="4" value="<?php echo $order->info['cc_expires']; ?>" <?php if (ORDER_EDITOR_USE_AJAX == 'true') { ?>onChange="updateOrdersField('cc_expires', encodeURIComponent(this.value))"<?php } ?>></td>
</tr>
Add After:
<tr>
<td class="main"><?php echo ENTRY_CREDIT_CARD_CVV_NUMBER; ?></td>
<td class="main"><input name="update_info_cc_cvv" size="4" value="<?php echo $order->info['cc_cvv']; ?>" <?php if (ORDER_EDITOR_USE_AJAX == 'true') { ?>onChange="updateOrdersField('cc_cvv', encodeURIComponent(this.value))"<?php } ?>></td>
</tr>
those are the only 2 places mention of the credit card exp date appear in this file.. so I am assuming thats the only 2 places I need to make that change/addition
Is this correct??
ORIGINAL
'cc_expires' => tep_db_prepare_input($_POST['update_info_cc_expires']),
'last_modified' => 'now()');
Change to:
'cc_expires' => tep_db_prepare_input($_POST['update_info_cc_expires']),
'cc_cvv' => tep_db_prepare_input($_POST['update_info_cc_cvv']),
'last_modified' => 'now()');
and
ORIGINAL:
<tr>
<td class="main"><?php echo ENTRY_CREDIT_CARD_EXPIRES; ?></td>
<td class="main"><input name="update_info_cc_expires" size="4" value="<?php echo $order->info['cc_expires']; ?>" <?php if (ORDER_EDITOR_USE_AJAX == 'true') { ?>onChange="updateOrdersField('cc_expires', encodeURIComponent(this.value))"<?php } ?>></td>
</tr>
Add After:
<tr>
<td class="main"><?php echo ENTRY_CREDIT_CARD_CVV_NUMBER; ?></td>
<td class="main"><input name="update_info_cc_cvv" size="4" value="<?php echo $order->info['cc_cvv']; ?>" <?php if (ORDER_EDITOR_USE_AJAX == 'true') { ?>onChange="updateOrdersField('cc_cvv', encodeURIComponent(this.value))"<?php } ?>></td>
</tr>
those are the only 2 places mention of the credit card exp date appear in this file.. so I am assuming thats the only 2 places I need to make that change/addition