never modify core code when you do not have to.
try and play along.
create an
auto-loading observer. also
this post.
that you want to observer
this notifier.
if you have successfully gotten that far, you can then add your code as follows:
PHP Code:
public function updateNotifyShippingUspsUpdateStatus(&$class)
{
$chk_cart = 0;
$chk_cart += $_SESSION['cart']->in_cart_check('master_categories_id', '4854');
$chk_cart += $_SESSION['cart']->in_cart_check('products_id', '4');
if ($chk_cart > 0) {
$class->enabled = false;
}
}
best.
Bookmarks