For PayPal IPN (Standard), you would need to customize the Payment Module file:
/includes/payment/paypal.php
and change this section of code to be:
Code:
$this->enabled = ((MODULE_PAYMENT_PAYPAL_STATUS == 'True') ? true : false);
// bof: custom code for order status
if ($order->info['total'] <= 50.00) {
// set to normal setting for orders less than or equal to $50
$this->order_status = MODULE_PAYMENT_PAYPAL_ORDER_STATUS_ID;
} else {
// set to pending for orders over $50
$this->order_status = 1;
}
// eof: custom code for order status
if (is_object($order)) $this->update_status();
Bookmarks