Results 1 to 8 of 8
  1. #1
    Join Date
    Jun 2007
    Posts
    7
    Plugin Contributions
    0

    Default Adding Percentage Handling fee UPS

    http://www.zen-cart.com/forum/showthread.php?t=60865

    I really need to add a handling fee onto my UPS charges that is a percentage of the actual UPS rate. The above thread explains in a little more detail.

    We add insurance to our shipments and this would help us recoup some of that cost.

    Thanks for any help.

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

    Default Re: Adding Percentage Handling fee UPS

    Change the code to:
    PHP Code:
            $methods[] = array('id' => $type,
                               
    'title' => $this->types[$type],
                               
    'cost' => ($cost + ($cost MODULE_SHIPPING_UPS_HANDLING)) * $shipping_num_boxes); 
    Then set the Handling to:
    .20
    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.5]
    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
    Jun 2007
    Posts
    7
    Plugin Contributions
    0

    Default Re: Adding Percentage Handling fee UPS

    Brilliant!

    Makes perfect sense when I see it now.

    Thanks...

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

    Default Re: Adding Percentage Handling fee UPS

    Glad that this worked for you ...

    Remember us when you are rich and famous ...
    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.5]
    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
    Mar 2007
    Posts
    20
    Plugin Contributions
    0

    Default Re: Adding Percentage Handling fee UPS

    I would like to do this also. A couple of questions...

    1) Is the file that I need to edit includes/modules/shipping/ups.php ?

    2) I am new to ZenCart. Is there a 'best practice' for making this change, so that future upgrades will not remove the edit? I guess what I'm asking is whether you can do an override for modules like this? Or other method?

    Thanks in advance!!

    - Scott

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

    Default Re: Adding Percentage Handling fee UPS

    There are no overrides for the shipping modules so either you need to save a copy, clone an existing shipping module or remember to re-write it with each upgrade ...

    If you wish to customize the UPS shipping module then you would customize the:
    /includes/modules/shipping/ups.php

    Neat, eh?
    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.5]
    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!

  7. #7
    Join Date
    Mar 2007
    Posts
    20
    Plugin Contributions
    0

    Default Re: Adding Percentage Handling fee UPS

    Thanks Linda! I edited ups.php for now, and it is working perfectly! I will read up on cloning and try that next... that sounds like a much safer way to go.

    Thanks again!!

    - Scott

  8. #8
    Join Date
    Nov 2008
    Posts
    19
    Plugin Contributions
    0

    Default Re: Adding Percentage Handling fee UPS

    Quote Originally Posted by Ajeh View Post
    Glad that this worked for you ...

    Remember us when you are rich and famous ...
    You're awesome!!!

 

 

Similar Threads

  1. Handling Fee as Percentage?
    By Rydel in forum Built-in Shipping and Payment Modules
    Replies: 51
    Last Post: 17 Apr 2019, 06:35 PM
  2. UPS and USPS Handling Fee
    By Alexiss in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 14 Aug 2011, 07:41 PM
  3. Needing an additional percentage handling fee
    By BxC in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 4 Nov 2009, 08:46 PM
  4. UPS Mod: Handling Fee not showing
    By benpar in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 24 Sep 2007, 06:54 PM

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR