mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-07 19:54:15 +08:00
Check if pay for order contains subscription
This commit is contained in:
parent
6d0c821b19
commit
08d3dea790
1 changed files with 4 additions and 0 deletions
|
@ -613,6 +613,10 @@ class SmartButton implements SmartButtonInterface {
|
||||||
if ( is_product() ) {
|
if ( is_product() ) {
|
||||||
return $this->subscription_helper->current_product_is_subscription();
|
return $this->subscription_helper->current_product_is_subscription();
|
||||||
}
|
}
|
||||||
|
if ( is_wc_endpoint_url( 'order-pay' ) ) {
|
||||||
|
return $this->subscription_helper->order_pay_contains_subscription();
|
||||||
|
}
|
||||||
|
|
||||||
return $this->subscription_helper->cart_contains_subscription();
|
return $this->subscription_helper->cart_contains_subscription();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue