Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Aug 2005
    Posts
    336
    Plugin Contributions
    0

    Default special instructions on checkout pages

    I'd like to have the special instructions on the shipping checkout page, but remove it from the payment checkout page. I tried to do that by just deleting it from the payment page, but now the instructions aren't going through to the confirmation page.

    How can I remove it while pushing those comments from the first screen all the way to the last checkout page?

    Here is the code in question from the payment checkout page:
    <fieldset>
    <legend><?php echo TABLE_HEADING_COMMENTS; ?></legend>
    <?php echo zen_draw_textarea_field('comments', '45', '3'); ?>
    </fieldset>
    Isn't there a way to keep it on the page, but make it hidden? Hmmm...
    Currently using ZEN CART v. 1.3.6

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: special instructions on checkout pages

    You might look at how comments are transferred from page to page and clone the method ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Aug 2005
    Posts
    336
    Plugin Contributions
    0

    Default Re: special instructions on checkout pages

    Geez, you're fast!! And rather cryptic... but, I like it. Alright, I'll do some more homework.
    Currently using ZEN CART v. 1.3.6

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: special instructions on checkout pages

    Peek in the
    /pages/checkout_shipping
    /pages/checkout_payment
    /pages/checkout_confirmation

    Then compare the tpl_ files for those pages ...

    Note how $_SESSION['comments'] and $comments are utlized ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #5
    Join Date
    Aug 2005
    Posts
    336
    Plugin Contributions
    0

    Default Re: special instructions on checkout pages

    I've given up trying to impress people with my coding skills. My goal now is just not to reveal myself as a dumbs#*&. That goal might be falling to the wayside soon enough. I really thought I was an intelligent person before I tried to learn about programming. But, I digress...

    It seems to work opposite of the way I expect it should. I'm obviously missing something fundamental. In the tpl_payment and tpl_shipping template files, there's the same zen_draw_text_field. No difference.

    In the shipping header, we have:
    Code:
      if (isset($_SESSION['comments'])) {
        $comments = $_SESSION['comments'];
      }
    // process the selected shipping method
      if ( isset($_POST['action']) && ($_POST['action'] == 'process') ) {
        if (zen_not_null($_POST['comments'])) {
          $_SESSION['comments'] = zen_db_prepare_input($_POST['comments']);
        }
        $comments = $_SESSION['comments'];
    In the payment header, there's just:
    Code:
    $comments = $_SESSION['comments'];
    And in the confirmation header, it's:
    Code:
    if (isset($_POST['payment'])) $_SESSION['payment'] = $_POST['payment'];
    $_SESSION['comments'] = zen_db_prepare_input($_POST['comments']);
    So $comments is being set on the delivery page, but because there's no text field to continue the chain, it's getting a NULL value on the payment page. So, I thought if $comments wasn't getting redefined on the payment page, it would remain defined to the value from the delivery page. I removed the bit from the header. That didn't work.

    I tried $comments = $order->info['comments'] in the payment header, that didn't work.

    So, I've been trying to find the right syntax to assign the value in the payment header to whatever was written on the delivery page. I tried a whole bunch of junk, but got nowhere. Can you verify that I'm somewhat moving in the right direction?
    Currently using ZEN CART v. 1.3.6

  6. #6
    Join Date
    Aug 2005
    Posts
    336
    Plugin Contributions
    0

    Default Re: special instructions on checkout pages

    I'm still trying to crack the code on how to have special instructions on the 1st checkout page, no special instructions box on the 2nd checkout page, and the info to continue along to the confirmation checkout page.

    I'm not going to get this working on my own so if anybody can throw me a bone, I'd appreciate it. Any kind of hint or clue is appreciated.
    Currently using ZEN CART v. 1.3.6

  7. #7
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: special instructions on checkout pages

    Where on the page do you want the instructions?

  8. #8
    Join Date
    Aug 2005
    Posts
    336
    Plugin Contributions
    0

    Default Re: special instructions on checkout pages

    I have the special instructions on the checkout_shipping page -- it's fine, sitting under the "Your Address" part. I just don't want it at all on the checkout_payment page. But, if I remove it completely, the instructions typed into the first checkout page doesn't get forwarded to the confirmation page, so they're lost.
    Currently using ZEN CART v. 1.3.6

  9. #9
    Join Date
    Aug 2005
    Posts
    336
    Plugin Contributions
    0

    Default Re: special instructions on checkout pages

    Anybody know how to do this? I was trying to challenge myself to figure it out and failed miserably ;)

    They will be on the checkout_shipping page and I need the instructions to carry over to the confirmation page, but I can't find a way to remove them from the checkout_payment page without them getting lost completely by the time one arrives at the confirmation page.

    I've gotta get this site done and launched, so any help in removing the special instructions from the checkout_payment page would be highly appreciated.
    Currently using ZEN CART v. 1.3.6

  10. #10
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: special instructions on checkout pages

    PHP Code:
    <fieldset class="shipping" id="comments">
    <legend><?php echo TABLE_HEADING_COMMENTS?></legend>
    <?php echo zen_draw_textarea_field('comments''45''3'); ?>
    </fieldset>
    Comment out or remove the above setion of the template files for the checkout.
    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.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Special Instructions wrapping??
    By michaelchu in forum Managing Customers and Orders
    Replies: 0
    Last Post: 9 Jan 2012, 06:03 PM
  2. special instructions input
    By charliepingpong in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 13 Nov 2011, 06:53 AM
  3. How can I hide the Special instructions box on checkout?
    By benn600 in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 26 Feb 2010, 01:08 PM
  4. special date box in checkout pages
    By cjacin75 in forum General Questions
    Replies: 5
    Last Post: 29 Nov 2008, 10:39 PM
  5. Can't Add Special Instructions during checkout
    By Tainted in forum General Questions
    Replies: 3
    Last Post: 12 Jul 2008, 03:44 AM

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