Hi there,
I want to set up my site so that for PayPal, instead of having a minimum order total before the payment method becomes active, have it so that no orders can be placed when the value of the cart is greater than £50 or so.
Could anyone be so kind as to let me know how to do this?
King Regards,
Ultan.
You can use Restrict Payment Methods to do this, if you want to avoid editing files yourself, and have something with some more flexibility. Otherwise, if you want to try hard-coding it, you can try an edit like this:
It should work the same for any other payment method file in that directory.
Code: Select all
IN:
/catalog/model/payment/pp_standard.php
AFTER:
public function getMethod($address, $total) {
ADD:
if ($this->cart->getSubTotal() > 50) return array();
Who is online
Users browsing this forum: Majestic-12 [Bot] and 19 guests