Skip to content

Commit

Permalink
Shipping Zone rule(s) are not triggering properly. PFWMA-299
Browse files Browse the repository at this point in the history
  • Loading branch information
kcppdevelopers committed Jul 13, 2023
1 parent 440254a commit 78c7484
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,8 @@ public function angelleye_get_multi_account_by_order_total_latest($gateways, $ga
$woo_shipping_zone = wc_get_shipping_zone( reset( $shipping_packages ) );
$zone_id = $woo_shipping_zone->get_id();
if ($zone_id != $mul_shipping_zone) {
$cart_loop_not_pass = $cart_loop_not_pass + 1;
unset($result[$key]);
unset($passed_rules);
continue;
}
}
Expand All @@ -405,6 +406,8 @@ public function angelleye_get_multi_account_by_order_total_latest($gateways, $ga
if (!empty($shipping_class) && $shipping_class != 'all') {
if ($product_shipping_class != $shipping_class) {
$cart_loop_not_pass = $cart_loop_not_pass + 1;
unset($result[$key]);
unset($passed_rules);
continue;
}
}
Expand Down

0 comments on commit 78c7484

Please sign in to comment.