Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Aug 2007
    Posts
    120
    Plugin Contributions
    0

    Default '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. #2
    Join Date
    Jun 2003
    Posts
    33,715
    Plugin Contributions
    0

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

    The URL?
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  3. #3
    Join Date
    Aug 2007
    Posts
    120
    Plugin Contributions
    0

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


  4. #4
    Join Date
    Aug 2007
    Posts
    120
    Plugin Contributions
    0

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

  5. #5
    Join Date
    Aug 2007
    Posts
    120
    Plugin Contributions
    0

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

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

  6. #6
    Join Date
    Aug 2007
    Posts
    120
    Plugin Contributions
    0

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

    Quote Originally Posted by warstormer View Post
    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...
    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..

  7. #7
    Join Date
    Jan 2004
    Posts
    66,419
    Blog Entries
    7
    Plugin Contributions
    277

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

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  8. #8
    Join Date
    Aug 2007
    Posts
    120
    Plugin Contributions
    0

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

    Quote Originally Posted by DrByte View Post
    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... I'm going to check what's happened to that page (I'm admittedly not the only one working on this..)

  9. #9
    Join Date
    Aug 2007
    Posts
    120
    Plugin Contributions
    0

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

    Quote Originally Posted by DrByte View Post
    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 View Post
    Hi DrByte, thanks for the reply... if the comments field is gone then that's an unintentional hiccup... 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?

  10. #10
    Join Date
    Jan 2004
    Posts
    66,419
    Blog Entries
    7
    Plugin Contributions
    277

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

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 7
    Last Post: 2 Aug 2015, 02:30 PM
  2. v139h Handling fee for USPS is not being added during checkout
    By canemasters in forum Built-in Shipping and Payment Modules
    Replies: 11
    Last Post: 11 Mar 2012, 03:29 PM
  3. Shipping Address not being passed correctly
    By toyseller in forum PayPal Express Checkout support
    Replies: 1
    Last Post: 7 Sep 2009, 04:52 PM
  4. Quantities not being passed to shipping modules
    By heph_long in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 17 Jul 2009, 03:58 AM
  5. Order confirmation not being passed on.
    By audiografix in forum Managing Customers and Orders
    Replies: 0
    Last Post: 23 Feb 2008, 10:13 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR