Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Jun 2009
    Location
    NC
    Posts
    174
    Plugin Contributions
    1

    Default Minimum Order Fee module

    Is it possible to create TWO minimum order fee amounts? We're trying to have one low order fee for national orders, and an alternative low order fee for international orders.

    Anyone got any ideas?

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

    Default Re: Minimum Order Fee module

    You could customize the Low Order Fee in the module:
    /includes/modules/order_total/ot_loworderfee.php

    and change the setting around:
    Code:
    // calculate from flat fee or percentage
                if (substr(MODULE_ORDER_TOTAL_LOWORDERFEE_FEE, -1) == '%') {
                  $low_order_fee = ($order->info['subtotal'] * (MODULE_ORDER_TOTAL_LOWORDERFEE_FEE/100));
                } else {
                  $low_order_fee = MODULE_ORDER_TOTAL_LOWORDERFEE_FEE;
                }
    With something like:
    Code:
    // calculate from flat fee or percentage
                if (substr(MODULE_ORDER_TOTAL_LOWORDERFEE_FEE, -1) == '%') {
                  $low_order_fee = ($order->info['subtotal'] * (MODULE_ORDER_TOTAL_LOWORDERFEE_FEE/100));
                } else {
    // bof: custom low order fee
    //              $low_order_fee = MODULE_ORDER_TOTAL_LOWORDERFEE_FEE;
                  if ($order->delivery['country_id'] == STORE_COUNTRY) {
                    // National
                    $low_order_fee = 50.00;
                  } else {
                    // International low order fee
                    $low_order_fee = 100.00;
                  }
    // eof: custom low order 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. #3
    Join Date
    Jun 2009
    Location
    NC
    Posts
    174
    Plugin Contributions
    1

    Default Re: Minimum Order Fee module



    This is what happens in the Admin when I add the suggested custom code...

    I really appreciate your help.

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

    Default Re: Minimum Order Fee module

    Sorry ... missed a bracket ...

    Try this code:
    Code:
    // calculate from flat fee or percentage
                if (substr(MODULE_ORDER_TOTAL_LOWORDERFEE_FEE, -1) == '%') {
                  $low_order_fee = ($order->info['subtotal'] * (MODULE_ORDER_TOTAL_LOWORDERFEE_FEE/100));
                } else {
    // bof: custom low order fee
    //              $low_order_fee = MODULE_ORDER_TOTAL_LOWORDERFEE_FEE;
                  if ($order->delivery['country_id'] == STORE_COUNTRY) {
                    // National
                    $low_order_fee = 50.00;
                  } else {
                    // International low order fee
                    $low_order_fee = 100.00;
                  }
                }
    // eof: custom low order 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!

  5. #5
    Join Date
    Jun 2009
    Location
    NC
    Posts
    174
    Plugin Contributions
    1

    Default Re: Minimum Order Fee module

    You ROCK!!!! That fixed it! Thank you!

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

    Default Re: Minimum Order Fee module

    Thanks for the update that this is now working 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!

  7. #7
    Join Date
    Jun 2009
    Location
    NC
    Posts
    174
    Plugin Contributions
    1

    Default Re: Minimum Order Fee module

    Well...I thought I was done with this...but apparently the boss wants two different minimum order amounts as well. 100 dollar minimum for national orders, and a 500 dollar minimum for international orders. I have been trying to do this myself...but have been so far unsuccessful. I modified the code you provided to me to this:

    PHP Code:
    // bof: custom low order fee
    //              $low_order_fee = MODULE_ORDER_TOTAL_LOWORDERFEE_FEE;
                  
    if (($order->delivery['country_id'] == STORE_COUNTRY) and ($order->info['subtotal']< 100.00)) {
                    
    // National
                    
    $low_order_fee 25.00;
                  } else if ((
    $order->delivery['country_id'] != STORE_COUNTRY) and ($order->info['subtotal']< 500.00)) {
                    
    // International low order fee
                    
    $low_order_fee 100.00;
                  }
                } 
    And the differences in the fee are working...but not the minimum order amounts. Help!

  8. #8
    Join Date
    Jun 2009
    Location
    NC
    Posts
    174
    Plugin Contributions
    1

    Default Re: Minimum Order Fee module

    And another question...what should the settings in the admin be? I know I have to set "allow low order fee" to true...but what should the dollar values be? Should I just set them to 0?

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

    Default Re: Minimum Order Fee module

    What do you have set for the Modules ... Order Totals ... Low Order Fee ot_loworderfee in the right hand panel?
    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!

  10. #10
    Join Date
    Jun 2009
    Location
    NC
    Posts
    174
    Plugin Contributions
    1

    Default Re: Minimum Order Fee module

    I'm hoping that's what you need to know...

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Minimum FIRST TIME order fee
    By jdw1979 in forum General Questions
    Replies: 20
    Last Post: 2 Nov 2011, 05:37 PM
  2. Minimum order module
    By mistymurata in forum Addon Payment Modules
    Replies: 0
    Last Post: 21 Jun 2010, 04:21 AM
  3. Minimum Order Module Question
    By deb in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 12 Apr 2010, 11:26 PM
  4. Minimum Order Fee
    By prosam in forum Managing Customers and Orders
    Replies: 5
    Last Post: 17 Jun 2008, 04:35 PM
  5. Added charge, one-time deposit/fee, minimum order
    By Pozitech in forum Managing Customers and Orders
    Replies: 2
    Last Post: 7 Nov 2006, 03:40 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