Page 1 of 3 123 LastLast
Results 1 to 10 of 22
  1. #1
    Join Date
    Oct 2006
    Posts
    10
    Plugin Contributions
    0

    Default Remove Special Instructions

    Hi,

    can anybody tell me how to remove the special instructions when a customer places an order on my site.
    Regards,

    Ian Murray

  2. #2
    Join Date
    Jun 2003
    Posts
    33,720
    Plugin Contributions
    0

    Default Re: Remove Special Instructions

    The textarea in the checkout? You will need to comment out the code.
    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
    Oct 2006
    Posts
    10
    Plugin Contributions
    0

    Default Re: Remove Special Instructions

    Thanks Kim for pointing me in the right direction, all solved now
    Regards,

    Ian Murray

  4. #4
    Join Date
    Sep 2006
    Location
    Jacksonville, FL
    Posts
    236
    Plugin Contributions
    0

    help question Re: Remove Special Instructions

    I am trying to do the exact same thing. In what file would I find that particular piece of code to comment out?
    John L.
    MultiMedia Designer

  5. #5
    Join Date
    Oct 2006
    Posts
    10
    Plugin Contributions
    0

    Default Re: Remove Special Instructions

    HI,

    what i did was to take a copy of the following files:

    tpl_checkout_payment_default.php
    tpl_checkout_shipping_default.php

    and move them to my custom overrides directory.

    the code i changed was as follows:

    tpl_checkout_payment_default.php:

    Comment out lines 178 - 182

    <fieldset>
    <legend><?php echo TABLE_HEADING_COMMENTS; ?></legend>
    <?php echo zen_draw_textarea_field('comments', '45', '3'); ?>
    </fieldset>


    tpl_checkout_shipping_default.php:

    Comment out lines 117 - 120

    <fieldset class="shipping" id="comments">
    <legend><?php echo TABLE_HEADING_COMMENTS; ?></legend>
    <?php echo zen_draw_textarea_field('comments', '45', '3'); ?>
    </fieldset>



    That should do it.

    regards,

    Ian
    Regards,

    Ian Murray

  6. #6
    Join Date
    Sep 2006
    Location
    Jacksonville, FL
    Posts
    236
    Plugin Contributions
    0

    Default Re: Remove Special Instructions

    excellent... thanks a lot, Ian!
    John L.
    MultiMedia Designer

  7. #7
    Join Date
    Feb 2007
    Posts
    212
    Plugin Contributions
    0

    Default Re: Remove Special Instructions

    Nice job ian:-)

    Worked a treat

  8. #8
    Join Date
    Oct 2004
    Location
    Southport, UK
    Posts
    4,244
    Plugin Contributions
    20

    Default Re: Remove Special Instructions

    There's another way of doing this that makes it easier to turn back on should you decide at a later date you need to:

    In tpl_checkout_payment_default.php at line 178, make <fieldset> into
    Code:
    <fieldset id="comments">
    Then in your stylesheet, add
    Code:
    #comments {display: none;}
    which will hide the section on both pages. If you then decide you need it, you have only one file to edit.

    NB whereas both display: none and visibility:hidden prevent the element from being shown, the latter still renders it in the browser and leaves space where it would show.

    Please also note that I have not checked for other instances of "id=comments" in Zen Cart
    Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
    20 years with Zencart !

  9. #9
    Join Date
    Feb 2007
    Posts
    212
    Plugin Contributions
    0

    Default Re: Remove Special Instructions

    hi,

    1. I did the first method you suggested..and seemed to work fine..only to find that the special instrutions still appear on the final checkout page? along with the edit button..when you click edit, it goes back to step 2/3, but the special instuctions box is not there (which is fine)

    so how do we get rid of the edit button on step 3??


    2. where do i add the second code in the style sheet? where can i find this file? is it my template stylesheet/ if so what line do i put it in?

    3. should i just stick to the first method??

    thanxs in advacne

  10. #10
    Join Date
    Oct 2004
    Location
    Southport, UK
    Posts
    4,244
    Plugin Contributions
    20

    Default Re: Remove Special Instructions

    Quote Originally Posted by vik007 View Post
    hi,

    2. where do i add the second code in the style sheet? where can i find this file? is it my template stylesheet/ if so what line do i put it in?
    includes/templates/YOUR_TEMPLATE/css/stylesheet.css ; as #comments is a new class for you, then you can add the line anywhere you like... personally, I tend to add any little oddities like this at the end of the file (in fact, as a builder of Zencarts, I prefer to keep all my extras in a separate stylesheet for future/repeated use)
    Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
    20 years with Zencart !

 

 
Page 1 of 3 123 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. remove special instructions
    By ebaobao in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 26 Feb 2010, 01:47 PM
  4. Special shipping instructions
    By isaacr25 in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 16 Oct 2008, 07:45 PM
  5. Remove Special Instructions box
    By dirtyweekender in forum Basic Configuration
    Replies: 2
    Last Post: 29 Feb 2008, 11:12 PM

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