Zen Cart Logo
Forums / General Questions / 'comments' not being passed to next page during checkout

'comments' not being passed to next page during checkout

Locked

Views: 1,852

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
2 Oct 2007, 4:11 PM
#1
warstormer avatar

warstormer

Zen Follower

Join Date:
Aug 2007
Posts:
120
Plugin Contributions:
0

'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?...

2 Oct 2007, 4:37 PM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,611
Plugin Contributions:
0

Re: 'comments' not being passed to next page during checkout

The URL?

3 Oct 2007, 10:30 AM
#4
warstormer avatar

warstormer

Zen Follower

Join Date:
Aug 2007
Posts:
120
Plugin Contributions:
0

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:

3 Oct 2007, 12:42 PM
#5
warstormer avatar

warstormer

Zen Follower

Join Date:
Aug 2007
Posts:
120
Plugin Contributions:
0

Re: 'comments' not being passed to next page during checkout

One other thing, I recently installed Super Orders, would that have messed up anything?....

3 Oct 2007, 1:42 PM
#6
warstormer avatar

warstormer

Zen Follower

Join Date:
Aug 2007
Posts:
120
Plugin Contributions:
0

Re: 'comments' not being passed to next page during checkout

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

3 Oct 2007, 6:46 PM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

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.

3 Oct 2007, 8:06 PM
#8
warstormer avatar

warstormer

Zen Follower

Join Date:
Aug 2007
Posts:
120
Plugin Contributions:
0

Re: 'comments' not being passed to next page during checkout

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

3 Oct 2007, 8:16 PM
#9
warstormer avatar

warstormer

Zen Follower

Join Date:
Aug 2007
Posts:
120
Plugin Contributions:
0

Re: 'comments' not being passed to next page during checkout

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.

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?

3 Oct 2007, 9:02 PM
#10
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

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.

4 Oct 2007, 10:52 AM
#11
warstormer avatar

warstormer

Zen Follower

Join Date:
Aug 2007
Posts:
120
Plugin Contributions:
0

Re: 'comments' not being passed to next page during checkout

Yep, see what you mean... Thanks for the suggestion. :smile: