Sure. Will just "steal" Ajeh's code as I expect/suspect that the session data is still valid since it doesn't look like there was any session removal code provided for that new value:
Includes/modules/payments/paypal.php
look for: function update_status()
And towards the bottom of that section of code
Before:
Code:
if ($check_flag == false) {
$this->enabled = false;
}
Insert:
Code:
// bof: disable on orders less than 2000
if (!IS_ADMIN_FLAG) {
if ($_SESSION['my_total'] < 2000.00) {
$this->enabled = false;
}
}
// eof: disable on orders less than 2000
To look like this in that area:
Code:
// bof: disable on orders less than 2000
if (!IS_ADMIN_FLAG) {
if ($_SESSION['my_total'] < 2000.00) {
$this->enabled = false;
}
}
// eof: disable on orders less than 2000
if ($check_flag == false) {
$this->enabled = false;
}
Bookmarks