Veeps Posted December 5, 2003 Share Posted December 5, 2003 is there a way to make the handling fee a percentage? Link to comment Share on other sites More sharing options...
Guest Posted August 24, 2004 Share Posted August 24, 2004 Hi All, I've been digging around for a solution to add HANDLING FEES as a PERCENTAGE of the total shipping and found no result. It seems like many people are having the same problem. I decided to hack the code a little and come up with something myself. Here's my solution. Hopefully it will work for someone out there as well. In the file ups.php under /includes/modules/shipping modify the following code: Around Line 102: 'cost' => ($cost + MODULE_SHIPPING_UPS_HANDLING) * $shipping_num_boxes); Here MODULE_SHIPPING_UPS_HANDLING is the "flat handling fee" that can be set in the admin console for shipping via ups. What I've done is to change the code so that it takes in the Handling Fee as a percentage instead of a flat fee and this is the code I came up with. 'cost' => ($cost += ($cost *= MODULE_SHIPPING_UPS_HANDLING/100)) * $shipping_num_boxes); Hope this helps someone. Feel free to contact me if there are any questions. I try to give back to the community for all the times I've been helped out as well. :) "There is no try, there is only do or do not" -yoda Link to comment Share on other sites More sharing options...
Guest Posted August 24, 2004 Share Posted August 24, 2004 Revision: Please note the code should instead read 'cost' => ($cost + ($cost * MODULE_SHIPPING_UPS_HANDLING/100)) * $shipping_num_boxes); Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.