Zen Follower
- Join Date:
- Nov 2007
- Posts:
- 124
- Plugin Contributions:
- 0
How can I hide the Special instructions box on checkout?
How can I hide the special instructions text box?
Views: 2,652
Zen Follower
How can I hide the special instructions text box?
Black Belt
Comment out lines 125 -128 in includes/templates/template_default/templates/tpl_checkout_shipping_default.php
Comment out lines 200-203 in includes/templates/template_default/templates/tpl_checkout_payment_default.php
Don't forget to put the edited files in your override folder.
New Zenner
hey i also want to do this.. but i removed the code and nothing happend?
Black Belt
stevesh:
Don't forget to put the edited files in your override folder.
Did you remember this part?
New Zenner
ya i moved them into the override folder...
sorry i forgot to mention i have the order steps mod so i think those 2 files are previously edited as well.
Black Belt
Comment out this in shipping and payment files mentioned above -
**<fieldset class="shipping" id="comments">
<legend><?php echo TABLE_HEADING_COMMENTS; ?></legend> <?php echo zen_draw_textarea_field('comments', '45', '3'); ?> </fieldset>**New Zenner
ya still having no luck.. not sure what i'm doing wrong
New Zenner
k figured it out..
these files were in includes/templates/CUSTOM/templates/tpl_checkout_shipping_default.php
those were the ones i needed to change even tho i was putting the other files in another override folder.
sorry one more thing:
do you know the code i should comment out of tpl_checkout_confirmation_default.php to remove the special instructions box there?
Zen Follower
Hi, I also need to remove the 'special instructions' field but cannot find; includes/templates/template_default/templates/tpl_checkout_payment_default.php
as mentioned above the other file I can find but not the second one.
When you say 'comment out' the lines do you mean delete them??
Many thanks
Zen Follower
not to worry, found the file and have sorted everything :)
Zen Follower
for anyone that would like to know;
I Commented out lines 125 -128 in includes/templates/template_default/templates/tpl_checkout_shipping_default.php
Also Commented out the code in includes/templates/template_default/templates/tpl_checkout_payment_default.php but cant remember which lines! It wasnt the ones mentioned above, my bit of code was slightly further down so around line 210 ish!
I also then had to edit /template_default/templates/tpl_checkout_confirmation_default.php and removed this section;
<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" /> which was around line 90 in the fileHope this helps!
Tell staff why this post should be reviewed.