Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2006
    Location
    near Atlanta Georgia
    Posts
    99
    Plugin Contributions
    0

    Default UPS module - let UPS determine residential or commercial???

    Is it possible to set up the UPS shipping module to let UPS determine if the address is a residential or commercial address??? And if so can it also be set up this way in the shipping estimator? I wouldn't want a customer to estimate shipping then get to checkout and find it higher because of the address type....just saying....
    John aka "GoldBuckle"
    President/CEO
    www.discountprintingservice.com

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    68,563
    Plugin Contributions
    6

    Default Re: UPS module - let UPS determine residential or commercial???

    You could try customizing the code in UPS and change the function _upsRescom to read:

    Code:
      function _upsRescom($foo) {
        global $order;
    /*
        switch ($foo) {
          case 'RES': // Residential Address
            $this->_upsResComCode = '1';
            break;
          case 'COM': // Commercial Address
            $this->_upsResComCode = '0';
            break;
        }
    */
    
    //echo 'UPS company: ' . ($order->delivery['company'] == '' ? 'No company' : 'Got a company') . ' len:' . strlen($order->delivery['company']) . '<br>';
        if ($order->delivery['company'] == '') {
            $this->_upsResComCode = '1';
        } else {
            $this->_upsResComCode = '0';
        }
    
      }
    Now if there is a company name it will switch to commercial ...
    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.4]
    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. UPS Residential vs. Commercial rates
    By TCSDCC in forum Built-in Shipping and Payment Modules
    Replies: 20
    Last Post: 11 Mar 2013, 03:36 PM
  2. UPS: Commercial vs Residential
    By asdweb in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 15 Jul 2008, 01:41 PM
  3. UPS Residential or Commercial
    By JackA in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 22 May 2008, 05:24 PM
  4. UPS XML commercial vs residential
    By hrm in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 30 Sep 2006, 02:39 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
  •