From 8950b9ca13b0594f6bfb273f8f69bf75b4600fc6 Mon Sep 17 00:00:00 2001 From: Alex P Date: Mon, 27 Feb 2023 12:03:32 +0200 Subject: [PATCH] Render pay later message before buttons on order pay page --- modules/ppcp-button/src/Assets/SmartButton.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/ppcp-button/src/Assets/SmartButton.php b/modules/ppcp-button/src/Assets/SmartButton.php index d8ec25211..f1a2adfc0 100644 --- a/modules/ppcp-button/src/Assets/SmartButton.php +++ b/modules/ppcp-button/src/Assets/SmartButton.php @@ -405,7 +405,7 @@ class SmartButton implements SmartButtonInterface { add_action( $this->pay_order_renderer_hook(), array( $this, 'message_renderer' ), - 11 + 15 ); } return true; @@ -478,7 +478,8 @@ class SmartButton implements SmartButtonInterface { function (): void { $this->button_renderer( PayPalGateway::ID ); $this->button_renderer( CardButtonGateway::ID ); - } + }, + 20 ); add_action( $this->checkout_button_renderer_hook(),