Jump to content

Only allow paypal payments under 500euros


Recommended Posts

Just trying to work this one out,
hope maybe someone could give me a few pointers

If my cart total goes over 500 euros I'd like to do disable
the ability to pay by paypal at the end of checkout
however under 500 no problem to use paypal

I've been looking at doing a test on the cart value in the paypal.php file

if cart_value <500

public function hookPayment($params)
{
global $smarty;

$address = new Address(intval($params['cart']->id_address_invoice));
$customer = new Customer(intval($params['cart']->id_customer));
$business = Configuration::get('PAYPAL_BUSINESS');
$currency = $this->getCurrency();

else ....

no paypal

anyone shine a torch for me here :-) much appreciated

jaygo

Link to comment
Share on other sites

  • 3 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...