I have read this thread through for several days and I am still unable to hide a shipping method.
I have two shipping methods, zone and item.
I checked in the products table and one of the items I wanted to only display item shipping had a master id of 6. I change it as below edited the item.php file.
// disable for one master_categories_id
if ((IS_ADMIN_FLAG == false && $_SESSION['cart']->in_cart_check('master_categories_id','6') > 0)) {
// show UPS
$this->enabled = true;
} else {
// hide UPS
$this->enabled = false;
}
Then I changed the zones.php to
// disable for one master_categories_id
if ((IS_ADMIN_FLAG == false && $_SESSION['cart']->in_cart_check('master_categories_id','6') > 0)) {
// show
$this->enabled = false;
} else {
// hide
$this->enabled = true;
}
I switched the true and false in the last two statement. I even made them all false but nothing I do makes either of the shipping methods disappear.
In Products, I then edited the products_model to be 'book' (which is really what I want to do) and tried this code
// disable for one products_model
if ((IS_ADMIN_FLAG == false && $_SESSION['cart']->in_cart_check('products_model','book') > 0)) {
// hide
$this->enabled = false;
} else {
// show
$this->enabled = true;
}
Still no luck. Can someone (Linda?) show me the error of my ways?
Here's my store's url. It is not live yet. Thanks!


Reply With Quote


