mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Fix availability notice
This commit is contained in:
parent
8750cc01cc
commit
993191ff34
1 changed files with 4 additions and 1 deletions
|
@ -65,9 +65,12 @@ class AvailabilityNotice {
|
|||
return;
|
||||
}
|
||||
|
||||
// We need to check is active before checking failure requests, otherwise failure status won't be set.
|
||||
$is_active = $this->product_status->is_active();
|
||||
|
||||
if ( $this->product_status->has_request_failure() ) {
|
||||
$this->add_seller_status_failure_notice();
|
||||
} elseif ( ! $this->product_status->is_active() ) {
|
||||
} elseif ( ! $is_active ) {
|
||||
$this->add_not_available_notice();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue