Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16
  1. #11
    Join Date
    Mar 2012
    Posts
    17
    Plugin Contributions
    0

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

    Hi Ajeh,

    Please help me to disable cod on weights below 4 kgs.

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

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

    Same code but use:
    Code:
    $_SESSION['cart']->show_weight()
    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. #13
    Join Date
    Mar 2012
    Posts
    17
    Plugin Contributions
    0

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

    Hi Ajah, thanks for your prompt reply.
    I tried it still not working, cod is always displayed.

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

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

    This seems to work fine using the code in RED:
    Code:
          $this->enabled = ((MODULE_PAYMENT_COD_STATUS == 'True') ? true : false);
    
    // bof: turn off on orders less than 4
          if (!IS_ADMIN_FLAG) {
            global $cart;
            if ($_SESSION['cart']->show_weight() < 4) {
              $this->enabled = false;
            }
          }
    // eof: turn off on orders less than 4
    
          if ((int)MODULE_PAYMENT_COD_ORDER_STATUS_ID > 0) {
    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!

  5. #15
    Join Date
    Mar 2012
    Posts
    17
    Plugin Contributions
    0

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

    Ignore my last messege it worked :) Thanks bro.

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

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

    Thanks for the update that this is working for you ...
    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!

 

 
Page 2 of 2 FirstFirst 12

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

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