Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Jul 2009
    Posts
    110
    Plugin Contributions
    0

    help question Is there a way to stop downloads on orders over a certain amount?

    Hi,

    I run a digital scrapbooking store, and lately there's been a rash of people making purchases over $50 through Paypal, downloading the virtual products, and then charging back on their credit card or attached bank account.

    Ideally, I need to be able to hold orders over $50 until I'm sure they aren't going to charge back and get the products for free.

    I've looked through the forum but I can't find anything on this.

    Can anyone help?

    Thanks,
    Joanne

  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?

    You would have to customize the payment module(s) where the order status is set to change on orders that have totals >= 50 ...

    Example, in Check/Money Order
    /includes/modules/payment/moneyorder.php

    this code is getting the setting for the Orders Status based on the settings of the Payment Module:
    Code:
          if ((int)MODULE_PAYMENT_MONEYORDER_ORDER_STATUS_ID > 0) {
            $this->order_status = MODULE_PAYMENT_MONEYORDER_ORDER_STATUS_ID;
          }
    You can change that value of the:
    $this->order_status

    based on the amount of the order to a different Order Status such as Pending, so the Downloads are not immediately available ...
    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
    Jul 2009
    Posts
    110
    Plugin Contributions
    0

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

    That's great information, but would there be anyone who could give me the exact wording and the exact files I'd have to change to do this - I have no clue how to write php

    Thanks so much for answering!!

    Joanne

  4. #4
    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?

    It would be helpful to have more information for someone to re-write this ...

    What payment module(s) ...

    What Order Status do you want when over $50.00 etc.
    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
    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!!

    It is the PayPal IPN - Website Payments Standard module.

    If an order comes in for $50 or more, I still want them to be returned to the store site, but I want to put a new page instead of the download page that explains that there order will be held until proof of payment (I can do that part, as long as I know what to call the file and where to put it). So I guess it would be Order Pending or something along those lines for the Order Status.

    If you need more info, just let me know, k?

    Thanks!
    Joanne

  6. #6
    Join Date
    Jan 2004
    Posts
    66,374
    Blog Entries
    7
    Plugin Contributions
    274

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

    Quote Originally Posted by joannem View Post
    If an order comes in for $50 or more, I still want them to be returned to the store site, but I want to put a new page instead of the download page that explains that there order will be held until proof of payment (I can do that part, as long as I know what to call the file and where to put it).
    Why not use Admin->Tools->Define Pages Editor->define_checkout_success.php and just put a message there that everyone will see?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

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

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

    That would work if they didn't get returned right to the download page as soon as they pay at Paypal

  8. #8
    Join Date
    Jan 2004
    Posts
    66,374
    Blog Entries
    7
    Plugin Contributions
    274

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

    I was specifically answering the part about the "new page".
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  9. #9
    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

  10. #10
    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: 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!

 

 
Page 1 of 2 12 LastLast

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

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