Results 1 to 6 of 6
  1. #1
    Join Date
    Aug 2011
    Location
    Indiana
    Posts
    66
    Plugin Contributions
    0

    Default USPS v15 Ratev3 2013_0127 Disable for items over 2lbs?

    I would like to configure the USPS module to be disabled for items that are more than 2 pounds. I think this requires editing the php file,but I am not sure what needs to change and where.
    This is a great module, it installed without a problem.

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

    Default Re: USPS v15 Ratev3 2013_0127 Disable for items over 2lbs?

    Do you want ALL USPS to be turned off when the Order is >= 2lbs?
    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. #3
    Join Date
    Aug 2011
    Location
    Indiana
    Posts
    66
    Plugin Contributions
    0

    Default Re: USPS v15 Ratev3 2013_0127 Disable for items over 2lbs?

    My product is supplied by a drop shipper. They do not use USPS for anything over 2 pounds but rather they use UPS. I have both modules installed and would like only UPS available when the total weight is over 2 pounds.

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

    Default Re: USPS v15 Ratev3 2013_0127 Disable for items over 2lbs?

    You can customize the code for preventing USPS on Orders of 2lbs or more:
    /includes/modules/shipping/usps.php

    with the code in RED:
    Code:
        // disable only when entire cart is free shipping
        if (zen_get_shipping_enabled($this->code)) {
          $this->enabled = ((MODULE_SHIPPING_USPS_STATUS == 'True') ? true : false);
        }
    
    // bof: disable USPS when weight is >= 2
    if (!IS_ADMIN_FLAG) {
      if ($_SESSION['cart']->weight >= 2) {
        $this->enabled = false;
      }
    }
    // eof: disable USPS when weight is >= 2
    
        if ($this->enabled) {
    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. #5
    Join Date
    Aug 2011
    Location
    Indiana
    Posts
    66
    Plugin Contributions
    0

    Default Re: USPS v15 Ratev3 2013_0127 Disable for items over 2lbs?

    Thank very much, it worked nicely.

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

    Default Re: USPS v15 Ratev3 2013_0127 Disable for items over 2lbs?

    You are most welcome ... thanks for the update that this worked for you ...
    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!

 

 

Similar Threads

  1. v152 USPS retiring RateV3 API ...
    By lat9 in forum Addon Shipping Modules
    Replies: 4
    Last Post: 13 May 2014, 06:42 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. Replies: 21
    Last Post: 5 Aug 2013, 11:57 PM
  4. v139e USPS RateV3 vs. RateV4
    By jimweinberg in forum Addon Shipping Modules
    Replies: 6
    Last Post: 13 Sep 2012, 12:27 AM
  5. USPS RateV3 not working
    By Dopefish in forum Addon Shipping Modules
    Replies: 5
    Last Post: 23 Mar 2012, 12:01 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