Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / Removing special instructions box.

Removing special instructions box.

Locked

Views: 1,902

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
23 Oct 2008, 7:42 AM
#1
snowy2007 avatar

snowy2007

Zen Follower

Join Date:
Mar 2008
Posts:
100
Plugin Contributions:
0

Removing special instructions box.

Hi all - Is there any way I can completely remove the "Special Instructions or Comments About Your Order" box from the checkout process. Customers are using it to put special delivery instructions in such as "Please leave parcel with neighbour". Unfortunately our carrier won't allow that.

Many thanks.

23 Oct 2008, 8:13 AM
#2
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town & London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: Removing special instructions box.

We found that the best way to tackle this is to KEEP the comments box, but add some custom text just under the section header, telling people that shipping was "signed-for receipt only" and that shipped goods could not be left with neighbours etc.

People still like to have the option to send a message with their order, so try to keep the facility operative.

One way to add the custom text is to Hard-Code it into:

/includes/templates/template_default/templates/tpl_checkout_shipping_default.php .

... remembering of course that once you've made the edit, to put that file into:

/includes/templates/YOUR-CUSTOM-TEMPLATE/templates/

... so that you comply with the over-ride system.

Find this section of code, near the bottom of the file:

<fieldset class="shipping" id="comments">
<legend><?php echo TABLE_HEADING_COMMENTS; ?></legend>
<?php echo zen_draw_textarea_field('comments', '45', '3'); ?>
</fieldset>

... and add your custom message:-

<fieldset class="shipping" id="comments">
<legend><?php echo TABLE_HEADING_COMMENTS; ?></legend>
<br />Please note: All shipping options are signed-for receipt. We are therefore unable to leave goods unattended at your delivery address, or with your neighbours. Please see our shipping and delivery policy for more details.<br />
<?php echo zen_draw_textarea_field('comments', '45', '3'); ?>
</fieldset>

However, the simplest way to HIDE the section completely is to add this to the bottom of your stylesheet.css:-

#checkoutComments {display: none;}
23 Oct 2008, 11:44 AM
#3
snowy2007 avatar

snowy2007

Zen Follower

Join Date:
Mar 2008
Posts:
100
Plugin Contributions:
0

Re: Removing special instructions box.

Hi fairestcape. Thanks V much for the advice. Whilst waiting for a reply I have already done something similar by adding the message to the following files :

includes/languages/english/checkout_confirmation.php
includes/languages/english/checkout_payment.php
includes/languages/english/checkout_shipping.php

in the section :

define('TABLE_HEADING_COMMENTS'

Have i done the wrong thing or will this work just fine?

Many thanks.

23 Oct 2008, 4:12 PM
#4
snowy2007 avatar

snowy2007

Zen Follower

Join Date:
Mar 2008
Posts:
100
Plugin Contributions:
0

Re: Removing special instructions box.

fairestcape:


However, the simplest way to HIDE the section completely is to add this to the bottom of your stylesheet.css:-

#checkoutComments {display: none;}


Hi - I tried to add that code to bothe the following files :

includes/templates/template_default/css/stylesheet.css

and

includes/templates/classic/css/stylesheet.css

And it still displays the special order comments box?

Any ideas please?
24 Oct 2008, 11:32 AM
#5
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town &amp; London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: Removing special instructions box.

Try this one:

Note that it will neutralize all displays of divs that are governed by "#comments" - if these exist elsewhere in ZC.

#comments {display: none;}
24 Oct 2008, 5:00 PM
#6
snowy2007 avatar

snowy2007

Zen Follower

Join Date:
Mar 2008
Posts:
100
Plugin Contributions:
0

Re: Removing special instructions box.

fairestcape:

Try this one:

Note that it will neutralize all displays of divs that are governed by "#comments" - if these exist elsewhere in ZC.

#comments {display: none;}


Thanks V much for the reply.

I might just keep the message in that I have already put there - With regards to my earlier post about the files that I changed the text in :

*includes/languages/english/checkout_confirmation.php includes/languages/english/checkout_payment.php includes/languages/english/checkout_shipping.php *
Will that be OK or should I change them back and just change it in the file you mentioned? Also, even with the message there some people are STILL putting delivery instructions in the box! How would I change the text colour of some parts of the message to RED ??
26 Oct 2008, 6:54 PM
#7
snowy2007 avatar

snowy2007

Zen Follower

Join Date:
Mar 2008
Posts:
100
Plugin Contributions:
0

Re: Removing special instructions box.

Sorry to bump this but could anyone please answer my question above re the files I have modded ? Many, many thanks in advance.

27 Oct 2008, 10:46 AM
#8
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town &amp; London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: Removing special instructions box.

Please put up your website address so I can see what you have currently done. (I use one-page checkout on my sites and the configuration is different, so I can't use my sites to test this.) I will have to register as a customer to see the checkout pages.

27 Oct 2008, 10:56 AM
#9
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town &amp; London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: Removing special instructions box.

On one of our sites we display the message like this:-

and the HTML that makes it look like this is:

<br /><b><font color="#ff0000">Please note:</font></b> All shipping options are signed-for receipt. We are therefore unable to leave goods unattended at your delivery address, or with neighbours. <a href="index.php?main_page=shippinginfo">GO HERE</a> for details.<br />

This HTML is hard coded into

tpl_checkout_shipping_default.php

as described in my post above.