You could also customize the file:
/includes/modules/pages/checkout_configuration/header_php.php
and add the code in
RED:
Code:
if (isset($_POST['payment'])) $_SESSION['payment'] = $_POST['payment'];
$_SESSION['comments'] = $_POST['comments'];
// bof: force comment
if (trim($_SESSION['comments']) == '') {
$messageStack->add_session('checkout_payment', 'Please enter order comments before proceeding.', 'error');
zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
}
// eof: force comment
//'checkout_payment_discounts'
//zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
Now, if they try to submit the order on the checkout_confirmation page without a comment, they will be returned to the checkout_payment and they will see a red message telling them to include a comment ...
Bookmarks