Skip to content

Commit

Permalink
Merge pull request #5 from angelleye/PFWMA-38
Browse files Browse the repository at this point in the history
Notice on Mail when send invoice from Order List, PFWMA-38
  • Loading branch information
Drew Angell authored Jun 2, 2019
2 parents 11de4ec + 5f40100 commit b68d82a
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -808,6 +808,9 @@ public function angelleye_get_multi_account_api_user_name($order_id) {
public function angelleye_get_multi_account_by_order_total_latest($gateways, $gateway_setting, $order_id) {
global $user_ID;
$current_user_roles = array();
if(!isset($gateways->testmode)) {
return;
}
if (is_user_logged_in()) {
$user = new WP_User($user_ID);
if (!empty($user->roles) && is_array($user->roles)) {
Expand Down Expand Up @@ -1182,7 +1185,9 @@ public function angelleye_paypal_for_woocommerce_multi_account_api_paypal_expres
} else {
$gateway_setting = $request;
}

if( !isset($gateways) || !isset($gateways->testmode)) {
return false;
}
if ($order_id == null) {
if (is_null(WC()->cart)) {
return;
Expand Down

0 comments on commit b68d82a

Please sign in to comment.