Re: NO International quote after installing USPS v15 Ratev4 2013_0127 R2013_0729_J5
Quote:
Originally Posted by
Ajeh
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,
Re: NO International quote after installing USPS v15 Ratev4 2013_0127 R2013_0729_J5
Have you an URL to your site so that I can see your shipping and checkout in action?
Re: NO International quote after installing USPS v15 Ratev4 2013_0127 R2013_0729_J5
Quote:
Originally Posted by
Ajeh
Have you an URL to your site so that I can see your shipping and checkout in action?
Please do. EZorbCalcium.com
also find RWoody zipship that is being used to only allow certain zip codes entered will show a walk in handling price.
Re: NO International quote after installing USPS v15 Ratev4 2013_0127 R2013_0729_J5
Let's pretend I know nothing about your site, Products nor shipping ... other than I maybe shopping with you later as this sounds rather interesting ... :lookaroun
Meanwhile ...
You appear to have 3 Products that you sell ...
Do all 3 Products have the same shipping rules?
It sounds like you are saying Order anything I want in whatever quantity and I can get a single charge of $6.95 ... and that there are other shipping methods available that will be "more" expensive should I chose to use them ...
And that the catch is ... you never want the USPS quote to be "less" than the $6.95 quote for Flat Rate ... is this correct?
Re: NO International quote after installing USPS v15 Ratev4 2013_0127 R2013_0729_J5
Quote:
Originally Posted by
Ajeh
Let's pretend I know nothing about your site, Products nor shipping ... other than I maybe shopping with you later as this sounds rather interesting ... :lookaroun
Meanwhile ...
You appear to have 3 Products that you sell ...
Do all 3 Products have the same shipping rules?
It sounds like you are saying Order anything I want in whatever quantity and I can get a single charge of $6.95 ... and that there are other shipping methods available that will be "more" expensive should I chose to use them ...
And that the catch is ... you never want the USPS quote to be "less" than the $6.95 quote for Flat Rate ... is this correct?
That is correct. 3 products with 3 discount on 3 bottles, 7 bottles, and 12 bottles any combination.
Shipping defaults at $6.95 per order in USA
Customer may also select other USPS Priority Mail or several FedEx shipping methods.
International is set only USPS
If customer is in local area will default to Walk In set by (zipship) assigning zip codes then shipping cost will default to $1.80 local pickup.
These products were first sold only to doctors. I use to have severe osteoporosis back in 2004 and after 3 + years back to normal bone density in 2006 and still there.
Re: NO International quote after installing USPS v15 Ratev4 2013_0127 R2013_0729_J5
If would go between the IF and the $methods[] ...
Code:
if ($this->usps_countries == 'US' && MODULE_SHIPPING_USPS_FIRST_CLASS_FILTER_US == 'True' && preg_match('#First\-Class#i', $type) && $cnt_first > 1) continue;
$methods[] = array('id' => $type_rebuilt,
'title' => $title,
'cost' => $cost,
);
NOTE: Just watch what the $methods[] is made up of as it uses different variables and you just want the $cost ...
NOTE: be aware of what $cost is made up of from this section:
Code:
// COST
// clean out invalid characters
$cost = preg_replace('/[^0-9.]/', '', $cost);
down to the $methods[] ...
Re: NO International quote after installing USPS v15 Ratev4 2013_0127 R2013_0729_J5
Hi Linda,
It seems to be working fine now. Notice below code that I had to "Remark out" the 4 lines after //***** End Mod **** cause I was getting both 'cost' displayed.
One last question. in your $methods[] = array('id' => $type_rebuilt,
you have _rebuilt after $type.
Should I change my $methods[] = array('id' => $type, to be same as yours?
Thanks so much for the help and have a wonderful week,
Larry Penny
if ($this->usps_countries == 'US' && MODULE_SHIPPING_USPS_FIRST_CLASS_FILTER_US == 'True' && preg_match('#First\-Class#i', $type) && $cnt_first > 1) continue;
// ************* 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 *****************
// $methods[] = array('id' => $type_rebuilt,
// 'title' => $title,
// 'cost' => $cost,
// );
} else {
Re: NO International quote after installing USPS v15 Ratev4 2013_0127 R2013_0729_J5
Could you Zip your file:
/includes/modules/shipping/usps.php
and post it as an attachment so that I can see the whole thing?
1 Attachment(s)
Re: NO International quote after installing USPS v15 Ratev4 2013_0127 R2013_0729_J5
Quote:
Originally Posted by
Ajeh
Could you Zip your file:
/includes/modules/shipping/usps.php
and post it as an attachment so that I can see the whole thing?
Attachment 12857
Here is the attachment if I did it right.
Re: NO International quote after installing USPS v15 Ratev4 2013_0127 R2013_0729_J5
You did it right thanks ... :smile: