Skip to content

Commit

Permalink
Notice on Mail when send invoice from Order List, PFWMA-38
Browse files Browse the repository at this point in the history
  • Loading branch information
kcppdevelopers committed May 27, 2019
1 parent bfd0ea8 commit 5f40100
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -799,6 +799,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 @@ -1173,7 +1176,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 5f40100

Please sign in to comment.