Results 1 to 10 of 22

Hybrid View

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

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

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

    Default Re: Remove Special Instructions

    Nice job ian:-)

    Worked a treat

  4. #4
    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 !

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

  6. #6
    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 !

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

    Default Re: Remove Special Instructions

    hi iv added the code #comments {display: none;} in the stylesheet.

    but the instructions still appear on the checkout page.?

    becuase i am using a blue_sku template..thats the folder i use the stylesheet from isint?

  8. #8
    Join Date
    Mar 2007
    Posts
    46
    Plugin Contributions
    0

    Default Re: Remove Special Instructions

    where would i have to go to simply add some text to the payment method box, i just wanna add "Please note: blah blah blah" where could i do that,

    any help would be great. :-)

 

 

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