I made some changes and now the comments field is hidden on ordering pages. I also made a change so there is no option to go back and edit comments. (In the text below I use the word remmed in place of 'commented' for obvious reasons.)
- I copied the following files
tpl_checkout_shipping_default.php
tpl_checkout_payment_default.php
tpl_checkout_confirmation_default.php
from /includes/templates/template_default/templates/
to /includes/templates/my_custom_template/templates/
(where 'my_custom_template' is the name of my template overide)
- I then remmed out some lines and put a dummy hidden field in (to allow a null value to be passed instead of no value for the comment field which I had remmed) as follows:
tpl_checkout_shipping_default.php
<fieldset class="shipping" id="comments">
<legend><?php echo TABLE_HEADING_COMMENTS; ?></legend>
<?php echo zen_draw_textarea_field('comments', '45', '3'); ?>
</fieldset>
Became:
<!--<fieldset class="shipping" id="comments">
<legend><?php echo TABLE_HEADING_COMMENTS; ?></legend>
<?php echo zen_draw_textarea_field('comments', '45', '3'); ?>
</fieldset>--><input type="hidden" name="comments" value="" />
tpl_checkout_payment_default.php
<fieldset id="comments">
<legend><?php echo TABLE_HEADING_COMMENTS; ?></legend>
<?php echo zen_draw_textarea_field('comments', '45', '3'); ?>
</fieldset>
Became:
<!--<fieldset id="comments">
<legend><?php echo TABLE_HEADING_COMMENTS; ?></legend>
<?php echo zen_draw_textarea_field('comments', '45', '3'); ?>
</fieldset>--><input type="hidden" name="comments" value="" />
tpl_checkout_confirmation_default.php
<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" />
<?php
// }
?>
<hr />
Became:
<!--
<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" />
<?php
// }
?>
<hr />
-->
I hope that helps someone looking for the same solution that I was!
:clap: