From a83574275570887b443a8937ccf30f6e23ec95c0 Mon Sep 17 00:00:00 2001 From: Narek Zakarian Date: Tue, 14 May 2024 15:28:14 +0400 Subject: [PATCH] do not apply shipping callback on classic checkout --- 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 1e78d5d2f..1bca8238c 100644 --- a/modules/ppcp-button/src/Assets/SmartButton.php +++ b/modules/ppcp-button/src/Assets/SmartButton.php @@ -1279,7 +1279,7 @@ document.querySelector("#payment").before(document.querySelector(".ppcp-messages 'user' => array( 'is_logged' => is_user_logged_in(), ), - 'should_handle_shipping_in_paypal' => $this->should_handle_shipping_in_paypal + 'should_handle_shipping_in_paypal' => $this->should_handle_shipping_in_paypal && ! $this->is_checkout(), ); if ( 'pay-now' === $this->context() ) {