Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2008
    Posts
    9
    Plugin Contributions
    0

    Default percentage (%) based handling charge

    I have searched through the eStart book, this forum, and Google and still can't find the answer.

    What I am trying to do is set the handling fee as a percentage.

    I imagine if I can find the code that does the math: shipping + handling = S&H total and change it to shipping * handling = S&H total it would allow me to input 0.40 and that would give me a percentage based handling price.

    Of course this is only theory. Am I on the right track? If so, where in the files might I be able to find where the calculation is being made?

    I am trying to wind up this project this weekend so any help you can offer within the next couple of days would be greatly appreciated.

    thank you!

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default Re: percentage (%) based handling charge

    It looks like you'd have to make changes in each shipping module.

    If you use the Developers Tool Kit and search for 'handling' you'll see a pretty small list of files where that stuff is done.

  3. #3
    Join Date
    Jun 2008
    Posts
    9
    Plugin Contributions
    0

    Default Re: percentage (%) based handling charge

    Ok, thanks for that tip.

    But if my client is ONLY offering UPS, does that still mean I have to make those changes in all the files?

    I will start to look into it and let you know what I find. Thanks.

  4. #4
    Join Date
    Jun 2008
    Posts
    9
    Plugin Contributions
    0

    Default Re: percentage (%) based handling charge

    Thanks Stevesh!

    I found this line:

    Code:
    'cost' => ($cost + MODULE_SHIPPING_UPS_HANDLING) * $shipping_num_boxes);
    in my UPS module on line 181

    and changed it to:

    Code:
    'cost' => ($cost + ($cost * MODULE_SHIPPING_UPS_HANDLING)) * $shipping_num_boxes);
    And that seems to do the trick... at least if what I remember from math class is right =P

 

 

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. Handling charge?
    By CCD in forum Built-in Shipping and Payment Modules
    Replies: 4
    Last Post: 20 Jan 2010, 11:26 AM
  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. Adding Percentage Handling fee UPS
    By halestorm in forum Built-in Shipping and Payment Modules
    Replies: 7
    Last Post: 4 Nov 2009, 07:28 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