Quote Originally Posted by Ajeh View Post
Actually this particualr issue may be solved easier than you expect, should this work ...

Go to:
http://www.zen-cart.com/downloads.php?do=file&id=1292

and download a fresh copy of USPS July 28, 2013 J5 ...

Now be sure to install the files in:
/includes/modules/shipping/usps.php
/includes/languages/english/modules/shipping/usps.php

Note: again the same test in the Developers Tool Kit will reveal that those two lines should read:



Then do the REMOVE, INSTALL and re-configure of the USPS shipping module in the Modules ... Shipping ...
Hi Linda,

Now I only have 1 minor problem left. The Pharm. Company that I repersent set's the shipping cost at a Flat Rate of $6.95. This is for any qunitity sold in US. So if a customer orders 1 bottle shipped to FL. for example the USPS will show a charge of $6.20 or if closer to me much less. I need my Fix Rate to overide any usps shipping cost below $6.95. This is the only way I have to help offset the usps shipping cost that are way over $6.95

I have been using the below 3 or 4 lines of code with the previous usps code going way back 1.2.x. Will this code still work or have some of variables been change where it won't work? I think in your usps.php this mod would be inserted a few lines after line 460.


// Find this around line 225 for USPS -- includes/modules/zen4ezorb/shipping/usps.php
// $methods[] = array('id' => $type,
// 'title' => ((isset($this->types[$type])) ? $this->types[$type] : $type),
// 'cost' => ($cost + MODULE_SHIPPING_USPS_HANDLING) * $shipping_num_boxes);
// */

// Insert this
// ************* 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);

$methods[] = array('id' => $type,
'title' => $title,
'cost' => $adjusted_cost);

// ************* END MODIFICATION *****************

Everything works great now

I now see how I mess up this simple to install module. Rule # 1 don't install modules when tired and it is 3:00am.

Thank you,

Larry

FYI: We only use Priority Mail (PM) 2-day or Express PM or FedEx and the reason I don't just turn PM off is (I call the Fix Rate, Flat Rate Best Way) this way I have option to ship the cheaper way. If a customer wants to be sure to get order in 2 days then they will select Priority Mail and pay the actual shipping cost. But I don't want them being able to select shipping below $6.95. So if you fix the above give it a name and add to Plugin I am sure others would use it.
Again Thank you for all the help and have a great weekend,