Update upsell.html
This commit is contained in:
+5
-7
@@ -202,7 +202,7 @@
|
||||
id="btn-trial"
|
||||
disabled
|
||||
>
|
||||
…
|
||||
Your Plan
|
||||
</button>
|
||||
<ul class="plan-features">
|
||||
<li>ODOO CE hosting</li>
|
||||
@@ -368,18 +368,16 @@
|
||||
if (!btn || !card) return;
|
||||
|
||||
if (idx === currentIdx) {
|
||||
// Current plan
|
||||
// Current plan – green disabled button with expiry date
|
||||
card.classList.add("current");
|
||||
btn.textContent = expiresLabel;
|
||||
btn.disabled = true;
|
||||
btn.classList.add("is-current-plan");
|
||||
} else if (idx < currentIdx) {
|
||||
// Lower tier – no downgrade
|
||||
btn.textContent = expiresLabel;
|
||||
btn.disabled = true;
|
||||
btn.classList.remove("is-current-plan");
|
||||
// Lower tier – hide entirely
|
||||
card.style.display = "none";
|
||||
}
|
||||
// Higher tiers: leave as "Buy Now" / "Contact Us" (enabled)
|
||||
// Higher tiers: leave as "Buy Now" (enabled)
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user