Results 1 to 5 of 5
  1. #1
    Join Date
    Dec 2010
    Posts
    6
    Plugin Contributions
    0

    Default UPSXML - minimum shipping charge

    I searched for this and could not find what I was looking for. Besides me going in and modifying the code myself, I was hoping that there is an option somewhere in UPSXML shipping module.

    I want to have a minimum shipping charge of $X.00. Is this possible with the UPSXML module? I could not find it anywhere.

    I currently do add a % for the handling fee but it isn't enough to cover my basic costs.

    Thanks in advance.

    I have the latest Zen Cart installed and UPSXML.

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

    Default Re: UPSXML - minimum shipping charge

    You would need to customize the code to handling minimum charges if using a Handling Fee cannot manage the prices correctly 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!

  3. #3
    Join Date
    Dec 2010
    Posts
    6
    Plugin Contributions
    0

    Default Re: UPSXML - minimum shipping charge

    I made this more difficult than it should have been

    added this in includes/modules/shipping/upsxml.php
    Code:
    // change the 8.00 to whatever MINIMUM charge you want for the UPS Shipping Fee
    $cost = ( ( $cost < 8.00 ) ? 8.00 : $cost );
    right before
    Code:
    $methods[] = array('id' => $type, 'title' => $_type, 'cost' => ($this->handling_fee + $cost));

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

    Default Re: UPSXML - minimum shipping charge

    Thanks for the update on what method 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!

  5. #5
    Join Date
    Dec 2010
    Posts
    6
    Plugin Contributions
    0

    Default Re: UPSXML - minimum shipping charge

    I experienced another issue with the flat rate fee that my customer wanted.

    The customer wanted a minimum of $8.00 for shipping, but anything greater than $8.00 add a 20% handling fee.

    I had a difficult time getting the UPSXML module to calculate a 20% handling fee. I saw some instructions that stated to use 20.0 for a % but that was just adding $20.00 to the shipping cost.

    Here is what I did.
    Code:
    // change the 8.00 to whatever MINIMUM charge you want for the UPS Shipping Fee
    
    $oldHandlingFee = $this->handling_fee;
    
    $cost = ($cost < 8.00 ? 8.00 : $cost);
    
    //print "BEFORE | $type, Shipping Cost = $cost, Handling Fee = $handlingFee, " . $this->handling_fee . "<br />";
    
    if( strstr( $this->handling_fee, "%" ) ) {
    	$isPercent = 1;
    } else {
    	$isPercent = 0;
    }
    
    if( $isPercent ) {
    	if( floatval($cost) <= 8.00 ) {
    		$handlingFee = 0;
    		$this->handling_fee = $handlingFee;
    	} else {
    		$handlingFee = ( $cost * ( floatval( $this->handling_fee ) / 100 ) );
    		$this->handling_fee = $handlingFee;
    	}
    }
    
    // debugging
    //print "AFTER | $type, Shipping Cost = $cost, Handling Fee = $handlingFee, " . $this->handling_fee . "<br />";
    
    
                    $methods[] = array('id' => $type, 'title' => $_type, 'cost' => ($this->handling_fee + $cost));
    
    // set the handling fee back to its original value to calc the rest of the shipping handling fees
    $this->handling_fee = $oldHandlingFee;
    What I did was put 20% in the handling fee field when in Admin->Modules->Shipping->UPSXML

    It now works beautifully.

 

 

Similar Threads

  1. v154 Setting minimum charge for USPS Shipping
    By mystic-journey in forum Addon Shipping Modules
    Replies: 9
    Last Post: 24 Jun 2015, 10:36 PM
  2. perweightunit minimum shipping charge?
    By JorgeR in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 18 Sep 2010, 02:59 AM
  3. UPSXML shipping discount
    By crawfish in forum Addon Shipping Modules
    Replies: 4
    Last Post: 23 Apr 2009, 07:55 PM
  4. Minimum Charge to Include Attribute Price
    By Stuff4Toys in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 24 Jan 2008, 03:22 PM
  5. Added charge, one-time deposit/fee, minimum order
    By Pozitech in forum Managing Customers and Orders
    Replies: 2
    Last Post: 7 Nov 2006, 03:40 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