
Originally Posted by
Ajeh
You have to edit the file:
/includes/modules/shipping/ups.php
and change the code ...
Let's say you do not want to allow UPS when products_id 15 is in the cart, change the code:
Code:
$this->types = array('1DM' => 'Next Day Air Early AM',
to read:
Code:
global $cart;
if (IS_ADMIN_FLAG == false && $_SESSION['cart']->in_cart_check('products_id','15') > 0) {
$this->enabled = false;
}
$this->types = array('1DM' => 'Next Day Air Early AM',
So you would have to add the product_ID of each product correct? This solution would most likely work for me but I have around 200 products that cannot ship USPS. If I put 200 product_ID's in there, would that be the correct way to do it?
Would it look like this (where the $_SESSION line would just keep going with all hte ID's?):
Code:
$this->types = array('1DM' => 'Next Day Air Early AM',
to read:
Code:
global $cart;
if (IS_ADMIN_FLAG == false && $_SESSION['cart']->in_cart_check('products_id','15','16','17','20') > 0) {
$this->enabled = false;
}
$this->types = array('1DM' => 'Next Day Air Early AM',