Results 1 to 10 of 14

Hybrid View

  1. #1
    Join Date
    Jul 2009
    Posts
    110
    Plugin Contributions
    0

    Default Re: Is there a way to stop downloads on orders over a certain amount?

    OK, thanks

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

    Default Re: Is there a way to stop downloads on orders over a certain amount?

    For PayPal IPN (Standard), you would need to customize the Payment Module file:
    /includes/payment/paypal.php

    and change this section of code to be:
    Code:
        $this->enabled = ((MODULE_PAYMENT_PAYPAL_STATUS == 'True') ? true : false);
    
    // bof: custom code for order status
          if ($order->info['total'] <= 50.00) {
            // set to normal setting for orders less than or equal to $50
            $this->order_status = MODULE_PAYMENT_PAYPAL_ORDER_STATUS_ID;
          } else {
            // set to pending for orders over $50
            $this->order_status = 1;
          }
    // eof: custom code for order status
    
        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!]
    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
    Jul 2009
    Posts
    110
    Plugin Contributions
    0

    Default Re: Is there a way to stop downloads on orders over a certain amount?

    Thank you so much!!!

    I'm going to try it

    Hugs,
    Joanne

  4. #4
    Join Date
    Jul 2009
    Posts
    110
    Plugin Contributions
    0

    Default Re: Is there a way to stop downloads on orders over a certain amount?

    OK, just to be sure I'm going to do this right, I would find this:

    Code:
        $this->enabled = ((MODULE_PAYMENT_PAYPAL_STATUS == 'True') ? true : false);
        if ((int)MODULE_PAYMENT_PAYPAL_ORDER_STATUS_ID > 0) {
          $this->order_status = MODULE_PAYMENT_PAYPAL_ORDER_STATUS_ID;
        }
        if (is_object($order)) $this->update_status();
    and REPLACE with this:

    Code:
        $this->enabled = ((MODULE_PAYMENT_PAYPAL_STATUS == 'True') ? true : false);
    
    // bof: custom code for order status
          if ($order->info['total'] <= 50.00) {
            // set to normal setting for orders less than or equal to $50
            $this->order_status = MODULE_PAYMENT_PAYPAL_ORDER_STATUS_ID;
          } else {
            // set to pending for orders over $50
            $this->order_status = 1;
          }
    // eof: custom code for order status
    
        if (is_object($order)) $this->update_status();
    Is this correct?

    Thanks so much for helping me!!

    Joanne

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

    Default Re: Is there a way to stop downloads on orders over a certain amount?

    That should work ... test it out to make sure this is working the way you need it ...
    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!

  6. #6
    Join Date
    Jul 2009
    Posts
    110
    Plugin Contributions
    0

    Default Re: Is there a way to stop downloads on orders over a certain amount?

    Thanks so much for all your help - now I just have to find someone with $50 to test it for me

    Hugs,
    Joanne

 

 

Similar Threads

  1. v151 Offering Free Shipping over a certain amount and under a certain weight
    By jimmie in forum Addon Shipping Modules
    Replies: 0
    Last Post: 17 Aug 2013, 10:58 PM
  2. Adding Free Item to Orders Over Certain Amount
    By Psykryph in forum General Questions
    Replies: 1
    Last Post: 2 Dec 2011, 07:39 AM
  3. Is this possible? Disabling downloads on orders over a certain total amount only...
    By DigitalScrapDesigns in forum Managing Customers and Orders
    Replies: 3
    Last Post: 1 Dec 2008, 12:41 AM
  4. Taxes only apply to orders over a certain amount??
    By apemusic in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 7
    Last Post: 30 Jan 2008, 11:41 PM
  5. How To Add Free Item to All Orders Over Certain Amount?
    By Jeff_Mash in forum General Questions
    Replies: 1
    Last Post: 25 Jul 2006, 04:58 PM

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