hello,

I am not sure if this is possible but I would like to disallow checkout or block delivery date based on this criteria:

-any product except the one from category 11 is in the cart then date 02-11 thru 02-14 are blocked.

I am currently using order delivery date as an add on for my cart. To be honest, I tried to ask there but did not get much luck.

The code in my tpl_checkout_shipping_default is as follow:

Code:
<!-- Bof Order Delivery Date -->
<!-- Bof Ship Date -->
<fieldset class="shipping" id="order_delivery_date">
<legend><?php echo TABLE_HEADING_DELIVERY_DATE; ?></legend>
<select name="order_delivery_date">

<?php

$current_time = (date("h:ia"));
$current_hour = (date("H")); // 24 hour time as two digits
$begin_cutoff_hour = '12H30'; // set on a 24 hour time clock
$end_cutoff_hour = '21'; // set on a 24 basis - "19" would be 7pm
$time_zone_adjust = '0'; // use this to adjust your hour value forward or backwards
$display_current_time = false; // Chage to "true" to check your system time for adjustments to $time_zone_adjust. Result will be echo'd to browser below ship date dropdown menu

$current_adjusted_hour = ($current_hour + $time_zone_adjust);

if($current_adjusted_hour <= $begin_cutoff_hour) {
        $date_offset = '0';
        }
    else {
        $date_offset = '1';
        }

for ($i=$date_offset, $n=50; $i < $n; $i++) {
    $now[$i] = strtotime ("+$i day", time());
    if ( strftime ("%w",$now[$i])<>"0"
        AND strftime ("%m-%d",$now[$i])<>"12-25"
		AND strftime ("%m-%d",$now[$i])<>"12-31"
		
        AND strftime ("%m-%d",$now[$i])<>"01-01"
        ){
        echo '<option value="'.strftime ("%Y-%m-%d",$now[$i]).'">'.strftime ("%A %d %B %Y",$now[$i]).'</option>';
        }

 }
?>
</select>
</fieldset>
<?PHP
if ($display_current_time == true) {
    echo "YOUR SYSTEM TIME IS $current_time";
    }
?>
<!-- Eof Ship Date -->
<!-- Eof Order Delivery Date -->

I am currently able to block certain dates and to skip the day if time passed. Is there a way to block date base on product master category?

I am a real newbie when it comes to coding. I tried the Admin flag but it is not changing anything or at least not working for me.

Please any help will be really appreciated

Thank you