Finally figured out how to get shipping pricing for different items based on master id's and cloning the zone rate module.
zones - for some category id#s, zones2 (clone) - for other category id items.
This works for each category on it's own but won't provide a price for mixed items - says "Not available at this time.""Sorry we are not shipping to your region at this time."
This is the code I added to the cloned zone rate. What am I missing?
Is there something else I need to add or remove?
Added to zones.php:
if (!IS_ADMIN_FLAG) {
global $cart;
$chk_categories = 0;
$chk_categories += $_SESSION['cart']->in_cart_check('master_categories_id','1');
if ($_SESSION['cart']->count_contents() != $chk_categories) {
$this->enabled = false;
}
}
Added to zones2.php:
if (!IS_ADMIN_FLAG) {
global $cart;
$chk_categories = 0;
$chk_categories += $_SESSION['cart']->in_cart_check('master_categories_id','15');
$chk_categories += $_SESSION['cart']->in_cart_check('master_categories_id','22');
$chk_categories += $_SESSION['cart']->in_cart_check('master_categories_id','23');
$chk_categories += $_SESSION['cart']->in_cart_check('master_categories_id','24');
$chk_categories += $_SESSION['cart']->in_cart_check('master_categories_id','25');
$chk_categories += $_SESSION['cart']->in_cart_check('master_categories_id','26');
if ($_SESSION['cart']->count_contents() != $chk_categories) {
$this->enabled = false;
}
}
Thanks
Bookmarks