Is the USPS shipping module required to ship with USPS?
I apologize if I have missed the answer to this but I have searched... and it is Monday and I am bleary eyed from trying to figure this out.
The issue is this: The client wants to offer both USPS and FedEx shipping but at a rates they have predetermined for their own reasons that I don't quite understand. The rates are something like $5.35 for the first lb, + $1.25 for each additional lb (USPS) and something slightly different for FedEx.
I can see where the by weight/unit module will calculate the cost -- but I need it to round up the weight. Right now it is almost calculating it right, but because it's not rounding up, I'm not getting the right amount. Ex. an order weighing 2.88 lbs should be showing $7.85 (USPS) shipping and it's showing $7.70.
Settings
Tare = 0:0
Shipping cost = 1.25
Handling fee = 4.10
Handling per order or box = order
That's the first issue, the second is that while I can almost get this to work for one shipping method, how do I do both?
Yes, it would probably be less hassle right now to use the USPS module, but going through the forums and seeing the issues people are having with that because of the USPS site gives me pause about heading in that direction.
Re: Is the USPS shipping module required to ship with USPS?
For USPS if you want quotes from their server you should use the current January 22, 2010 release:
http://www.zen-cart.com/forum/showthread.php?t=191406
Re: Is the USPS shipping module required to ship with USPS?
Quote:
Originally Posted by
Ajeh
Thanks Linda, I appreciate your input! But I don't want to use the USPS module. I need the calculations to be made based on weight, but not tied directly to the USPS site.
Re: Is the USPS shipping module required to ship with USPS?
Then you will need to write your own shipping module to do this calculation based on weight ...
Something like customize the Flat Rate flat shipping module and set its rate to 0.00 then the code change:
Code:
// class methods
function quote($method = '') {
global $order;
global $shipping_weight;
$chk_weight = round($shipping_weight,0);
//$5.35 for the first lb, + $1.25
$chk_weight_charge = ($chk_weight > 1 ? 5.35 + ($chk_weight - 1) * 1.25 : 5.35);
//echo 'I see: ' . $chk_weight_charge;
$this->quotes = array('id' => $this->code,
'module' => MODULE_SHIPPING_FLAT_TEXT_TITLE,
'methods' => array(array('id' => $this->code,
'title' => MODULE_SHIPPING_FLAT_TEXT_WAY,
'cost' => MODULE_SHIPPING_FLAT_COST + $chk_weight_charge)));