Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 22
  1. #11
    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?

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

    Default Re: Remove Special Instructions

    Check that the checkout page has the id in the fieldset - please post a url if you need more help.
    Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
    20 years with Zencart !

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

    Default Re: Remove Special Instructions

    Quote Originally Posted by Ryk View Post
    Check that the checkout page has the id in the fieldset - please post a url if you need more help.
    Iv opened tpl_checkout_payment_default and made a search for fieldset id.
    changed it to:

    <fieldset id="comments">

    but still no luck line 178 does not contain the word fieldset (am guessing i must have messed it up)

    www.unikids.co.uk/zencart

    thanxs mate

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

    Default Re: Remove Special Instructions

    OK - you need to now find the section in tpl_checkout_confirmation.php which displays the Special Instructions stuff and give that an id=Comments as well.
    Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
    20 years with Zencart !

  5. #15
    Join Date
    Feb 2007
    Posts
    212
    Plugin Contributions
    0

    Default Re: Remove Special Instructions

    ok iv done something..which is great..

    But how can i get rid of the edit buttons? and replace with text line instead.

    http://unikids.splay.co.uk/zencart/i...t_confirmation

    log in email: [email protected]
    password: test123

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

    Default Re: Remove Special Instructions

    Still in the same file, find
    Code:
    <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" />
    and comment out both the html and php code.

    Then for tidiness, comment out the <hr /> which comes just after it.

    Do keep a backup copy of the file. Save this to your overrides directory.
    Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
    20 years with Zencart !

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

    Default Re: Remove Special Instructions

    worked a treat mate:-) your a star.

    1. just lastly on the step 2 page (http://unikids.splay.co.uk/zencart/i...eckout_payment)

    How do i get the 'please note...etc' text a left alignment. it seems to be stuck on the right hand side? lol

    2. what is the coding to get rid of the payment method text / contact seller text?

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

    Default Re: Remove Special Instructions

    Time to invoke the mantra of "Give a man a fish, feed him for a day; teach a man to fish, feed him for life"...

    1. Get better tools!

    • Download and install Firefox (it's better than IE - even IE7 anyway!).
    • Install the Web Developer Toolkit add on.
    • Use the css tools to identify the element you need to change the css of
    • Use the Edit CSS to test and change the css on the fly. When happy, save the stylesheet and then upload to your site.


    2. Reverse engineer!

    The vast majority of the text is contained in define statements in the language files. Go to the page you want to make the change on. Note the part of the url in your browser address bar that comes after "main_page=" - in this case "checkout_payment"

    Start by putting "Payment Method" into admin >tools > developers tool kit in the bottom box and search all catalog/admin files.

    Scroll down the results list until you find the correct define (in some instances there will be more than one, so you need to be careful - you are looking for a language file and your clue is the "checkout_payment"). In this case, the one you want is in /includes/languages/english/checkout_payment.php, or, assuming you've been using the override structure correctly, in /includes/languages/english/YOUR_TEMPLATE/checkout_payment.php and reads
    Code:
    Line #18 : define('TABLE_HEADING_PAYMENT_METHOD', 'Payment Method');
    (although the line # could be different)

    Now you know that the constant used to display this message is called TABLE_HEADING_PAYMENT_METHOD

    Paste TABLE_HEADING_PAYMENT_METHOD into admin > tools > developers tool kit in the bottom box and search all catalog/admin files.

    You will see several returns, including the language file you just got the information from, but this time you are looking for something OTHER than a define statement. Again, you are only interested in filenames that include "checkout_payment" and you can see that TABLE_HEADING_PAYMENT_METHOD appears in includes/templates/template_default/templates/tpl_checkout_payment_default.php where you can see that it is used at line #90. Again, if you've been using the override system correctly you will also see it at includes/templates/YOUR_TEMPLATE/templates/tpl_checkout_payment_default.php

    Examine includes/templates/YOUR_TEMPLATE/templates/tpl_checkout_payment_default.php in your text editor and work out which of the surrounding code is generating the section you don't want, and either comment it out, or hide it using css, whichever you feel is best.

    You can use this system for almost anything, and as you become more familiar with where things are likely to be, you can speed up your searching by using the other options rather than just All Files Catalog/Admin.
    Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
    20 years with Zencart !

  9. #19
    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. :-)

  10. #20
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Remove Special Instructions

    Did you read Ryk's detailed post explaining how to figure this out?

    Find a bit of text near the spot you want to add to, and search for its define statement. Maybe you can just add to this, or maybe you will have to do the "reverse engineering" bit. Actually, for your case, Ryk gave the filename and possibly line number already.

 

 
Page 2 of 3 FirstFirst 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