Guest Posted October 3, 2006 Posted October 3, 2006 I am in need of allowing the customer to specify an order # (Reference #, PO #, etc) along side an order with whatever payment method they choose. This is not a Purchase Order payment. Kinda like making a comment but I want it to specifically be saved in a separate field. I've added the fields to the orders table, I've even got it asking the question in checkout_payment.php. The information that is input does not make it to the database. I'm in search of the missing link. Here is what I added to checkout_payment.php: </tr> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="main"><b><?php echo 'Purchase Order Information' ?></b></td> </tr> </table></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="main"><?php echo 'Purchase Order #:'; ?><br> <?php echo tep_draw_input_field('ip_order_no', $HTTP_POST_VARS['ip_order_no']);?></td> </tr> <tr> <td class="main"><?php echo 'Purchase Order Contact:'; ?><br> <?php echo tep_draw_input_field('ip_requested_by', $HTTP_POST_VARS['ip_requested_by']);?></td> </tr> <tr> <td class="main"><?php echo 'Purchase Order Comment:'; ?><br> <?php echo tep_draw_input_field('ip_contact_person', $HTTP_POST_VARS['ip_contact_person'], '', '', false);?></td> </tr> </table></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> How do I get those variables posted to be saved to the corresponding field in the orders table, of th same names? These are the same fields from Institutional Purchase Order 1.4 ??? :) I've added the variables to the globals area in the corresponding classes file too, no dice.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.