That is very different from what it sounded like you wanted ...
Start over with the Item Rate item shipping module and try the code as:
Code:
// class methods
function quote($method = '') {
global $order, $total_count;
// check if manufacturer 1 or 2 is in cart
global $cart;
$chk_manufacturers_id1 = $_SESSION['cart']->in_cart_check('manufacturers_id', '1');
$chk_manufacturers_id2 = $_SESSION['cart']->in_cart_check('manufacturers_id', '2');
$chk_shipping_charges = 0.00;
switch(true) {
case ($chk_manufacturers_id2 > 0):
$chk_shipping_charges = 35.00;
break;
case ($chk_manufacturers_id1 > 0):
$chk_shipping_charges = 15.00;
break;
}
// adjusted count for free shipping
$item_total_count = $total_count - $_SESSION['cart']->free_shipping_items();
$this->quotes = array('id' => $this->code,
'module' => MODULE_SHIPPING_ITEM_TEXT_TITLE,
'methods' => array(array('id' => $this->code,
'title' => MODULE_SHIPPING_ITEM_TEXT_WAY,
'cost' => ($chk_shipping_charges > 0 ? $chk_shipping_charges : ((MODULE_SHIPPING_ITEM_COST * $item_total_count) + MODULE_SHIPPING_ITEM_HANDLING) ) )));
if ($this->tax_class > 0) {
Bookmarks