Results 1 to 2 of 2

Hybrid View

  1. #1
    Join Date
    Jan 2009
    Posts
    22
    Plugin Contributions
    0

    Default Setting Maximum UPS Shipping Cost

    Is it possible to set a maximum cost for UPS Ground shipping? I would want the actual costs to be used in the shipping estimate until the maximum charge is reached.

    For example, if our maximum shipping cost was $19.99, I would like to see UPS Ground show $12.50 if that was the cost, but no more than $19.99 if the actual cost were higher.

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

    Default Re: Setting Maximum UPS Shipping Cost

    You could customize the code based on the type in this section of code for the ups.php shipping module:
    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
            $methods[] = array('id' => $type,
                               'title' => $this->types[$type],
                               'cost' => ($cost + MODULE_SHIPPING_UPS_HANDLING) * $shipping_num_boxes);
          }
    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. Setting up Different Shipping Cost
    By StevenUK in forum General Questions
    Replies: 5
    Last Post: 12 Feb 2016, 03:50 PM
  2. Replies: 0
    Last Post: 28 Nov 2010, 05:58 AM
  3. UPS shipping module setting
    By angelfox in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 12 Aug 2010, 08:46 PM
  4. Maximum Shipping Cost and Bank Transfer Charge
    By ffodnib in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 20 Apr 2009, 02:02 PM
  5. UPS Shipping Cost Problem
    By miles in forum Built-in Shipping and Payment Modules
    Replies: 4
    Last Post: 8 Sep 2008, 02:30 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