Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2010
    Posts
    9
    Plugin Contributions
    0

    Default COD on orders >$400

    Hi-

    My client would like to set up COD as the only shipping and payment option for orders over $400. The COD option should not be available for orders less than $400. I don't see any way to filter payment/shipping options by order total. Would this have to be custom programmed?

    I've checked the FAQ and the add-on area but just don't see anything that answers my question.

    Thanks,
    Kim

    ZC Version 1.3.8a

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

    Default Re: COD on orders >$400

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

    and change the code by adding the portion in red:
    Code:
          if ((int)MODULE_PAYMENT_COD_ORDER_STATUS_ID > 0) {
            $this->order_status = MODULE_PAYMENT_COD_ORDER_STATUS_ID;
          }
    
    // only show when orders are over $400
          global $cart;
          if (!IS_ADMIN_FLAG && $_SESSION['cart']->show_total() < 400) {
            $this->enabled = false;
          }
    
          if (is_object($order)) $this->update_status();
        }
    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
    Apr 2010
    Posts
    9
    Plugin Contributions
    0

    Default Re: COD on orders >$400

    Thank you for your help. :)

 

 

Similar Threads

  1. v150 Need some Help in COD. COD fee depending on order price
    By bratsangels in forum Built-in Shipping and Payment Modules
    Replies: 20
    Last Post: 16 Sep 2012, 12:53 PM
  2. 400 Bad Request
    By Coffinwear in forum PayPal Express Checkout support
    Replies: 3
    Last Post: 29 Nov 2010, 06:42 AM
  3. COD possible only for domestic orders?
    By Rotkale in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 8 Jan 2007, 11:07 AM
  4. COD only for domestic orders?
    By Rotkale in forum Addon Payment Modules
    Replies: 1
    Last Post: 3 Jan 2007, 05:19 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