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