Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2008
    Posts
    1
    Plugin Contributions
    0

    Default Needing an additional percentage handling fee

    a friend of mine had me install and configure his zencart... we have it doing USPS rates plus a flat handling fee per box... now he wants to calculate a percentage of the (new) total cost (after shipping and handling has been considered once), and add that in as part of the handling fee

    should I make changes directly to the USPS module? everytime I try putting P% into the handling fee slot, it ignores the % and just treats it as the per-box rate.

  2. #2
    Join Date
    Mar 2008
    Posts
    10
    Plugin Contributions
    0

    Default Re: Needing an additional percentage handling fee

    I also am interested in doing this. Anyone find an answer?

  3. #3
    Join Date
    Nov 2009
    Posts
    2
    Plugin Contributions
    0

    Default Re: Needing an additional percentage handling fee

    Quote Originally Posted by BxC View Post
    a friend of mine had me install and configure his zencart... we have it doing USPS rates plus a flat handling fee per box... now he wants to calculate a percentage of the (new) total cost (after shipping and handling has been considered once), and add that in as part of the handling fee

    should I make changes directly to the USPS module? everytime I try putting P% into the handling fee slot, it ignores the % and just treats it as the per-box rate.
    Ajeh explains
    /includes/modules/shipping/ups.php
    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
    Here is the original thread: http://www.zen-cart.com/forum/showthread.php?p=802685



    To add a percentage of the shipping cost to the shipping cost I came across to an answer from OS cart:
    /includes/modules/shipping/ups.php

    Close to line 180 change the line:
    'cost' => ($cost + MODULE_SHIPPING_UPS_HANDLING) * $shipping_num_boxes);
    to
    'cost' => ($cost += ($cost *= MODULE_SHIPPING_UPS_HANDLING/100)) * $shipping_num_boxes);
    Go to admin>modules>shipping>UPS Handling fee and add the percentage value you want.

    It worked for me, I hope it works for you.

    Last edited by Wilson_USA; 4 Nov 2009 at 08:51 PM.

 

 

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. v150 additional (variable) handling fee on a per product basis
    By richardtuttle in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 14 Nov 2013, 08:08 PM
  3. 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
  4. percentage (%) based handling charge
    By polarbear in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 29 Jun 2008, 04:14 PM
  5. Replies: 15
    Last Post: 10 Jul 2007, 11:11 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