This is just what I was needing as well!!!
After playing around with it for a bit I got it to work!
I did replace:
Code:
$percentage_added = $order_total_amount * .20;
with
Code:
$percentage_added = $cost * .20;
SO ...
I USED THIS CODE:
Code:
// calculate order total less free shipping
$order_total_amount = $_SESSION['cart']->show_total() - $_SESSION['cart']->free_shipping_prices() ;
$percentage_added = $cost * .20;
$methods[] = array('id' => $type,
'title' => $this->types[$type],
'cost' => (($cost + MODULE_SHIPPING_UPS_HANDLING) * $shipping_num_boxes) + $percentage_added );
TO REPLACE THIS CODE:
Code:
// EOF: UPS USPS
$methods[] = array('id' => $type,
'title' => $this->types[$type],
'cost' => ($cost + MODULE_SHIPPING_UPS_HANDLING) * $shipping_num_boxes);
in includes/modules/shipping/ups.php.
Seems to be working great!
Bookmarks