Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2012
    Location
    Kentucky
    Posts
    38
    Plugin Contributions
    0

    Default USPS options per item

    With USPS module enabled, and weight of item is 8 ounces, cart shows all my options(which are only 2 for domestic - First Class & Priority).
    I would prefer that the only available USPS option for 8 ounces be First Class. I have to keep Priority available(in the module) for items that are too heavy for First Class. Is this possible?
    Thanks,
    Robert

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

    Default Re: USPS options per item

    You could customize the usps.php shipping module to not show Priority when the weight is .5 by editing:
    /includes/modules/shipping/usps.php

    and adding the code in RED:
    Code:
              // add $this->usps_countries to title to test actual country
              // bof: skip PRIORITY when weight is = .5
              if ($usps_shipping_weight == .5 && $type == 'PRIORITY') {
                // skip shipping for PRIORITY on weight = .5
              } else {
                        $methods[] = array('id' => $type,
                                           'title' => $title,
                                           'cost' => ($cost * $shipping_num_boxes) + (MODULE_SHIPPING_USPS_HANDLING_METHOD == 'Box' ? $usps_handling_fee * $shipping_num_boxes : $usps_handling_fee) );
              }
              // eof: skip PRIORITY when weight is = .5
    
              // bof: sort by contributed by Marco B
    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!]
    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
    Jul 2012
    Location
    Kentucky
    Posts
    38
    Plugin Contributions
    0

    Default Re: USPS options per item

    [QUOTE=Ajeh;1158781]You could customize the usps.php shipping module to not show Priority when the weight is .5 by editing:
    /includes/modules/shipping/usps.php

    Worked like a charm! You are amazing.
    Thank you,
    Grandpa
    p,s, Now----if only I could get "Estimate Shipping Cost" to not display when item is "Free Shipping" or a "Download"(as customers are confused by this).

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

    Default Re: USPS options per item

    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!]
    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. Two price options per item
    By deker in forum General Questions
    Replies: 11
    Last Post: 20 Oct 2009, 02:15 PM
  2. Item specific shipping options with USPS
    By swingandmiss in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 15 Oct 2008, 09:23 PM
  3. Shipping Options Per Item
    By RosscoB in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 26 Feb 2008, 08:50 AM
  4. multiple options and qty per item
    By marinochka13 in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 7 Jan 2008, 10:17 PM

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