Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Editing Comments directly in checkout_confirmation


Guest

Recommended Posts

I would like to allow customers to edit their comments directly on the checkout_confirmation screen rather than having to return to checkout_shipping or checkout_payment. I think this is a better user experience in most cases, but I particularly want to do this so that I can bypass checkout_shipping and checkout_payment since in my case I always have all the information entered here already.

 

So I tried replacing the comment field

<td class="main"><?php echo nl2br(tep_output_string_protected($order->info['comments'])) . tep_draw_hidden_field('comments', $order->info['comments']); ?></td>

 

with:

<td><?php echo tep_draw_textarea_field('comments', 'soft', '60', '5'); ?></td>

 

and then tried to pick up the comment in checkout_process (or paypal_ipn in my case) with:

if (!tep_session_is_registered('comments')) tep_session_register('comments');

$comments = tep_db_prepare_input($HTTP_POST_VARS['comments']);

 

so that I can eventually write the comment to order_status_history.

 

But this doesn't work (the comment doesn't doesn't get picked up in checkout_process). Any clues anyone? Maybe it would be better to try to write the comment directly to order->info['comments'] but I have no idea at all how to do this.

 

Sorry if this has cropped up before but I really couldn't find a solution on the forum anywhere.

If you want to see what I am doing:

www.outfitez.com

Username: [email protected]

Password: testing

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...