Page 5 of 6 FirstFirst ... 3456 LastLast
Results 41 to 50 of 52
  1. #41
    Join Date
    Feb 2011
    Posts
    89
    Plugin Contributions
    0

    Default Re: Handling Fee as Percentage?

    Well thank you so much for your time !!! I really do appreciate the help.....I'm stumped here!

    If I take the code out that does the 1.75 and just add the 1.75 into the shipping module under admin/module/shipping, usps, it shows it either logged in or not, I just cant add the 3% like I wanted... but took it out of the code.......can't show one price in the estimator then they log in and see a higher fee....would run them off...........

    ugggghhh...I'll keep searching, if I find anything I'll post so that maybe it can help someone else if they have the same issue.

    Thanks again!

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

    Default Re: Handling Fee as Percentage?

    Try this code instead and see if it works for both your shipping_estimator and the checkout_shipping ...
    Code:
    global $cart;
    $chk_cart_total = $_SESSION['cart']->show_total();
    echo 'Cart total: ' . $chk_cart_total . ' Cost: ' . $cost . ' Extra: ' . ($chk_cart_total * .03 + 1.75) . ' = ' . (($chk_cart_total * .03 + 1.75) + $cost) . '<br>';
              $methods[] = array('id' => $type,
                                 'title' => $title,
                                 'cost' => ($cost * $shipping_num_boxes) + ($chk_cart_total * .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!

  3. #43
    Join Date
    Feb 2011
    Posts
    89
    Plugin Contributions
    0

    Default Re: Handling Fee as Percentage?

    WWAAAAAAAAAHOOOOOOOOOOO !!!!!!

    It works!

    Thank you so very much for your time helping me figure this out !!!! I am so very grateful. Couldn't have done it without you.

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

    Default Re: Handling Fee as Percentage?

    Thanks for the update that this works for you ...
    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!

  5. #45
    Join Date
    Nov 2012
    Posts
    12
    Plugin Contributions
    0

    Default Re: Handling Fee as Percentage?

    Hi, I'm trying to do this with 1.5.1 UPS module. I need to add 15% handling fee to the UPS fee estimate.

    The solution proposed here seems like what I need: http://www.zen-cart.com/showthread.p...868#post392868

    but the shipping module appears different in 1.5.1. I can't find the exact code they replaced. I did find something on line 269 that seems like the place it needs to be changed, but the code they used in the example above doesn't work.

    Any ideas?

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

    Default Re: Handling Fee as Percentage?

    Are you wanting the handling fee to be 15% of the Order Total or 15% of the Shipping Cost?
    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. #47
    Join Date
    Nov 2012
    Posts
    12
    Plugin Contributions
    0

    Default Re: Handling Fee as Percentage?

    Hi thanks for replying. 15% of the shipping cost.

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

    Default Re: Handling Fee as Percentage?

    To make handling 15% of the shipping cost, you can customize the UPS shipping file:
    /includes/shipping/ups.php

    with the code:
    Code:
            // EOF: UPS USPS
            $cost = preg_replace('/[^0-9.]/', '',  $cost);
            $new_handling = $cost * .15;
            $methods[] = array('id' => $type,
                               'title' => $this->types[$type],
                               'cost' => ($cost * $shipping_num_boxes) + (MODULE_SHIPPING_UPS_HANDLING_METHOD == 'Box' ? $new_handling * $shipping_num_boxes : $new_handling) );
    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. #49
    Join Date
    Nov 2012
    Posts
    12
    Plugin Contributions
    0

    Default Re: Handling Fee as Percentage?

    The code is a little different than the code you have here, I wonder if it is because my UPS module file is UPSXML.php instead of UPS.php? How can I get the UPS.php module? I don't know why I ended up with this one.

  10. #50
    Join Date
    Nov 2012
    Posts
    12
    Plugin Contributions
    0

    Default Re: Handling Fee as Percentage?

    Ok, never mind, I found the ups.php module. I was also able to find and change the code. The prices I'm getting from the 2 different modules are different though, even with the 15% factored in. I wonder which is more accurate? Seems like the regular UPS module is giving me higher price quotes.

 

 
Page 5 of 6 FirstFirst ... 3456 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