Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1
    Join Date
    Oct 2011
    Posts
    7
    Plugin Contributions
    0

    Default Minimum purchase to activate the cod payment module.

    Unable to find any post that could resolve my doubts, I wonder how I could do the following:

    Purchases below 3€: display the Banktransfer payment module and hide the Cod payment module in the purchase process.
    Purchases over 3€: display the Banktransfer payment module and the Cod payment module in the purchase process.

    Thank you very much.

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

    Default Re: Minimum purchase to activate the cod payment module.

    You could customize the COD Payment Module by adding the code in RED to:
    /includes/modules/payment/cod.php

    Code:
          $this->enabled = ((MODULE_PAYMENT_COD_STATUS == 'True') ? true : false);
    
    // bof: turn off on orders less than 3
          if (!IS_ADMIN_FLAG) {
            global $cart;
            if ($_SESSION['cart']->show_total() < 3) {
              $this->enabled = false;
            }
          }
    // eof: turn off on orders less than 3
    
          if ((int)MODULE_PAYMENT_COD_ORDER_STATUS_ID > 0) {
            $this->order_status = MODULE_PAYMENT_COD_ORDER_STATUS_ID;
          }
    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
    Oct 2011
    Posts
    7
    Plugin Contributions
    0

    Default Re: Minimum purchase to activate the cod payment module.

    Ajeh thank you very much!

    I don't know if this is the right thread to discuss it, but I would like to raise other issue that I don't know solve it:

    Is it possible to apply the Cod payment module to several Payment Zones?

    Thanks.

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

    Default Re: Minimum purchase to activate the cod payment module.

    You can build a Zone Definition with the DETAILS of who can use it and then add it to the COD Payment Module to limit who can use the COD 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
    Oct 2011
    Posts
    7
    Plugin Contributions
    0

    Default Re: Minimum purchase to activate the cod payment module.

    Yes I know, but I have many defined Zones.
    Is not there some other way to programmatically activate several areas in the Cod payment module?

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

    Default Re: Minimum purchase to activate the cod payment module.

    Can't you make a Zone Definition with the DETAILS set specifically for the COD 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!

  7. #7
    Join Date
    Oct 2011
    Posts
    7
    Plugin Contributions
    0

    Default Re: Minimum purchase to activate the cod payment module.

    Yes I can. Only wanted to know if there was a more direct way to do it.

    The way you say, I would have to redefine many details again in a new specific area for Cod payment module.

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

    Default Re: Minimum purchase to activate the cod payment module.

    Maybe I am not understanding what you are trying to do ...

    I thought you wanted to add Zones or something to the COD module ...

    If you mean you want to put the same type of limitation in other Payment modules ... then I am on the wrong track ...

    You just need to add the similar code to any Payment Module where you want to control usage ...
    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!

  9. #9
    Join Date
    Oct 2011
    Posts
    7
    Plugin Contributions
    0

    Default Re: Minimum purchase to activate the cod payment module.

    Don't worry, you were right: "I want to add Zones to the COD payment module" but I wanted to know if it was possible to add multiple Zones simultaneously. Thank you very much.

    And if not asking too much...
    If I would like to apply a 3.5% commission to the total of purchases made by Cod payment module for the specific Zone you mention, how should I use the ot_cod_fee module?

  10. #10
    Join Date
    Oct 2011
    Posts
    7
    Plugin Contributions
    0

    Default Re: Minimum purchase to activate the cod payment module.


 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 17
    Last Post: 3 Dec 2014, 05:41 PM
  2. Replies: 10
    Last Post: 10 Jan 2013, 08:13 PM
  3. Activate Payment Module if $$$ Total exceeds a certain amount
    By smoothrider in forum Addon Payment Modules
    Replies: 11
    Last Post: 17 Apr 2012, 03:55 PM
  4. Change the minimum of purchase
    By rubenpv in forum General Questions
    Replies: 1
    Last Post: 5 Jan 2011, 06:45 PM
  5. Purchase Module - Purchase Order Payment Module Problem
    By keewong in forum Addon Payment Modules
    Replies: 15
    Last Post: 14 Dec 2010, 12:19 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