You could count the number of Rakes ...
Let's say the Rake is products_id 27 and the charge is $12.50 per Rake, you can customize the code with the code in red:
Code:
$cost = preg_replace('/[^0-9.]/', '', $cost);
// bof: add Rake charge
$chk_rakes = 0;
$chk_rakes = $_SESSION['cart']->in_cart_check('products_id', '27');
$chk_rakes = $chk_rakes * 12.50;
$methods[] = array('id' => $type,
'title' => $title,
'cost' => ($cost * $shipping_num_boxes) + (MODULE_SHIPPING_USPS_HANDLING_METHOD == 'Box' ? MODULE_SHIPPING_USPS_HANDLING * $shipping_num_boxes : MODULE_SHIPPING_USPS_HANDLING + $chk_rakes) );
// eof: add Rake charge
Bookmarks