*** duplicate post deleted *** Please do not post in more than one thread.
Printable View
*** duplicate post deleted *** Please do not post in more than one thread.
Just curious... does the handling fee show a separate charge from the shipping charge during checkout so the customer can differentiate between the two?
No they are combined together ...
I did as you said and broke the USPS module. The module would not appear unless I undid everything.
How should it have been written?
This breaks it::unsure:
if ($cost < 6.00) {
$methods[] = array('id' => $type,
'title' => $title,
'cost' => (6.00 + MODULE_SHIPPING_USPS_HANDLING) * $shipping_num_boxes);
} else {
$methods[] = array('id' => $type,
'title' => $this->types[$type],
'cost' => ($cost + MODULE_SHIPPING_USPS_HANDLING) * $shipping_num_boxes);
}
Probably a misplaced bracket ...
The original code reads:
The code should read when changed:Code:$methods[] = array('id' => $type,
'title' => $title,
'cost' => ($cost + MODULE_SHIPPING_USPS_HANDLING) * $shipping_num_boxes);
}
$this->quotes['methods'] = $methods;
Code:if ($cost < 6.00) {
$methods[] = array('id' => $type,
'title' => $title,
'cost' => (6.00 + MODULE_SHIPPING_USPS_HANDLING) * $shipping_num_boxes);
} else {
$methods[] = array('id' => $type,
'title' => $title,
'cost' => ($cost + MODULE_SHIPPING_USPS_HANDLING) * $shipping_num_boxes);
}
}
$this->quotes['methods'] = $methods;
It's a beautiful thing!:clap:
Perhaps you'd like to create a new contribution to include all of these minimum shipping prices?
Glad you have this working now ... :smile:
Get enough examples and who needs an add-on? :cool:
Hi, im new to all this and was wondering if I could do a per item rate with a minimum shipping fee? thanks!
I want a Minimum of $9.00 shipping fee ... but just $1.50 per Item after that ...
I set the Item Rate item charges as:
Handling: 7.50
Per Item: 1.50
Now I get $9.00 plus $1.50 per additional item ... :smile: