Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 22
  1. #11
    Join Date
    Apr 2006
    Location
    Midland TX
    Posts
    428
    Plugin Contributions
    0

    Default Re: NO International quote after installing USPS v15 Ratev4 2013_0127 R2013_0729_J5

    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,

  2. #12
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #13
    Join Date
    Apr 2006
    Location
    Midland TX
    Posts
    428
    Plugin Contributions
    0

    Default Re: NO International quote after installing USPS v15 Ratev4 2013_0127 R2013_0729_J5

    Quote Originally Posted by Ajeh View Post
    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.
    Last edited by EZorb; 4 Aug 2013 at 02:33 AM.

  4. #14
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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 ...

    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?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #15
    Join Date
    Apr 2006
    Location
    Midland TX
    Posts
    428
    Plugin Contributions
    0

    Default Re: NO International quote after installing USPS v15 Ratev4 2013_0127 R2013_0729_J5

    Quote Originally Posted by Ajeh View Post
    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 ...

    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.

  6. #16
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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[] ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  7. #17
    Join Date
    Apr 2006
    Location
    Midland TX
    Posts
    428
    Plugin Contributions
    0

    Default 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 {

  8. #18
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  9. #19
    Join Date
    Apr 2006
    Location
    Midland TX
    Posts
    428
    Plugin Contributions
    0

    Default Re: NO International quote after installing USPS v15 Ratev4 2013_0127 R2013_0729_J5

    Quote Originally Posted by Ajeh View Post
    Could you Zip your file:
    /includes/modules/shipping/usps.php

    and post it as an attachment so that I can see the whole thing?
    usps.zip

    Here is the attachment if I did it right.

  10. #20
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: NO International quote after installing USPS v15 Ratev4 2013_0127 R2013_0729_J5

    You did it right thanks ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. v151 USPS v15 Ratev4 2014_0126 R2014_0126_K1 testing issues
    By EricRas in forum Built-in Shipping and Payment Modules
    Replies: 6
    Last Post: 31 Jan 2014, 12:36 AM
  2. v151 USPS v15 install issue
    By LizardLeg in forum Addon Shipping Modules
    Replies: 9
    Last Post: 9 Jan 2014, 12:30 AM
  3. v150 USPS v15 Ratev3 2013_0127 Disable for items over 2lbs?
    By 14all41 in forum Addon Shipping Modules
    Replies: 5
    Last Post: 12 Mar 2013, 12:11 AM
  4. USPS v15 Rate 3b (latest) not working with First Class International
    By divinelighting in forum Addon Shipping Modules
    Replies: 2
    Last Post: 27 Jan 2013, 04:56 PM
  5. Unable to get USPS to quote international shipping
    By elgrcg in forum General Questions
    Replies: 3
    Last Post: 13 Jan 2011, 12:41 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR