Hi,

I'm using v.2-3-2, but want to add "ERROR_PLEASE_CHOOSE_DELIVERY_DATE" in checkout_shipping/header_php without update to v.2-4. Cause I can't fix the conflict in v.2-4.

I've seen and try Delia's solution below:
http://www.zen-cart.com/showthread.p...ckout-shipping
PHP Code:
if (zen_not_null($_POST['order_delivery_date'])) {
$_SESSION['order_delivery_date'] = zen_db_prepare_input($_POST['order_delivery_date']);
} else {
$messageStack->add_session('checkout_shipping'ERROR_PLEASE_CHOOSE_DELIVERY_DATE'error');

zen_redirect(zen_href_link(FILENAME_CHECKOUT_SHIPPING'''SSL')); 

I followed #357 and add the time function, the error part was worked:
PHP Code:
if ($_POST['order_delivery_time'] == 'notselected') {
$messageStack->add_session('checkout_shipping'ERROR_PLEASE_CHOOSE_DELIVERY_DATE'error');
$messageStack->add_session('checkout_shipping'ERROR_PLEASE_CHOOSE_DELIVERY_TIME'error');
zen_redirect(zen_href_link(FILENAME_CHECKOUT_SHIPPING'''SSL'));
}
    
    if (
zen_not_null($_POST['order_delivery_date'])) {
      
$_SESSION['order_delivery_date'] = zen_db_prepare_input($_POST['order_delivery_date'] . " " $_POST['order_delivery_time']);
    }
    
$order_delivery_date $_SESSION['order_delivery_date']; 
.
.
.

However, now I no longer apply the time function, and because of this the "ERROR_PLEASE_CHOOSE_DELIVERY_DATE" keep no show.
I try to fix the code, but no luck
PHP Code:
if ($_POST['order_delivery_date'] == 'notselected') {
$messageStack->add_session('checkout_shipping'ERROR_PLEASE_CHOOSE_DELIVERY_DATE'error');

zen_redirect(zen_href_link(FILENAME_CHECKOUT_SHIPPING'''SSL'));
}
    
    if (
zen_not_null($_POST['order_delivery_date'])) {
      
$_SESSION['order_delivery_date'] = zen_db_prepare_input($_POST['order_delivery_date']);
    }
    
$order_delivery_date $_SESSION['order_delivery_date']; 

And yes, I'd add this line to checkout_shipping.php already.
PHP Code:
define('ERROR_PLEASE_CHOOSE_DELIVERY_DATE''Please choose a pickup/delivery date'); 

Any ideas?

Many Thanks