Results 1 to 10 of 10

Hybrid View

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

    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.

  2. #2
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    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;
      }

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

    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

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

  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?

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

 

 

Similar Threads

  1. v139f Is there a way to limit the cart dollar amount? Having scammer problems!
    By osdparts in forum Managing Customers and Orders
    Replies: 2
    Last Post: 2 Apr 2013, 05:31 AM
  2. Any Way To Force USPS Express Shipping based on dollar amount?
    By dharma in forum Built-in Shipping and Payment Modules
    Replies: 5
    Last Post: 9 Nov 2010, 07:23 PM
  3. To put limit the amount of products?
    By SWFW in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 26 Mar 2007, 11:46 PM
  4. Is there any way to limit the amount of new products shown on the homepage?
    By gregoryjameswood in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 26 Jan 2007, 04:22 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