Hi,
can anybody tell me how to remove the special instructions when a customer places an order on my site.
Hi,
can anybody tell me how to remove the special instructions when a customer places an order on my site.
Regards,
Ian Murray
The textarea in the checkout? You will need to comment out the code.
Please do not PM for support issues: a private solution doesn't benefit the community.
Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.
Thanks Kim for pointing me in the right direction, all solved now
Regards,
Ian Murray
I am trying to do the exact same thing. In what file would I find that particular piece of code to comment out?
John L.
MultiMedia Designer
HI,
what i did was to take a copy of the following files:
tpl_checkout_payment_default.php
tpl_checkout_shipping_default.php
and move them to my custom overrides directory.
the code i changed was as follows:
tpl_checkout_payment_default.php:
Comment out lines 178 - 182
<fieldset>
<legend><?php echo TABLE_HEADING_COMMENTS; ?></legend>
<?php echo zen_draw_textarea_field('comments', '45', '3'); ?>
</fieldset>
tpl_checkout_shipping_default.php:
Comment out lines 117 - 120
<fieldset class="shipping" id="comments">
<legend><?php echo TABLE_HEADING_COMMENTS; ?></legend>
<?php echo zen_draw_textarea_field('comments', '45', '3'); ?>
</fieldset>
That should do it.
regards,
Ian
Regards,
Ian Murray
excellent... thanks a lot, Ian!
John L.
MultiMedia Designer
Nice job ian:-)
Worked a treat![]()
There's another way of doing this that makes it easier to turn back on should you decide at a later date you need to:
In tpl_checkout_payment_default.php at line 178, make <fieldset> intoThen in your stylesheet, addCode:<fieldset id="comments">which will hide the section on both pages. If you then decide you need it, you have only one file to edit.Code:#comments {display: none;}
NB whereas both display: none and visibility:hidden prevent the element from being shown, the latter still renders it in the browser and leaves space where it would show.
Please also note that I have not checked for other instances of "id=comments" in Zen Cart
Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
20 years with Zencart !
hi,
1. I did the first method you suggested..and seemed to work fine..only to find that the special instrutions still appear on the final checkout page? along with the edit button..when you click edit, it goes back to step 2/3, but the special instuctions box is not there (which is fine)
so how do we get rid of the edit button on step 3??
2. where do i add the second code in the style sheet? where can i find this file? is it my template stylesheet/ if so what line do i put it in?
3. should i just stick to the first method??
thanxs in advacne
includes/templates/YOUR_TEMPLATE/css/stylesheet.css ; as #comments is a new class for you, then you can add the line anywhere you like... personally, I tend to add any little oddities like this at the end of the file (in fact, as a builder of Zencarts, I prefer to keep all my extras in a separate stylesheet for future/repeated use)
Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
20 years with Zencart !