Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / How can I hide the Special instructions box on checkout?

How can I hide the Special instructions box on checkout?

Locked

Views: 2,652

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
12 May 2008, 7:24 PM
#1
benn600 avatar

benn600

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?

13 May 2008, 11:15 AM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: How can I hide the Special instructions box on checkout?

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.

16 May 2008, 9:01 PM
#3
chabates avatar

chabates

New Zenner

Join Date:
Apr 2008
Location:
Ontario
Posts:
76
Plugin Contributions:
0

Re: How can I hide the Special instructions box on checkout?

hey i also want to do this.. but i removed the code and nothing happend?

17 May 2008, 11:04 AM
#4
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: How can I hide the Special instructions box on checkout?

stevesh:

Don't forget to put the edited files in your override folder.

Did you remember this part?

17 May 2008, 8:52 PM
#5
chabates avatar

chabates

New Zenner

Join Date:
Apr 2008
Location:
Ontario
Posts:
76
Plugin Contributions:
0

Re: How can I hide the Special instructions box on checkout?

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.

18 May 2008, 1:11 AM
#6
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: How can I hide the Special instructions box on checkout?

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>**
18 May 2008, 3:35 PM
#7
chabates avatar

chabates

New Zenner

Join Date:
Apr 2008
Location:
Ontario
Posts:
76
Plugin Contributions:
0

Re: How can I hide the Special instructions box on checkout?

ya still having no luck.. not sure what i'm doing wrong

18 May 2008, 4:06 PM
#8
chabates avatar

chabates

New Zenner

Join Date:
Apr 2008
Location:
Ontario
Posts:
76
Plugin Contributions:
0

Re: How can I hide the Special instructions box on checkout?

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?

26 Feb 2010, 10:15 AM
#9
sushigal avatar

sushigal

Zen Follower

Join Date:
Mar 2009
Posts:
435
Plugin Contributions:
0

Re: How can I hide the Special instructions box on checkout?

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

26 Feb 2010, 12:03 PM
#10
sushigal avatar

sushigal

Zen Follower

Join Date:
Mar 2009
Posts:
435
Plugin Contributions:
0

Re: How can I hide the Special instructions box on checkout?

not to worry, found the file and have sorted everything :)

26 Feb 2010, 12:08 PM
#11
sushigal avatar

sushigal

Zen Follower

Join Date:
Mar 2009
Posts:
435
Plugin Contributions:
0

Re: How can I hide the Special instructions box on checkout?

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 file

Hope this helps!