Merge pull request #2080 from woocommerce/PCP-2691-integrate-pay-later-messaging-block-with-the-messaging-configurator

Integrate pay later messaging block with the messaging configurator (2691)
This commit is contained in:
Emili Castells 2024-03-12 17:09:06 +01:00 committed by GitHub
commit dd60e736a0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 57 additions and 65 deletions

View file

@ -631,7 +631,7 @@ document.querySelector("#payment").before(document.querySelector("#ppcp-messages
$messaging_enabled_for_current_location = $this->settings_status->is_pay_later_messaging_enabled_for_location( $location );
$has_paylater_block = has_block( 'woocommerce-paypal-payments/paylater-messages' ) && PayLaterBlockModule::is_enabled();
$has_paylater_block = has_block( 'woocommerce-paypal-payments/paylater-messages' ) && PayLaterBlockModule::is_block_enabled( $this->settings_status );
switch ( $location ) {
case 'checkout':
@ -878,7 +878,7 @@ document.querySelector("#payment").before(document.querySelector("#ppcp-messages
'wrapper' => '#ppcp-messages',
'is_hidden' => ! $this->is_pay_later_filter_enabled_for_location( $this->context() ),
'block' => array(
'enabled' => PayLaterBlockModule::is_enabled(),
'enabled' => PayLaterBlockModule::is_block_enabled( $this->settings_status ),
),
'amount' => $amount,
'placement' => $placement,