I would like to program into the shipping module for UPS a discount. I am using the API UPS version with my UPS account and it is working perfectly however I get a 44% discount on all my UPS next day saver and next day air fares. When A customer selects the UPS shipment method from the two choices they show a price as I have toggled on the tool tip, those prices are the standard rates which are correct but I want to include my shipping discount of 44%
Can anyone tell me where I can find this shipping calculation to modify it please.
Thank you
JM
I think it is here in this part of the ups.php code
$shipping_rate_id = urlencode(__CLASS__."|UPS|".$value['ServiceName']."|".$charge);
$checked = (@$d["shipping_rate_id"] == $value) ? "checked=\"checked\"" : "";
if (count($shipment) == 1 ) {
$checked = "checked=\"checked\"";
}
$html .= '<label for="'.$shipping_rate_id.'">'."\n<input type=\"radio\" name=\"shipping_rate_id\" $checked value=\"$shipping_rate_id\" id=\"$shipping_rate_id\" />\n";
$_SESSION[$shipping_rate_id] = 1;
$html .= $value['ServiceName'].' ';
$html .= "<strong>(".$value['TransportationCharges'].")</strong>";
if (DEBUG) {
$html .= " - ".$VM_LANG->_('PHPSHOP_PRODUCT_FORM_WEIGHT').": ".$order_weight." ". $weight_measure.
", ".$VM_LANG->_('PHPSHOP_RATE_FORM_VALUE').": [[".$charge_unrated."(".$fsc_rate.")]+".UPS_HANDLING_FEE."](".$taxrate.")]";
}
// DELIVERY QUOTE
if (Show_Delivery_Days_Quote == 1) {
if( !empty($value['GuaranteedDaysToDelivery'])) {
$html .= " - ".$value['GuaranteedDaysToDelivery']." ".$VM_LANG->_('PHPSHOP_UPS_SHIPPING_GUARANTEED_DAYS');
}
}
if (Show_Delivery_ETA_Quote == 1) {
if( !empty($value['ScheduledDeliveryTime'])) {
$html .= " (ETA: ".$value['ScheduledDeliveryTime'].")";
}
}
if (Show_Delivery_Warning == 1 && !empty($value['RatedShipmentWarning'])) {
$html .= "</label><br/>\n * <em>".$value['RatedShipmentWarning']."</em>\n";
}
$html .= "<br />\n";
}
}
echo $html;
How about a relevant title for this post so someone has a clue about your issue without entering into your post.