Results 1 to 10 of 10
  1. #1
    Join Date
    Mar 2012
    Posts
    19
    Plugin Contributions
    0

    Default Different payment methods for different Customers

    Is there away to setup "Different payment methods for different Customers"
    IE: new registered customer only has PAYPAL
    Custmer that the Store Admin has entered can be on account or Cheque
    Thanks
    JB

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

    Default Re: Different payment methods for different Customers

    You could use the Customer Groups ... make a Group for those allowed to use other Payment modules then test for that in the payment module and disable the Payment module if the customer is not in the Group ...

    If you already use Customer Groups for other things then you would need to customize the customer database and add a new field that can be updated on the customer information to flag customers that are allowed other payment modules ...
    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
    Mar 2012
    Posts
    19
    Plugin Contributions
    0

    Default Re: Different payment methods for different Customers

    Sorry .. I can not find in the Payment Modules how to enable or disable the payment for a specific group
    -group one to only have PayPal
    -group two to only have cheque
    we created two groups under the group pricing discount could not find any other way to create the different groups

    Thanks for your help
    JB

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

    Default Re: Different payment methods for different Customers

    Let's say you want the Check/Money Order moneyorder ...

    You can customize the code for:
    /includes/modules/payment/moneyorder.php

    with the code in RED:
    Code:
          if ((int)MODULE_PAYMENT_MONEYORDER_ORDER_STATUS_ID > 0) {
            $this->order_status = MODULE_PAYMENT_MONEYORDER_ORDER_STATUS_ID;
          }
    
     // bof: Only allow for customers_group_pricing 2
          if (!IS_ADMIN_FLAG) {
            global $db;
            $group_query = $db->Execute("select customers_group_pricing from " . TABLE_CUSTOMERS . " where customers_id = '" . (int)$_SESSION['customer_id'] . "'");
            if ($group_query->fields['customers_group_pricing'] != '2') {
              $this->enabled = false;
            }
          }
    // eof: Only allow for customers_group_pricing 2
    
          if (is_object($order)) $this->update_status();
    and now only those in customers_group_pricing 2 can see the Check/Money Order moneyorder payment module ...
    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
    May 2006
    Posts
    310
    Plugin Contributions
    0

    Default Re: Different payment methods for different Customers

    Ajeh, thanks for posting this!
    Is there any way to change the name of a payment module?

    For example, can I "rename" Check/Moneyorder payment module so that when a customer sees it it lists itself as "Invoice Payment" rather than "Check/Moneyorder" during the checkout process?

    Thanks so much for your help!
    Live again! http://spritelygoods.com Rebuilt on ZC v 1.5.1 from 1.3.0.2

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

    Default Re: Different payment methods for different Customers

    All of the Payment modules have language files that you can customize using your templates and overrides ...

    Peek in the:
    /includes/languages/english/modules/payment/moneyorder.php

    and copy to:
    /includes/languages/english/modules/payment/your_templates_dir/moneyorder.php
    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 2006
    Posts
    310
    Plugin Contributions
    0

    Default Re: Different payment methods for different Customers

    thanks again Ajeh.
    You don't happen to have any insight as to why the old "Invoice" payment method from version 1.3 was dropped, do you? I'm just wondering as I realized it isn't one of the standard payment types included in the 1.5 download.
    Live again! http://spritelygoods.com Rebuilt on ZC v 1.5.1 from 1.3.0.2

  8. #8
    Join Date
    May 2006
    Posts
    310
    Plugin Contributions
    0

    Default Re: Different payment methods for different Customers

    ah, nevermind that previous question. Seems some of the quirks of previous versions of ZC have been handled :) especially around downloadable products which were a bit of a hassle with the old invoice system.
    Live again! http://spritelygoods.com Rebuilt on ZC v 1.5.1 from 1.3.0.2

  9. #9
    Join Date
    May 2006
    Posts
    310
    Plugin Contributions
    0

    Default Re: Different payment methods for different Customers

    a hint for anyone who is adding this to their code:
    the value for the customer_groups_pricing refers to the group pricing ID number...not the group name.
    :)
    Live again! http://spritelygoods.com Rebuilt on ZC v 1.5.1 from 1.3.0.2

  10. #10
    Join Date
    Mar 2012
    Posts
    19
    Plugin Contributions
    0

    Default Re: Different payment methods for different Customers

    Quote Originally Posted by Ajeh View Post
    All of the Payment modules have language files that you can customize using your templates and overrides ...

    Peek in the:
    /includes/languages/english/modules/payment/moneyorder.php

    and copy to:
    /includes/languages/english/modules/payment/your_templates_dir/moneyorder.php
    Sorry now what do you change to say "Invoice Payment" rather than "Check/Moneyorder" to this file ?
    Thank you

 

 

Similar Threads

  1. v153 Different Prices Based on Different Payment Methods
    By jokkah in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 24 Aug 2014, 12:49 PM
  2. v139h Different payment methods for different products
    By smithdp1 in forum Setting Up Categories, Products, Attributes
    Replies: 14
    Last Post: 14 Aug 2014, 08:03 PM
  3. Is it possible to have different Payment methods for International Customers?
    By z3n in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 30 Apr 2009, 04:02 PM
  4. Different payment methods for different product attributes
    By Krosmanitz in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 7 Mar 2008, 09:01 PM
  5. Use different currencies for different payment methods
    By aksi in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 0
    Last Post: 15 Jun 2006, 10:02 AM

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