You would add the code in RED to this code in the:
/includes/modules/shipping/zones.php
Code:
$order_total_amount = $_SESSION['cart']->show_total() - $_SESSION['cart']->free_shipping_prices() ;
// how many Products for products_id 19 are in the cart
global $cart;
$chk_product_19 = $_SESSION['cart']->in_cart_check('products_id','19');
// how many Products for products_id 19 are in the cart
$chk_product_32 = $_SESSION['cart']->in_cart_check('products_id','32');
$extra_charge = ($chk_product_19 * 7.50) + ($chk_product_32 * 2.50);
Then add the $extra_charge to this code:
Code:
$this->quotes = array('id' => $this->code,
'module' => MODULE_SHIPPING_ZONES_TEXT_TITLE,
'methods' => array(array('id' => $this->code,
'title' => $shipping_method,
'cost' => $extra_charge + $shipping_cost)));
Bookmarks