Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2013
    Posts
    37
    Plugin Contributions
    0

    Default Different USPS and UPS Shipping types for perishable vs non-perishable items?

    Hi, I am using ZC version 1.5.1 and php version 5.3. I am having a small problem with the shipping methods. I have a product which is perishable, and so needs to be shipped by priority or express mail or UPS Express only. It has a shipping weight of 2 pounds, and all perishable items are in one category.

    This item also will not fit into any of the flat rate boxes, but other products on my site will fit into the flat rate boxes, so I would like to be able to offer that option in the modules/shipping area. When I leave the flat rate boxes as an option in the shipping module area, it always includes flat rate box as a shipping option for this category of items, and I need that to be removed for this one category of items.

    Since the items in this master category will not fit into the flat rate boxes, is there a way to disable that particular shipping option for just that master category, and also to disable "standard shipping" and UPS ground for that one category? Thank you

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

    Default Re: Different USPS and UPS Shipping types for perishable vs non-perishable items?

    If you edit your UPS shipping module:
    /includes/modules/shipping/ups.php

    and add the line in RED:
    Code:
            if (!in_array($type, $allowed_methods)) continue;
            // EOF: UPS USPS
    echo 'UPS $type: ' . $type . '<br>';
            $cost = preg_replace('/[^0-9.]/', '',  $cost);
    then try a shipping quote, what is the $type that shows for the method you want to not show?

    Is it:
    UPS $type: GND

    And when 1 or more of these Products are in the cart, you want USPS to be disabled, 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!

  3. #3
    Join Date
    Aug 2013
    Posts
    37
    Plugin Contributions
    0

    Default Re: Different USPS and UPS Shipping types for perishable vs non-perishable items?

    No, I am sorry if my question was unclear. I want to be able to use both USPS and UPS, but only the priority mail without flat rate boxes. This is because USPS is cheaper than UPS in general, especially when it comes to priority and express.

    So, for these products which are all in one master category, I would like to offer only the option for priority mail, express mail, and UPS express or FedEx express, with no ground or flat rate box (the flat rate boxes will not fit the items I am trying to change this for) options included. But there are other items in my store which will fit in the flat rate boxes, and since the flat rate boxes are cheaper than regular priority, I want to offer this option for those other items in my store. Is this what the code you provided will do?

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

    Default Re: Different USPS and UPS Shipping types for perishable vs non-perishable items?

    Edit the file:
    /includes/modules/shipping/usps.php

    and add the line in RED:
    Code:
    //$show_hiddenCost =  ' $hiddenCost: ' . $hiddenCost;
    $show_hiddenCost = '';
    echo '$type_rebuilt: ' . $type_rebuilt . '<br>';
              $methods[] = array('id' => $type_rebuilt,
                                 'title' => $title . $show_hiddenCost,
                                 'cost' => $cost,
                                );
    which ones do you want to keep and which ones do you not want to show for this specific master_categories_id?
    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. Replies: 5
    Last Post: 2 Aug 2011, 07:27 AM
  2. Replies: 2
    Last Post: 27 Oct 2010, 01:45 PM
  3. Flat rate just for a set cities and UPS or USPS shipping rates for States
    By pkalout in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 9 Oct 2009, 04:20 PM
  4. Different shipping methods for different product types?
    By talisman-studios in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 17 Sep 2008, 04:59 PM
  5. Offer UPS Shipping for some and USPS for other items?
    By elgrcg in forum Built-in Shipping and Payment Modules
    Replies: 4
    Last Post: 11 Sep 2008, 04:54 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