Hide non updatable form fields if subscription product connected to PayPal

This commit is contained in:
Emili Castells Guasch 2023-06-16 16:11:45 +02:00
parent 8c407546a3
commit 09c7537e48
3 changed files with 15 additions and 9 deletions

View file

@ -91,6 +91,9 @@ class SingleProductBootstap {
}
priceAmountIsZero() {
if(subscriptionHasPlan()) {
return false;
}
const price = this.priceAmount();
return !price || price === 0;
}