Results 1 to 10 of 14

Hybrid View

  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!]
    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!]
    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!]
    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. 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

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