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; }
Hi Frank
Please see the following, which ties up a few loose threads.
http://www.zen-cart.com/forum/showth...394#post996394
Cheers
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?
Still haven't figured out why this doesn't work. Any help?