Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Mar 2009
    Posts
    10
    Plugin Contributions
    0

    Default Charge Handling over Certain Amount

    I have been looking and have not been able to find this anywhere.

    I would like to start charging a "handling" fee after a the total $ amount is, for instance $60. So any time the customer orders more the $60 worth of products, we charge an extra $2. But if they order less than $60, there is no handling charge.

    Does anybody know how to do this? Please help.

    Thank you very much in advance.

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

    Default Re: Charge Handling over Certain Amount

    If you look in the Shipping Module(s) that you use there is a reference to handling ...

    You could customize that to be based on the total as to whether to apply it or not ...
    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!]
    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. #3
    Join Date
    Mar 2009
    Posts
    10
    Plugin Contributions
    0

    Default Re: Charge Handling over Certain Amount

    You say I could customize to do this based on the amount. Does that mean I would have to customize the php code or is there already something in place that would do this easily?
    Thanks again.

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

    Default Re: Charge Handling over Certain Amount

    You would customize the shipping modules(s) php code for this where you see the handling charge being applied and combined with the 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!]
    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. #5
    Join Date
    Mar 2009
    Posts
    10
    Plugin Contributions
    0

    Default Re: Charge Handling over Certain Amount

    I added the following code:

    if ($cost > 65)
    {
    $methods[] = array('id' => $type,
    'title' => $title,
    'cost' => ($cost + MODULE_SHIPPING_USPS_HANDLING) * $shipping_num_boxes);
    }
    else
    {
    $methods[] = array('id' => $type,
    'title' => $title,
    'cost' => $cost * $shipping_num_boxes);
    }


    The problem with this is that the $COST variable is not the subtotal of the cart, it is the cost of shipping.

    So I see two different options here. 1.) Find the variable for the sub-total of the cart and use that variable in this code instead of $COST. 2.) Find variable for the sub-total and in that module, change the value of MODULE_SHIPPING_USPS_HANDLING accordingly.

    Any suggestions here?

    Thanks.

  6. #6
    Join Date
    Mar 2009
    Posts
    10
    Plugin Contributions
    0

    Default Re: Charge Handling over Certain Amount

    I ended up adding the following code to get the sub-total:
    $cartShowTotal = $_SESSION['cart']->show_total();
    if ($cartShowTotal > 65){...

    instead of uses the $COST variable

    Thanks again for your help.

    Let me know if this could cause problems.

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

    Default Re: Charge Handling over Certain Amount

    I'd have to test it but that is the right idea that you are 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!]
    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!

 

 

Similar Threads

  1. v151 Offering Free Shipping over a certain amount and under a certain weight
    By jimmie in forum Addon Shipping Modules
    Replies: 0
    Last Post: 17 Aug 2013, 10:58 PM
  2. Adding Free Item to Orders Over Certain Amount
    By Psykryph in forum General Questions
    Replies: 1
    Last Post: 2 Dec 2011, 07:39 AM
  3. Can I do Tax calculation over a certain base amount?
    By dgof in forum General Questions
    Replies: 3
    Last Post: 23 Feb 2010, 05:10 PM
  4. Taxes only apply to orders over a certain amount??
    By apemusic in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 7
    Last Post: 30 Jan 2008, 11:41 PM
  5. Dual Pricing over Certain Cart Amount
    By esugrue in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 19 Oct 2007, 06:06 AM

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