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?
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?
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 !
Iv opened tpl_checkout_payment_default and made a search for fieldset id.
changed it to:
<fieldset id="comments">
but still no luckline 178 does not contain the word fieldset (am guessing i must have messed it up)
![]()
www.unikids.co.uk/zencart
thanxs mate
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 !
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
Still in the same file, findand comment out both the html and php code.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" />
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 !
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?
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(although the line # could be different)Code:Line #18 : define('TABLE_HEADING_PAYMENT_METHOD', 'Payment Method');
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 !
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. :-)
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.