mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 09:08:09 +08:00
Hide non updatable form fields if subscription product connected to PayPal
This commit is contained in:
parent
8c407546a3
commit
09c7537e48
3 changed files with 15 additions and 9 deletions
|
@ -91,6 +91,9 @@ class SingleProductBootstap {
|
|||
}
|
||||
|
||||
priceAmountIsZero() {
|
||||
if(subscriptionHasPlan()) {
|
||||
return false;
|
||||
}
|
||||
const price = this.priceAmount();
|
||||
return !price || price === 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue