Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2012
    Posts
    1
    Plugin Contributions
    0

    Default Set maximum order price for Cash On Delivery

    I'm trying to work out how to set a maximum order price for the Cash on Delivery option.
    Our courier service only allows Cash on Delivery for deliveries of up to €500. I do not want this option (COD) to appear on the payment page if the order total is more than €500. How do I do this?

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,726
    Plugin Contributions
    6

    Default Re: Set maximum order price for Cash On Delivery

    You can customize the file:
    /includes/modules/payment/cod.php with the code in Red:

    Code:
          if ((int)MODULE_PAYMENT_COD_ORDER_STATUS_ID > 0) {
            $this->order_status = MODULE_PAYMENT_COD_ORDER_STATUS_ID;
          }
          
          // bof: disable on total > 500 is subtotal use subtotal
          if (!IS_ADMIN_FLAG) {
           if ($order->info['total'] > 500) {
             $this->enabled = false;
            }
          }
          // eof: disable on total > 500 is subtotal use subtotal
    
          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.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

 

 

Similar Threads

  1. set delivery price over £50
    By andy-c1 in forum Built-in Shipping and Payment Modules
    Replies: 4
    Last Post: 24 Dec 2007, 01:17 AM
  2. How to set a Maximum Order total?????
    By jrlund1006 in forum General Questions
    Replies: 2
    Last Post: 9 Mar 2007, 03:12 PM
  3. Removing Cash on Delivery
    By Lisylou in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 2 Mar 2007, 04:16 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
  •