Results 1 to 10 of 10
  1. #1
    Join Date
    Feb 2011
    Posts
    43
    Plugin Contributions
    0

    Default Is there a way to put a limit on dollar amount I can accept PayPal for?

    Don't even get me started on how much I hate PayPal. If there was any other service that worked as well I would sign up for them in a minute! Anyway I've been burned several times by PayPal so now ONLY ship to confirmed address and ONLY accept PayPal from US customers. I would like to protect myself even more though by limiting the amound of a purchase I will accept PayPal for. For example if someone has a total that's over $300, what I want is for the paypal button to not show and their only option to choose would be the other payment options I take. Any easy way that can be done?

  2. #2
    Join Date
    Feb 2011
    Posts
    43
    Plugin Contributions
    0

    Default Re: Is there a way to put a limit on dollar amount I can accept PayPal for?

    So no ideas on this one?

  3. #3
    Join Date
    Apr 2010
    Posts
    277
    Plugin Contributions
    0

    Default Re: Is there a way to put a limit on dollar amount I can accept PayPal for?

    try this, im no expert so someone could tell us if it causes any problems elsewhere

    in /includes/modules/payment/paypal/tpl_ec_button.php

    line 93 lets you limit paypal amount,

    and in /includes/modules/payment/paypal/paypalwpp.php

    just before if (IS_ADMIN_FLAG === true) { on line 109

    add

    PHP Code:
    if ($order->info['total'] > 10$this->enabled false
    where 10 is the amount you want paypal to switch off, obviously set both to same amount so express checkut button disapears and paypal disapears during checkout

    hope this helps and hope it works

    bryan

  4. #4
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    2,505
    Plugin Contributions
    7

    Default Re: Is there a way to put a limit on dollar amount I can accept PayPal for?

    Quote Originally Posted by bn17311 View Post
    try this, im no expert so someone could tell us if it causes any problems elsewhere

    in /includes/modules/payment/paypal/tpl_ec_button.php

    line 93 lets you limit paypal amount,

    ....
    There is no line 93 in the standard install.

    This is the code to find starting around line 46:

    Code:
      // PayPal module cannot be used for purchase > $10,000 USD or 5500 GBP
      if ( ($_SESSION['currency'] == 'USD' && $currencies->value($_SESSION['cart']->total, true, 'USD') > 10000)
        || ($_SESSION['currency'] == 'GBP' && $currencies->value($_SESSION['cart']->total, true, 'GBP') > 5500) ) {
        $paypalec_enabled = false;
      }
    Zen Cart with a Passion (Fair Dinkum Australian): iSO Network | frNT Online Dispensary
    Contribs: CSAR | German Language Pack | Local Delivery Only

  5. #5
    Join Date
    Feb 2011
    Posts
    43
    Plugin Contributions
    0

    Default Re: Is there a way to put a limit on dollar amount I can accept PayPal for?

    Quote Originally Posted by bn17311 View Post
    in /includes/modules/payment/paypal/paypalwpp.php
    just before if (IS_ADMIN_FLAG === true) { on line 109
    add
    PHP Code:
    if ($order->info['total'] > 10$this->enabled false
    bryan
    Since I have the button disabled I didn't need the first part of the tip but just installed the second and it works great thanks! It also would be nice if their order is over the set amount, I could also display a message that will tell the customer why the paypal payment method isn't showing when they proceed to the picking payment page but if that's too hard a fix, it will work as is!

  6. #6
    Join Date
    Sep 2008
    Location
    DownUnder, overlooking South Pole.
    Posts
    782
    Plugin Contributions
    4

    Default Re: Is there a way to put a limit on dollar amount I can accept PayPal for?

    Quote Originally Posted by frank18 View Post
    There is no line 93 in the standard install.

    This is the code to find starting around line 46:

    Code:
      // PayPal module cannot be used for purchase > $10,000 USD or 5500 GBP
      if ( ($_SESSION['currency'] == 'USD' && $currencies->value($_SESSION['cart']->total, true, 'USD') > 10000)
        || ($_SESSION['currency'] == 'GBP' && $currencies->value($_SESSION['cart']->total, true, 'GBP') > 5500) ) {
        $paypalec_enabled = false;
      }
    Hi Frank

    What does one do when the store is denominated in AUD.

    I want to set my limit to $500AUD.

    Thanks in advance.

  7. #7
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    2,505
    Plugin Contributions
    7

    Default Re: Is there a way to put a limit on dollar amount I can accept PayPal for?

    Quote Originally Posted by dw08gm View Post
    Hi Frank

    What does one do when the store is denominated in AUD.

    I want to set my limit to $500AUD.

    Thanks in advance.
    You could set the lines as in post #4 to something like this:

    Code:
      // PayPal module cannot be used for purchase > $10,000 USD or 5500 GBP
      if ( ($_SESSION['currency'] == 'USD' && $currencies->value($_SESSION['cart']->total, true, 'USD') > 10000)
        || ($_SESSION['currency'] == 'AUD' && $currencies->value($_SESSION['cart']->total, true, 'AUD') > 500)
        || ($_SESSION['currency'] == 'GBP' && $currencies->value($_SESSION['cart']->total, true, 'GBP') > 5500) ) {
        $paypalec_enabled = false;
      }
    Zen Cart with a Passion (Fair Dinkum Australian): iSO Network | frNT Online Dispensary
    Contribs: CSAR | German Language Pack | Local Delivery Only

  8. #8
    Join Date
    Sep 2008
    Location
    DownUnder, overlooking South Pole.
    Posts
    782
    Plugin Contributions
    4

    Default Re: Is there a way to put a limit on dollar amount I can accept PayPal for?

    Hi Frank

    Please see the following, which ties up a few loose threads.

    http://www.zen-cart.com/forum/showth...394#post996394

    Cheers

  9. #9
    Join Date
    Feb 2011
    Posts
    43
    Plugin Contributions
    0

    Default Re: Is there a way to put a limit on dollar amount I can accept PayPal for?

    I used the suggestion above and modified my tpl_ec_button.php file to limit my PayPal acceptance to $300 and it worked well.
    The problem now though is I wanted to bump it up to $400 and although I changed the value from 300 to 400, it still limits me to $300. What I have now is below.

    // PayPal module cannot be used for purchase > $400 USD
    if ($_SESSION['currency'] == 'USD' && $currencies->value($_SESSION['cart']->total, true, 'USD') > 400) {
    $paypalec_enabled = false;
    }

    It's been quite a while since I set this up and can't remember if I changed anything besides that line to set the original $300 limit. Any clue what I'm missing? Another file somewhere I might have also changed?

  10. #10
    Join Date
    Feb 2011
    Posts
    43
    Plugin Contributions
    0

    Default Re: Is there a way to put a limit on dollar amount I can accept PayPal for?

    Still haven't figured out why this doesn't work. Any help?

 

 

Similar Threads

  1. Percentage of Total Amount or Dollar Value
    By anshin in forum Built-in Shipping and Payment Modules
    Replies: 12
    Last Post: 16 Nov 2010, 03:02 PM
  2. Free TShirt with certain dollar amount
    By creativeone in forum General Questions
    Replies: 3
    Last Post: 9 Jul 2009, 10:11 PM
  3. Can you set a minimum dollar amount that has to be ordered
    By inklingsolutions in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 2 Apr 2009, 11:27 PM
  4. Can you set a minimum dollar amount that has to be ordered
    By inklingsolutions in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 2 Apr 2009, 11:24 PM
  5. Must purchase X dollar amount before checkout
    By Website Rob in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 12 Sep 2007, 11:40 AM

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
  •