mohawk Posted February 2, 2009 Share Posted February 2, 2009 Hi :) Iv'e been working away at this for ages, maybe you can point me in the right direction. In checkout_shipping.php I have added a telephone text field to the form to capture the customers tel number who is making the order. My goal is to have the customer enter their number and then when the form is processed the database table customers with the field customers_telephone is updated with the new information about the customer. #I do not capture the telephone number of the customer when signing up because I dont require it until they make an order, I like to keep the sign ups very quick for the user. I'll show you what i have so far. I have really only managed to display the field checkout_shipping.php // prepare telephone if (tep_not_null($HTTP_POST_VARS['telephone'])) { $telephone = tep_db_prepare_input($HTTP_POST_VARS['telephone']); } and the html <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="main"><b><?php echo ENTRY_TELEPHONE_NUMBER; ?></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><?php echo tep_draw_input_field('telephone') . ' ' . (tep_not_null(ENTRY_TELEPHONE_NUMBER_TEXT) ? '<span class="inputRequirement">' . ENTRY_TELEPHONE_NUMBER_TEXT . '</span>': ''); ?></td> </tr> after that i am a clueless.. Is there code I implement on this page our the next to insert this value in to the database. Thanks for taking the time to read this all the best, Sean Link to comment Share on other sites More sharing options...
mohawk Posted February 2, 2009 Author Share Posted February 2, 2009 sorted. Took a while :) [CLOSED] Link to comment Share on other sites More sharing options...
dartecha Posted February 18, 2009 Share Posted February 18, 2009 sorted. Took a while :) [CLOSED] Hi Sean I am trying to do something very similar. Which files did you have to modify to do this? Cheers Chad Link to comment Share on other sites More sharing options...
mohawk Posted February 18, 2009 Author Share Posted February 18, 2009 Hi Sean I am trying to do something very similar. Which files did you have to modify to do this? Cheers Chad Hi Chad, I used checkout_shipping.php language file and include. checkout_process.php, In catalog/includes/classes/ i used order.php, and finally checkout_payment.php what did you have in mind? Link to comment Share on other sites More sharing options...
dartecha Posted February 22, 2009 Share Posted February 22, 2009 My Client wants me to add a few extra fields it the payment/shipping sections so customers can add information that the client can then see in the invoice section of the admin side of the oscommerse site. I added in the fields ok but nothing came through to the admin side to the site? I figured my solution was a little simplistic to begin with, hence my question about which files you manipulated. Would it be to much of a pain to ask which lines of code you had to manipulate? :) Cheers Chad Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.