Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Order Comment Problems


ryanf

Recommended Posts

Posted

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.

 

order.gif

 

The addresses work, I just erased them since they are my address!

If I was crafty, this would be a funny signature.

Posted

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.

Posted

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.

Posted

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.

Posted
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.

 

order.gif

 

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.

Posted

ignore me i need to learn to read properly.

Your online success is Paramount.

Posted

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.

Posted

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.

Posted

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...