Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    Nov 2009
    Posts
    6
    Plugin Contributions
    0

    Default Different UPS shipping options based on Zip/State/?

    I've searched the threads, but haven't found a solution to this (seemingly simple) problem:

    We want to offer UPS Ground shipping as an option only for California (in addition to Overnight & 2nd Day). All other states/zips should only have Overnight & 2nd Day as options.

    Yes, we have a UPS account and can pull the Overnight & 2nd Day costs, just can't seem to get Ground to come up for CA only.

    Any help would be much appreciated!

    Thanks,
    Jeff

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

    Default Re: Different UPS shipping options based on Zip/State/?

    You could customize the ups.php shipping module with something like:
    Code:
          for ($i=0; $i<$qsize; $i++) {
            list($type, $cost) = each($upsQuote[$i]);
            // BOF: UPS USPS
            if ($type=='STD') {
              if ($std_rcd) continue;
              else $std_rcd = true;
            }
            if (!in_array($type, $allowed_methods)) continue;
            // EOF: UPS USPS
    
            // Show UPS Ground only for California
            if (($order->delivery['country']['id'] == 223 && $order->delivery['zone_id'] == 12)) {
              $show_ground= true;
            } else {
              $show_ground= false;
            }
          
            if ($type == 'GND' && !$show_ground) {
              // show nothing
            } else {
              $methods[] = array('id' => $type,
                                 'title' => $this->types[$type],
                                 'cost' => (($cost + MODULE_SHIPPING_UPS_HANDLING) * $shipping_num_boxes) + $inspection_fee);
            }
          }
    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
    Nov 2009
    Posts
    6
    Plugin Contributions
    0

    Default Re: Different UPS shipping options based on Zip/State/?

    Brilliant! I still need to run a few tests, but that looks to be the ticket.

    Many thanks!

 

 

Similar Threads

  1. Disable UPS options by state?
    By ndr2010 in forum General Questions
    Replies: 2
    Last Post: 16 Apr 2010, 07:50 PM
  2. How to set up different shipping options than what UPS has already?
    By bnieukirk in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 6 Sep 2009, 06:03 AM
  3. UPS shipping-ONE category needs a different "ship from" zip
    By staceyx in forum Built-in Shipping and Payment Modules
    Replies: 20
    Last Post: 18 Jul 2009, 03:49 PM
  4. UPS not adjusting shipping based on zip code
    By vintagetwitch in forum Built-in Shipping and Payment Modules
    Replies: 4
    Last Post: 15 Dec 2008, 10:40 PM
  5. Shipping based on State/Province or Zip?
    By Dannie in forum Built-in Shipping and Payment Modules
    Replies: 5
    Last Post: 22 Jan 2008, 08:57 AM

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