Page 3 of 6 FirstFirst 12345 ... LastLast
Results 21 to 30 of 52
  1. #21
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Handling Fee as Percentage?

    There is a Handling fee on USPS ... what version of Zen Cart are you using?
    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. #22
    Join Date
    Feb 2011
    Posts
    207
    Plugin Contributions
    0

    Default Re: Handling Fee as Percentage?

    Regarding the solution in #17, is this percentage added to the order total or calculated shipping cost of order based on weight? Am needing to do similar and want to confirm it is based on the shipping amount vs the entire order. Thank you for any info.

  3. #23
    Join Date
    Feb 2011
    Posts
    207
    Plugin Contributions
    0

    Default Re: Handling Fee as Percentage?

    Thank you for posting your solution, it works nicely. For info my question about what the percent is calculated on, it appears to be order total.

  4. #24
    Join Date
    Jun 2011
    Location
    Syracuse, NY
    Posts
    1
    Plugin Contributions
    0

    help question Re: Handling Fee as Percentage?

    Hello:

    I hate to keep this thread going, but based on the title, I think it applies to my dilemma. I am using the latest version of Zen Cart, and I am looking to apply a percentage-based handling fee to my shipping. I am using a priced-based table rate and would like to add a 5% handling fee based on total cost after taxes. I know from reading the other posts as well as other threads where to find the module's php, but am confused on how I would be able to change the formula to multiply by the handling fee instead of adding the fee.

    Please help! Thanks!

  5. #25
    Join Date
    Feb 2011
    Posts
    89
    Plugin Contributions
    0

    Default Re: Handling Fee as Percentage?

    Quote Originally Posted by Donanater View Post
    Well I figured it out

    The finished result was two fold. For our Free Shipping we added a 3% charge for PayPal transactions and $2.75 handling charge to cover shipping overhead. For our USPS module (priority, express, international shipping and PayPal charges we added a 5% charge plus $1.70.

    No need to have an additional "Handling Fee" on the Shipping Module, this formula by-passes that.

    USPS Shipping:
    /public_html/includes/modules/shipping/usps.php

    insert " +($order->info['subtotal'] * .05 + 1.70) into Line 298
    where ($order->info['subtotal'] is your subtotal price * percent + overhead shipping cost.


    Orginal:
    'cost' => ($cost * $shipping_num_boxes) + (MODULE_SHIPPING_USPS_HANDLING_METHOD == 'Box' ? MODULE_SHIPPING_USPS_HANDLING * $shipping_num_boxes : MODULE_SHIPPING_USPS_HANDLING) );

    Updated:
    'cost' => ($cost * $shipping_num_boxes) + ($order->info['subtotal'] * .05 + 1.70) + (MODULE_SHIPPING_USPS_HANDLING_METHOD == 'Box' ? MODULE_SHIPPING_USPS_HANDLING * $shipping_num_boxes : MODULE_SHIPPING_USPS_HANDLING) );

    Free Shipping:
    /public_html/includes/modules/shipping/freeoptions.php

    insert "($order->info['subtotal'] * .03 + 2.75) +"
    where ($order->info['subtotal'] is your subtotal price * percent + overhead shipping cost.


    Orginal:
    'cost' => MODULE_SHIPPING_FREEOPTIONS_COST + MODULE_SHIPPING_FREEOPTIONS_HANDLING)));

    Updated:
    'cost' => MODULE_SHIPPING_FREEOPTIONS_COST + ($order->info['subtotal'] * .03 + 2.75) + MODULE_SHIPPING_FREEOPTIONS_HANDLING)));

    Hope this helps anyone else out there.
    Ok, this worked on the old version, but it doesn't seem to work on the January 2012 update. Anyone know what I might need to do different or what I'm doing wrong? I'm using .03 + 1.75 for the USPS module.

    website: http://earthscauldron.com/store/

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

    Default Re: Handling Fee as Percentage?

    Add this line in RED to the code and see what is being calculated:
    Code:
              $cost = preg_replace('/[^0-9.]/', '',  $cost);
    
    // add $this->usps_countries to title to test actual country
    echo 'I See USPS Cost: ' . $cost . ' Extra: ' . ($order->info['subtotal'] * .03 + 1.75) . ' = ' . (($order->info['subtotal'] * .03 + 1.75) + $cost) . '<br>';
    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. #27
    Join Date
    Feb 2011
    Posts
    89
    Plugin Contributions
    0

    Default Re: Handling Fee as Percentage?

    ya, shows it's only adding 1.75 and not the 3%

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

    Default Re: Handling Fee as Percentage?

    Could you paste what you see from the echo?
    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!

  9. #29
    Join Date
    Feb 2011
    Posts
    89
    Plugin Contributions
    0

    Default Re: Handling Fee as Percentage?

    I See USPS Cost: 31.25 Extra: 1.75 = 33
    I See USPS Cost: 5.65 Extra: 1.75 = 7.4
    I See USPS Cost: 5.55 Extra: 1.75 = 7.3


    Estimate Shipping Costs
    Total Items: 1 Amount: $140.00
    Country: Please Choose Your Country United States Australia Canada United Kingdom United States Minor Outlying Islands
    State/Province: Please select ...AlabamaAlaskaAllAmerican SamoaArizonaArkansasArmed Forces AfricaArmed Forces AmericasArmed Forces CanadaArmed Forces EuropeArmed Forces Middle EastArmed Forces PacificCaliforniaColoradoConnecticutDelawareDistrict of ColumbiaFederated States Of MicronesiaFloridaGeorgiaGuamHawaiiIdahoIllinoisIndianaInternationalIowaKansasKen tuckyLouisianaMaineMarshall IslandsMarylandMassachusettsMichiganMinnesotaMississippiMissouriMontanaNebraskaN evadaNew HampshireNew JerseyNew MexicoNew YorkNorth CarolinaNorth DakotaNorthern Mariana IslandsOhioOklahomaOregonPennsylvaniaPuerto RicoRhode IslandSouth CarolinaSouth DakotaTennesseeTexasUtahVermontVirgin IslandsVirginiaWashingtonWest VirginiaWisconsinWyoming

    Post/Zip Code:

    Shipping quotes are based on the address information you selected:
    Maine 04101 United States
    Available Shipping Methods Rates
    Store Pickup (Walk In) $0.00
    United States Postal Service (Parcel Post (4 - 7 days)) $7.30
    United States Postal Service (Priority Mail (2 - 3 days)) $7.40
    United States Postal Service (Express Mail (1 - 2 days)) $33.00
    United Parcel Service (1.00lbs) (Ground) $12.92

    [ Close Window ]

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

    Default Re: Handling Fee as Percentage?

    And you are using:
    Code:
              $methods[] = array('id' => $type,
                                 'title' => $title,
                                 'cost' => ($cost * $shipping_num_boxes) + ($order->info['subtotal'] * .03 + 1.75) + (MODULE_SHIPPING_USPS_HANDLING_METHOD == 'Box' ? $usps_handling_fee * $shipping_num_boxes : $usps_handling_fee) );
    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!

 

 
Page 3 of 6 FirstFirst 12345 ... LastLast

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