mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-08 21:52:55 +08:00
Render pay later blocks
This commit is contained in:
parent
d8ff7f79e6
commit
baa3afeb9b
6 changed files with 46 additions and 20 deletions
|
@ -620,6 +620,10 @@ document.querySelector("#payment").before(document.querySelector("#ppcp-messages
|
|||
return false;
|
||||
}
|
||||
|
||||
if ( has_block( 'woocommerce-paypal-payments/paylater-messages' ) ) {
|
||||
return true;
|
||||
}
|
||||
|
||||
$location = $this->location();
|
||||
|
||||
$messaging_enabled_for_current_location = $this->settings_status->is_pay_later_messaging_enabled_for_location( $location );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue