Thread: minimum amount

Page 1 of 2 12 LastLast
Results 1 to 10 of 59

Hybrid View

  1. #1
    Join Date
    Dec 2008
    Posts
    49
    Plugin Contributions
    0

    Default minimum amount

    Hi,

    Is there a way to make moneyorders OK if more than XXX ?

    I read a post mentionning coding: "$this>=XXX;"
    but in which file and where exactly...Also I would need an error message somewhere if the order is below XXX

    Thanks if you can help.
    Last edited by broeder; 7 Oct 2009 at 01:16 PM. Reason: typo...

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

    Default Re: minimum amount

    Edit the Check/Money Order moneyorder payment module and add below this line:
    Code:
          $this->enabled = ((MODULE_PAYMENT_MONEYORDER_STATUS == 'True') ? true : false);
    the new code:
    Code:
          global $cart;
          if (!IS_ADMIN_FLAG && ($_SESSION['cart']->show_total() - $_SESSION['cart']->free_shipping_prices()) <= 100) {
          // show if less than or equal to $100
            $this->enabled = true;
          } else {
          // do not show if more than $100
            $this->enabled = false;
          }
    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
    Dec 2008
    Posts
    49
    Plugin Contributions
    0

    Default Re: minimum amount

    Thanks a lot!

  4. #4
    Join Date
    Dec 2008
    Posts
    49
    Plugin Contributions
    0

    Default moneyorders OK on selected customers

    Hi,

    I need to allow moneyorders on a customer-approved basis.
    I guess I could create a group for that or check a field on approved customers.

    But I also would need to add code to moneyorder.php....

    Anyone has a clue ?

    Thanks a lot.

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

    Default Re: minimum amount

    You could use something similar to the Check/Money Order moneyorder payment module where you test for whatever you use to distinguish which customers are allowed to use the Check/Money Order moneyorder payment module and only show it when they qualify based on that condition ...
    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!

  6. #6
    Join Date
    Dec 2008
    Posts
    49
    Plugin Contributions
    0

    Default Re: minimum amount

    Thanks Ajeh,

    Could could you be more specific ? Is that in moneyorder.php
    or somewhere in Admin ?

    Thanks for your help!

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

    Default Re: minimum amount

    You could add:
    Code:
          if (!IS_ADMIN_FLAG && $order->info['total'] < 100.00) {
            $this->enabled = false;
          }
    below the line:
    Code:
        $this->enabled = ((MODULE_PAYMENT_INSTALLMENT_STATUS == 'True') ? true : false);
    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!

  8. #8
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: minimum amount

    Thanks for looking at this Ajeh. I've tried what you suggest, but it didn't work. I have a £35.00 cart and it's still showing.
    Last edited by limelites; 20 Jan 2011 at 08:39 PM.

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

    Default Re: minimum amount

    What does the:
    function installment() {
    // stuff here
    }

    read on the server right now?
    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!

  10. #10
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: minimum amount

    I'm not sure. I don't know what you mean?

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Minimum sale amount
    By alohacomputer in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 22 Jun 2011, 08:02 PM
  2. Minimum Purchase Amount?
    By wicks in forum Managing Customers and Orders
    Replies: 3
    Last Post: 3 Apr 2009, 06:44 PM
  3. minimum order amount
    By paolacauter in forum General Questions
    Replies: 1
    Last Post: 27 Nov 2007, 05:23 PM
  4. Minimum Order Amount
    By msdave in forum Managing Customers and Orders
    Replies: 2
    Last Post: 6 Oct 2007, 12:00 AM
  5. Minimum Order Amount V2.0
    By johnny43 in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 16 Jul 2006, 06:09 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