I found an interim solution for your information:
As I am not using "weight" in the store, until I hear from you for a more elegant solution, what I've done is, that when a product (event) reaches 3 days before it's end date, then I assign a weight of "1" to it. In the "By Mail" shipping module I added the following code:
PHP Code:
global $cart;
if (IS_ADMIN_FLAG === true || $_SESSION['cart']->show_weight() > 1) {
$this->enabled = false;
}
immediately after this code:
PHP Code:
$check->MoveNext();
}
if ($check_flag == false) {
$this->enabled = false;
}
}
which then disables the shipping method for the cart if the weight is "1" or more.
Of course if the customer has more than one event in the cart then the method will be disabled for both. Now need to scratch my head to get around that one!!
Cheers
Cliff
Bookmarks