Results 1 to 10 of 10
  1. #1
    Join Date
    May 2015
    Location
    New Hampshire
    Posts
    4
    Plugin Contributions
    0

    Default Setting minimum charge for USPS Shipping

    Hello,

    I've been trying to figure out how to set a minimum charge for my USPS shipping. I do not want to add a handling fee on because obviously this will be added to all orders. Since my dropshipper does a $8.00 minimum shipping amount, i would also like to have this. Could someone please explain to me how and where I can do this?

    Thank you so much in advance!

    Regina

  2. #2
    Join Date
    Sep 2008
    Location
    WA
    Posts
    555
    Plugin Contributions
    0

    Default Re: Setting minimum charge for USPS Shipping

    What about doing zone rates? I don't know what you sell to see if this is feasible or not for your situation?

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

    Default Re: Setting minimum charge for USPS Shipping

    What shipping methods on USPS are you using?

    Are you wanting this Minimum Charge on *all* methods that are not already >= $8.00 for everyone regardless of US or International?
    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!

  4. #4
    Join Date
    May 2015
    Location
    New Hampshire
    Posts
    4
    Plugin Contributions
    0

    Default Re: Setting minimum charge for USPS Shipping

    I don't know too much about zone rates and I would like this to be on all shipping methods but I am most concerned about the USPS method since that is what I am currently using. Thank you so much!!!

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

    Default Re: Setting minimum charge for USPS Shipping

    You could edit the module:
    /includes/modules/shipping/usps.php

    by adding the code in RED:
    Code:
    // switch comment marks to show $hiddenCost: from quote title
    $show_hiddenCost =  ' $hiddenCost: ' . $hiddenCost;
    //$show_hiddenCost = '';
    
    // bof: force minimum of $8.00
    if ($cost < 8.00) {
      $cost = 8.00;
    }
    // eof: force minimum of $8.00
    
              $methods[] = array('id' => $type_rebuilt,
                                 'title' => $title . $show_hiddenCost,
                                 'cost' => $cost,
                                 'insurance' => $usps_insurance_charge,
                                );
    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!

  6. #6
    Join Date
    Jul 2012
    Posts
    16,733
    Plugin Contributions
    17

    Default Re: Setting minimum charge for USPS Shipping

    Quote Originally Posted by mystic-journey View Post
    I don't know too much about zone rates and I would like this to be on all shipping methods but I am most concerned about the USPS method since that is what I am currently using. Thank you so much!!!
    Ajeh is asking that when shipping anything/everything via USPS regardless of size, destination, speed, etc. That if USPS is being used do you want the minimum charge to be $8.00?
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  7. #7
    Join Date
    May 2015
    Location
    New Hampshire
    Posts
    4
    Plugin Contributions
    0

    Default Re: Setting minimum charge for USPS Shipping

    Yes, that is exactly what I want. The minimum charge to be $8.00. Thank you.

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

    Default Re: Setting minimum charge for USPS Shipping

    You are most welcome ... glad to have been able to help!

    Remember the Zen Cart Team when you are rich and famous!
    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. #9
    Join Date
    May 2015
    Location
    New Hampshire
    Posts
    4
    Plugin Contributions
    0

    Default Re: Setting minimum charge for USPS Shipping

    Thank you so much!! This worked:) BTW... I asked for a quote from someone to do this for me and was quoted $80/hr and it would take 2 hours. I can't tell you how thrilled I am that I pushed ahead and asked questions.

  10. #10
    Join Date
    Jul 2012
    Posts
    16,733
    Plugin Contributions
    17

    Default Re: Setting minimum charge for USPS Shipping

    BTW, though I hadn't seen that Ajeh had provided the solution (was reading emails from the thread rather than the thread itself) I had come up with something a little less "intrusive" though haven't tested it, just a "thought" experiment, but was something I was thinking could work for others in the future... Involves creating 2 files and using the observer/notifier systems. To be ever more elaborate could add some configuration items into the USPS script for install/remove to provide a field on the admin panel to replace the hard coded 8.00 that is below. Was written with consideration of the "standard" update function possibly going away (I doubt) so yes the same code is listed twice, but with the redesign in ZC 1.5.3, there are a few more "options".



    First file (suggest uploading "last")

    includes/auto_loaders/config.shipping_usps_quotes.php:
    Code:
    <?php 
    // loading of the class
    $autoLoadConfig[10][] = array('autoType'=>'class',
                                  'loadFile'=>'observers/class.shipping_usps_quotes.php');
    $autoLoadConfig[199][] = array('autoType'=>'classInstantiate',
                                  'className'=>'shipping_usps_quotes',
                                  'objectName'=>'shipping_usps_quotes_obj');
    
    ?>
    Second file (suggest loading "first")
    includes/classes/observers/class.shipping_usps_quotes.php:
    Code:
    <?php
    class shipping_usps_quotes extends base {
      function shipping_usps_quotes () {
        global $zco_notifier;
        $this->attach($this, array('NOTIFY_SHIPPING_USPS_QUOTES_READY_TO_RETURN'));
        
      } // end initialization of class
      //Below is applicable to ZC version 1.5.3 and above, will be run instead of the update function.
      function updateNotifyShippingUspsQuotesReadyToReturn(&$callingClass, $notifier, $paramsArray = array()) {
        foreach ($callingClass->quotes['methods'] as $method) {
          $method['cost'] = max($method['cost'], 8.00);
        } // end loop on all methods
      } // end observer update listener
     
      //Below is applicable to all ZC versions with notify system associated.
      function update(&$callingClass, $notifier, $paramsArray = array()) {
        if ($notifier == 'NOTIFY_SHIPPING_USPS_QUOTES_READY_TO_RETURN') {
          foreach ($callingClass->quotes['methods'] as $method) {
            $method['cost'] = max($method['cost'], 8.00);
          } // end loop on all methods
        } // not a NOTIFY_SHIPPING_USPS_QUOTES_READY_TO_RETURN notifier
      } // end update
    } // end class
    Last edited by mc12345678; 24 Jun 2015 at 10:39 PM.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 

Similar Threads

  1. UPSXML - minimum shipping charge
    By gwolanin in forum Addon Shipping Modules
    Replies: 4
    Last Post: 12 Jan 2011, 09:33 PM
  2. perweightunit minimum shipping charge?
    By JorgeR in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 18 Sep 2010, 02:59 AM
  3. Setting attribute related to shipping charge
    By pixelfix in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 28 Mar 2009, 02:31 AM
  4. USPS Shipping charge calculation, many items = less accuracy
    By Olof Holte in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 11 Mar 2009, 09:29 PM
  5. Shipping Charge Setting Assistance
    By smykey in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 31 Aug 2008, 04:46 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