PDA

View Full Version : Displaying a newly added field


aviscat
1-1-05, 02:03 AM
I have added a field cc_verify to the orders table and it updates in the table but I cannot get it to display on /admin/orders.php page. I get this:

Credit Card Number: xxxxxxxxxxxxxxx
Credit Card Verify:
Credit Card Expires: 0107

I know the data is in the table. This is the code that should work but it isn't. Can anyone help?

<tr>
<td class="main"><?php echo ENTRY_CREDIT_CARD_NUMBER; ?></td>
<td class="main"><?php echo $order->info['cc_number']; ?></td>
</tr>
<tr>
<td class="main"><?php echo ENTRY_CREDIT_CARD_VERIFY; ?></td>
<td class="main"><?php echo $order->info['cc_verify']; ?></td>
</tr>
<tr>
<td class="main"><?php echo ENTRY_CREDIT_CARD_EXPIRES; ?></td>
<td class="main"><?php echo $order->info['cc_expires']; ?></td>
</tr>


--
Maria :confused:

stevel
1-1-05, 10:38 AM
Did you add the cc_verify field to the database query so that it gets into the info array?

aviscat
1-1-05, 01:00 PM
Did you add the cc_verify field to the database query so that it gets into the info array?

I am pretty sure I added cc_verify wherever cc_number existed. Can you tell me which query it would be and in which file? I went back to look at the database and while I don't remember deleting the record for my test order which had the cc_verify in it it is gone. My client may have deleted it. I will ask him later. I just figured out how to get the CCV showing on the customer side but still can't figure out the admin side. Please advise.

--
Maria

stevel
1-1-05, 01:41 PM
You would add this in admin/includes/classes/orders.php - the "query" function.

aviscat
1-1-05, 01:52 PM
You would add this in admin/includes/classes/orders.php - the "query" function.

Thanks. That worked. Now I am going to attempt to add another field I added into the orders screen. I may be back.

--
Maria