'comments' not being passed to next page during checkout
Hi, the 'Comments' (from Step 1 of 3) are not being passed through the checkout process. The code when you land on the confirmation page (Step 3 of 3) is:
<?php
// always show comments
// if ($order->info['comments']) {
?>
<h2 id="checkoutConfirmDefaultHeadingComments"><?php echo HEADING_ORDER_COMMENTS; ?></h2>
<div class="buttonRow forward"><?php echo '<a href="' . $editShippingButtonLink . '">' . zen_image_button(BUTTON_IMAGE_EDIT_SMALL, BUTTON_EDIT_SMALL_ALT) . '</a>'; ?></div>
<div><?php echo (empty($order->info['comments']) ? NO_COMMENTS_TEXT : nl2br(zen_output_string_protected($order->info['comments'])) . zen_draw_hidden_field('comments', $order->info['comments'])); ?></div>
<br class="clearBoth" />
<?php
// }
?>
Is there something I need to do to switch it on?...
Re: 'comments' not being passed to next page during checkout
Re: 'comments' not being passed to next page during checkout
Re: 'comments' not being passed to next page during checkout
What I'm not understanding is how the comments are supposed to be passed forward; are they stored in the database from tpl_checkout_shipping_default.php and then accessed by tpl_checkout_confirmation_default.php? (Can a table be checked to see whether the comments have been stored?). Or is the info passed in a query string? Either way, the comments text is not being passed/stored... :huh:
Re: 'comments' not being passed to next page during checkout
One other thing, I recently installed Super Orders, would that have messed up anything?....
Re: 'comments' not being passed to next page during checkout
Quote:
Originally Posted by
warstormer
What I'm not understanding is how the comments are supposed to be passed forward; are they stored in the database from tpl_checkout_shipping_default.php and then accessed by tpl_checkout_confirmation_default.php? (Can a table be checked to see whether the comments have been stored?). Or is the info passed in a query string? Either way, the comments text is not being passed/stored... :huh:
Not much is making sense on this page, (then again I'm used to ASP..) The form on tpl_checkout_shipping_default.php has an action of: action="https://www.undergroundtoys.co.uk/fgstore/index.php?main_page=checkout_shipping", so it's looping back on itself, but I can't see what the page (or elements of the structure) is supposed to do with the data in this form. Any insight would be greatly appreciated..
Re: 'comments' not being passed to next page during checkout
Why did you remove the comments field from the checkout_payment page ?
Removing it there effectively sets the comments to blank when moving through the payment page to confirmation.
Re: 'comments' not being passed to next page during checkout
Quote:
Originally Posted by
DrByte
Why did you remove the comments field from the checkout_payment page ?
Removing it there effectively sets the comments to blank when moving through the payment page to confirmation.
Hi DrByte, thanks for the reply... if the comments field is gone then that's an unintentional hiccup... :blush: I'm going to check what's happened to that page (I'm admittedly not the only one working on this..)
Re: 'comments' not being passed to next page during checkout
Quote:
Originally Posted by
DrByte
Why did you remove the comments field from the checkout_payment page ?
Removing it there effectively sets the comments to blank when moving through the payment page to confirmation.
Quote:
Originally Posted by
warstormer
Hi DrByte, thanks for the reply... if the comments field is gone then that's an unintentional hiccup... :blush: I'm going to check what's happened to that page (I'm admittedly not the only one working on this..)
That was of course the problem, thanks again for pointing out the obvious! .... Now, can I have 'comments' on the checkout_payment page as a hidden field?
Re: 'comments' not being passed to next page during checkout
It would be easiest to hide it using the stylesheet rather than rewriting the PHP code.