Originally Posted by
Ajeh
You need to compute the cost of the Ground shipping from the quote then deduct that from the cost quoted for each method ...
This will take a little customization of the code but it can be done and can work ...
Exactly. I was thinking I could set up a new variable, and assign the cost of UPS Ground to that variable. Then, it would just be a matter of subtracting that variable from the cost... This is where the cost appears to be calculated in ups.php:
PHP Code:
if (!in_array($type, $allowed_methods)) continue;
// EOF: UPS USPS
$methods[] = array('id' => $type,
'title' => $this->types[$type] . $show_box_weight,
'cost' => ($cost * MODULE_SHIPPING_UPS_HANDLING) * $shipping_num_boxes);
I would just insert that new variable into the equation in order to subtract it from the cost. That part is easy. But I need help creating the new variable and assigning the cost of ground shipping to that variable.
Any ideas?
Bookmarks