do not apply shipping callback on classic checkout

This commit is contained in:
Narek Zakarian 2024-05-14 15:28:14 +04:00
parent effa906bbe
commit a835742755
No known key found for this signature in database
GPG key ID: 07AFD7E7A9C164A7

View file

@ -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() ) {