Zen Cart Logo
Forums / Addon Shipping Modules / Is the USPS shipping module required to ship with USPS?

Is the USPS shipping module required to ship with USPS?

Views: 3,707

Results 1 to 4 of 4
13 Feb 2012, 9:03 PM
#1
yeahwhatever avatar

yeahwhatever

New Zenner

Join Date:
Apr 2009
Posts:
5
Plugin Contributions:
0

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.

13 Feb 2012, 11:19 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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

13 Feb 2012, 11:28 PM
#3
yeahwhatever avatar

yeahwhatever

New Zenner

Join Date:
Apr 2009
Posts:
5
Plugin Contributions:
0

Re: Is the USPS shipping module required to ship with USPS?

Ajeh:

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

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.

13 Feb 2012, 11:58 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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:

// 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)));