This code change to the Zone Rate zones shipping module:
/includes/modules/shipping/zones.php
Code:
// bof: add additional charge for categories_id 123
global $cart;
$chk_products_upcoming = $_SESSION['cart']->in_cart_check('master_categories_id','123');
$extra_charge = $chk_products_upcoming * 2.50;
$this->quotes = array('id' => $this->code,
'module' => MODULE_SHIPPING_ZONES_TEXT_TITLE,
'methods' => array(array('id' => $this->code,
'title' => $shipping_method,
'cost' => $shipping_cost + $extra_charge)));
// eof: add additional charge for categories_id 123
Would add an additional charge per item per quantity for Products using the master_categories_id 123 ...
If using Item Rate item you would change the code in:
/includes/modules/shipping/item.php
to read:
Code:
// bof: add additional charge for categories_id 123
global $cart;
$chk_products_upcoming = $_SESSION['cart']->in_cart_check('master_categories_id','123');
$extra_charge = $chk_products_upcoming * 2.50;
$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' => (MODULE_SHIPPING_ITEM_COST * $item_total_count) + MODULE_SHIPPING_ITEM_HANDLING + $extra_charge)));
// eof: add additional charge for categories_id 123