Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2005
    Posts
    153
    Plugin Contributions
    0

    Default Limit payment methods as function of the total buying price

    Would it be possible to limit some payment methods to customers that buy for more than a certain amount of merchandises? I typically do not want my customers to pay by bank transfer if the total of their cart is less than 20$...

    Is that possible in ZC, or is their an easy way to code it?

    Thanks for your help,

    sanji

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

    Default Re: Limit payment methods as function of the total buying price

    In the Payment modules, the $this->enabled controls the display of the module, as in showing or not showing ...

    Example: in the moneyorder.php payment module you will see:
    PHP Code:
          $this->enabled = ((MODULE_PAYMENT_MONEYORDER_STATUS == 'True') ? true false); 
    If you were to add below that:
    PHP Code:
        if (IS_ADMIN_FLAG == true || $_SESSION['cart']->show_total() >= 20) {
          
    $this->enabled true;
        } else {
          
    $this->enabled false;
        } 
    and then that will show Checks/Money Orders when the order total is greater than $20.00 and hide it or mask it when the orders total is less ...
    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
    Jan 2005
    Posts
    153
    Plugin Contributions
    0

    Default Re: Limit payment methods as function of the total buying price

    Thanks a lot Ajeh for this comprehensive answer.

    This is working really fine, and it is so easy to implement!

    Great support, as always.

    sanji

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

    Default Re: Limit payment methods as function of the total buying price

    Thanks for the update that this was able to manage your modules for you with additional conditions ...
    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!

 

 

Similar Threads

  1. v151 Ceon Advanced Shipper - how can I limit the display of available shipping methods?
    By dysfunctional in forum Addon Shipping Modules
    Replies: 4
    Last Post: 31 Jan 2015, 04:03 AM
  2. v151 Buying in Dollars but displaying the price in Pounds
    By adb34 in forum General Questions
    Replies: 5
    Last Post: 10 Mar 2014, 01:16 PM
  3. Limit the max order total...?
    By LittleOleMeDesigns in forum Addon Shipping Modules
    Replies: 13
    Last Post: 13 Feb 2009, 07:45 PM
  4. Replies: 3
    Last Post: 31 Jul 2008, 07:45 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