Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Aug 2009
    Location
    Tampa Bay
    Posts
    251
    Plugin Contributions
    1

    Default Can I omit the Comments area on Page 3 of 3 Checkout?

    Is it possible to omit the display of the comment box when customers do not enter a comment/instructions on page 2 of chechout?

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

    Default Re: Can I omit the Comments area on Page 3 of 3 Checkout?

    You could customize your template for that, but note that there is an EDIT button to remind the customer that there is a place for comments should they wish to add some ...

    This section of code has the comment display and HR tag:
    Code:
    <?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="' . zen_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL') . '">' . 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
    //  }
    ?>
    <hr />
    You can copy the tpl_checkout_confirmation_default.php file to your templates and overrides to make this change ...
    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: v1.5.5]
    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
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,560
    Plugin Contributions
    89

    Default Re: Can I omit the Comments area on Page 3 of 3 Checkout?

    Or, if you didn't want to modify any PHP files, you could take a stab at hiding it via css:

    #checkoutPayment form fieldset+fieldset+fieldset+fieldset {
    display: none;
    }

    I haven't actually tested this out, but I'm pretty sure it says "within the div named checkoutPayment, within its form(s), don't display the 4th consecutive fieldset".

  4. #4
    Join Date
    Aug 2009
    Location
    Tampa Bay
    Posts
    251
    Plugin Contributions
    1

    Default Re: Can I omit the Comments area on Page 3 of 3 Checkout?

    it is currently showing "NONE" with the edit box
    was hoping to have the whole mod hidden when there is none to clean the page to have the least distraction giving less time to change their mind

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

    Default Re: Can I omit the Comments area on Page 3 of 3 Checkout?

    The commented IF, when the comment marks // are removed, will hide that when empty ...

    You will need a similar IF around that:
    <hr />

    so you don't get the double line ...
    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: v1.5.5]
    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!

  6. #6
    Join Date
    Aug 2009
    Location
    Tampa Bay
    Posts
    251
    Plugin Contributions
    1

    Default Re: Can I omit the Comments area on Page 3 of 3 Checkout?

    Quote Originally Posted by Ajeh View Post
    The commented IF, when the comment marks // are removed, will hide that when empty ...
    I uncommented the IF but got a blank page being a novice perhaps I did it wrong....
    PHP Code:
    <?php
      
    }
    ?>
    <br class="clearBoth" />
    <hr />
    <?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="' zen_href_link(FILENAME_CHECKOUT_PAYMENT'''SSL') . '">' zen_image_button(BUTTON_IMAGE_EDIT_SMALLBUTTON_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
    //  }
    ?>
    <hr />
    Last edited by Lackew; 6 Nov 2009 at 08:12 PM.
    blessed be the day we make tomorrow a better yesterday

  7. #7
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Can I omit the Comments area on Page 3 of 3 Checkout?

    You need to uncomment the closing bracket of the 'if' too:

    Code:
    <?php
    //  }
    ?>
    So, take out the slashes here as well.

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

    Default Re: Can I omit the Comments area on Page 3 of 3 Checkout?

    Thanks niccol ... I was not specific enough to say that "uncomment the IF" meant both the starting and ending of the IF statement ...
    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: v1.5.5]
    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!

  9. #9
    Join Date
    Aug 2009
    Location
    Tampa Bay
    Posts
    251
    Plugin Contributions
    1

    Default Re: Can I omit the Comments area on Page 3 of 3 Checkout?

    TERRIFIC!!!!!!!!!!!!!!!!!!!!!!! group-> with Ajeh & Niccol
    blessed be the day we make tomorrow a better yesterday

  10. #10
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Can I omit the Comments area on Page 3 of 3 Checkout?

    Linda

    I was under no illusion that you meant anything else. Seeing 'Ajeh' by a post hugely increases the likelyhood that I will read it and in doing so have learnt so much! So thanks for that.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v151 Blank page in the Checkout Payment area
    By Peace Freak in forum Upgrading to 1.5.x
    Replies: 24
    Last Post: 7 May 2013, 09:40 AM
  2. Google Checkout - can't be edited in Admin area
    By Lazar in forum Addon Payment Modules
    Replies: 5
    Last Post: 14 Apr 2012, 04:27 PM
  3. How to omit certain items from the low stock email
    By skirkpatrick in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 24 Apr 2008, 07:08 PM
  4. Omit the stock number on product pages
    By nomadrw in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 30 Oct 2007, 07:45 PM
  5. 'comments' not being passed to next page during checkout
    By warstormer in forum General Questions
    Replies: 10
    Last Post: 4 Oct 2007, 11:52 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