ryanf Posted April 27, 2004 Posted April 27, 2004 Hey I am changing the order checkout to go directly from the shopping cart to order confirmation. Since I only sell to retailers, they will not be able to change their mailing address or delivery address. I got the default addresses to appear correctly but I can not get the comments field to be added to the order. I can't seem to find the code that does it. Anyone know what I have to add to order_confirmation? Here is a screenshot of my new checkout procedure if your interested. The addresses work, I just erased them since they are my address! If I was crafty, this would be a funny signature.
ryanf Posted May 3, 2004 Author Posted May 3, 2004 Hey, I put this problem off for a while hoping for an anwser from someone here but now I have to get it done again. In the checkout_confirmation the form code is this: <?php if (isset($$payment->form_action_url)) { $form_action_url = $$payment->form_action_url; } else { $form_action_url = tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL'); } echo tep_draw_form('checkout_confirmation', $form_action_url, 'post'); if (is_array($payment_modules->modules)) { echo $payment_modules->process_button(); } echo tep_image_submit('button_confirm_order.gif', IMAGE_BUTTON_CONFIRM_ORDER) . '</form>' . "\n"; ?> And I copied this in from checkout_shipping and put it in before the header call if (!tep_session_is_registered('comments')) tep_session_register('comments'); if (tep_not_null($HTTP_POST_VARS['comments'])) { $comments = tep_db_prepare_input($HTTP_POST_VARS['comments']); } Anyone know how I can get this done? Thanks a bunch If I was crafty, this would be a funny signature.
ryanf Posted May 3, 2004 Author Posted May 3, 2004 Ok, I still can't get a handle on this one. It seems the pages, checkout_payment, checkout_shipping, and checkout_confirmation all use a different method for sending the info on to the next page or database. This is one of the last things holding me back. If I was crafty, this would be a funny signature.
ryanf Posted May 11, 2004 Author Posted May 11, 2004 Ok, I still cant get this working. Do I have to rewrite the whole page to get the comments added? I don't want to hurt the security of the page. Since the code for the page is long I made an html site that shows it if someone can please take a look at it. Here is the code: http://www.abdulky.com/help.html If I was crafty, this would be a funny signature.
♥yesudo Posted May 11, 2004 Posted May 11, 2004 Hey I am changing the order checkout to go directly from the shopping cart to order confirmation. Since I only sell to retailers, they will not be able to change their mailing address or delivery address. I got the default addresses to appear correctly but I can not get the comments field to be added to the order. I can't seem to find the code that does it. Anyone know what I have to add to order_confirmation? Here is a screenshot of my new checkout procedure if your interested. The addresses work, I just erased them since they are my address! post the code you have for this page. Your online success is Paramount.
♥yesudo Posted May 11, 2004 Posted May 11, 2004 ignore me i need to learn to read properly. Your online success is Paramount.
♥yesudo Posted May 11, 2004 Posted May 11, 2004 when you click confirm order what happens ? look at checkout_process.php which is where everything is put to the DB and should sit in between confirmation and the finished page. Your online success is Paramount.
ryanf Posted May 11, 2004 Author Posted May 11, 2004 I tried adding the code in the form to put the comments in the database but nothing happened. When I click comfirm order, everything else is in the database and acts as it should, just not comments If I was crafty, this would be a funny signature.
ryanf Posted May 12, 2004 Author Posted May 12, 2004 ok, I looked at checkout_process and see where it adds the comments to the database. It uses this line: 'comments' => $order->info['comments']); I don't think it is pulling anything from the comments box though. How do I get that to happen? If I was crafty, this would be a funny signature.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.