Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notice on Mail when send invoice from Order List, PFWMA-38 #5

Merged
merged 1 commit into from
Jun 2, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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