Page 6 of 6 FirstFirst ... 456
Results 51 to 52 of 52
  1. #51
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Handling Fee as Percentage?

    Check your settings on the two modules ... you could also be getting different ones as you are logged into your account with one of them ...
    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!

  2. #52
    Join Date
    Sep 2014
    Location
    Indiana
    Posts
    91
    Plugin Contributions
    0

    Default Re: Handling Fee as Percentage?

    On this topic of adding a %-age based handling fee: A while back, we converted our UPSXML module to use our input as a percentage instead of a flat $ amount. But the %-age method is sort of useless on small orders and the flat dollar amount is ineffective on large orders. Especially in light of setting the shipping to be based on COM and it's a RES order.

    So, now we've changed our UPSXML mod to use both a %-age and flat rate. It works similarly to the Package Tare: Percentage: Weight setting under Configuration/ Shipping. We now have a percent and dollar amount in the UPS XML shipping module admin settings and the module uses both.

    In includes\modules\shipping\upsxml.php; around line 324, i remmed out:
    Code:
    $methods[] = array('id' => $type, 'title' => $_type, 'cost' => ($this->handling_fee / 100 * $cost + $cost));
    then added:
    Code:
    $za_handling_array= preg_split("/[:,]/" , str_replace(' ', '', $this->handling_fee));
    	$zc_handling_percent= (float)$za_handling_array[0];
    	$zc_handling_dollar= (float)$za_handling_array[1];
    	$methods[] = array('id' => $type, 'title' => $_type, 'cost' => ($cost + $zc_handling_dollar + $zc_handling_percent / 100 * $cost));
    Second, in phpMyAdmin, search the configuration table for key: MODULE_SHIPPING_UPSXML_RATES_HANDLING
    Change the configuration title to something like: "What is the handling fee for UPS? <br />Example: 10% markup + $1 10:1<br />10% + $0 10:0<br />0% + $5 0:5<br />0% + 0lbs 0:0"

    to give proper instructions to the admin entering the handling fee settings for the shipping module.

    Just putting this out there in case others find it helpful.

 

 
Page 6 of 6 FirstFirst ... 456

Similar Threads

  1. v138a Handling fee
    By WavMixer in forum General Questions
    Replies: 4
    Last Post: 10 Mar 2013, 08:10 PM
  2. 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
  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

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