From 40e465857604b424741d4866d4e6029e55d98f17 Mon Sep 17 00:00:00 2001 From: Alex P Date: Fri, 5 Jan 2024 09:28:57 +0200 Subject: [PATCH] Fix buttons loading in block editor --- modules/ppcp-button/src/Assets/SmartButton.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ppcp-button/src/Assets/SmartButton.php b/modules/ppcp-button/src/Assets/SmartButton.php index d887b9bf9..189aa5ec0 100644 --- a/modules/ppcp-button/src/Assets/SmartButton.php +++ b/modules/ppcp-button/src/Assets/SmartButton.php @@ -606,7 +606,7 @@ document.querySelector("#payment").before(document.querySelector("#ppcp-messages case 'product': return $smart_button_enabled_for_current_location || $smart_button_enabled_for_mini_cart; default: - return $smart_button_enabled_for_mini_cart; + return $smart_button_enabled_for_mini_cart || $this->is_block_editor(); } }