Zen Follower
- Join Date:
- Apr 2006
- Location:
- Midland TX
- Posts:
- 426
- Plugin Contributions:
- 0
USPS_2014_0907_K5--// if quoted cost is lower than flat rate module cost
@ajeh (since you provided the code for me)
Have I done this correctly or do I have lines in the wrong place?
// USPS_2014_0907_K5
// ADDITIONAL CUSTOMIZED CONDITIONS CAN GO HERE TO MANAGE $type_rebuilt or $title on $methods
// ************* START MODIFICATION USPS *****************
// if quoted cost is lower than flat rate module cost, mark up the cost to equal flat rate
$quoted_cost = ($cost + MODULE_SHIPPING_USPS_HANDLING) * $shipping_num_boxes;
$adjusted_cost = ($quoted_cost < MODULE_SHIPPING_FLAT_COST ? MODULE_SHIPPING_FLAT_COST : $quoted_cost);
// switch comment marks to show $hiddenCost: from quote title
//$show_hiddenCost = ' $hiddenCost: ' . $hiddenCost;
$show_hiddenCost = '';
$methods[] = array('id' => $type_rebuilt,
'title' => $title . $show_hiddenCost,
'cost' => $adjusted_cost);
// ************* END MODIFICATION *****************
Thanks