Results 1 to 10 of 22

Hybrid View

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

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

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

 

 

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