Results 1 to 7 of 7
  1. #1
    Join Date
    May 2006
    Posts
    11
    Plugin Contributions
    2

    Default Minimum order for Payment Types

    Hello, I have recently modified a stratapay (Australia) module for zen cart and would like to add a minimum order total for that particular payment type, and if the order is under that limit a certain charge would be applied (IE a minimum order of $20 or a $2.00 charge will be applied) i just dont know how to manipulate the current modules that much.

    It would also be useful for Credit Card payments, as in Australia you are allowed to charge extra to cover the Chredit Card Charge.

  2. #2
    Join Date
    Nov 2004
    Location
    Port Neil South Australia
    Posts
    397
    Plugin Contributions
    0

    Default Re: Minimum order for Payment Types

    Excellent question me too!
    Michelle Wardley
    Fine Artist & Musician

  3. #3
    Join Date
    Oct 2004
    Location
    Southport, UK
    Posts
    4,237
    Plugin Contributions
    20

    Default Re: Minimum order for Payment Types

    There is a Minimum Order mod attached; not sure if it can be selectively applied though.
    Attached Files Attached Files
    Development Manager @ JSWeb Ltd
    Over 15 years with Zencart

  4. #4
    Join Date
    Nov 2004
    Location
    Port Neil South Australia
    Posts
    397
    Plugin Contributions
    0

    Default Re: Minimum order for Payment Types

    Tanks heaps, I'll give it a go!
    Michelle Wardley
    Fine Artist & Musician

  5. #5
    Join Date
    Nov 2004
    Location
    Port Neil South Australia
    Posts
    397
    Plugin Contributions
    0

    Default Re: Minimum order for Payment Types

    Thank you!
    will give it a go
    Michelle Wardley
    Fine Artist & Musician

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

    Default Re: Minimum order for Payment Types

    You can also alter a Payment module to not allow it to be enabled based on a critieria from a function ...

    The reason to use a funciton is so that it can run from both the admin and catalog as both sides call the same file ...

    Take moneyorder.php for example ...

    This line enables it when it is installed:
    $this->enabled = ((MODULE_PAYMENT_MONEYORDER_STATUS == 'True') ? true : false);
    If you were to place a function around it that checked the cart total and returned a true or false this would prevent that from being set to true ... so the module would not run ...

    In the catalog side, the function is testing the cart total ... on the admin side the function just returns true ...
    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
    May 2005
    Location
    Bath, Somerset
    Posts
    1,053
    Plugin Contributions
    3

    Default Re: Minimum order for Payment Types

    I have tried this method to select your payment types using the cart total, however have 1 small issue that I can't get round. What ahppens when a customer is paying with a gift voucher as well?

    Basically, you need to include the if ($order->info['total'] > MNIMUM_AMOUNT) { then allow the payment to be used. However, as gift vouchers don't affect the order->info['total'] value, as the credit is handled by the order totals, is there any way round this?

    Absolute

 

 

Similar Threads

  1. Multiple Payment Types Per Order With Custom Module?
    By user2037 in forum Addon Payment Modules
    Replies: 0
    Last Post: 25 Jul 2011, 04:45 PM
  2. Restrict Payment Types for certain products?
    By cjcraven in forum Managing Customers and Orders
    Replies: 3
    Last Post: 12 May 2011, 03:52 PM
  3. Admin Override for Minimum order
    By wdkstudio in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 10 Jul 2009, 12:36 PM
  4. Setting minimum order for check/money order only
    By coldspag in forum Managing Customers and Orders
    Replies: 0
    Last Post: 26 Nov 2008, 02:18 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