Update upsell.html
This commit is contained in:
+5
-4
@@ -218,9 +218,7 @@
|
||||
class="plan-btn is-current-plan"
|
||||
id="btn-trial"
|
||||
disabled
|
||||
>
|
||||
Your Plan
|
||||
</button>
|
||||
></button>
|
||||
<ul class="plan-features">
|
||||
<li>ODOO CE hosting</li>
|
||||
<li>0 Backup Slots</li>
|
||||
@@ -389,18 +387,21 @@
|
||||
if (!btn || !card) return;
|
||||
|
||||
if (idx === currentIdx) {
|
||||
// Current plan – green frame, badge with expiry date, "Add 1 Year" button
|
||||
// Current plan – green frame, badge with expiry date
|
||||
card.classList.add("current");
|
||||
var badge = document.createElement("div");
|
||||
badge.className = "plan-badge";
|
||||
badge.textContent = badgeLabel;
|
||||
card.insertBefore(badge, card.firstChild);
|
||||
// Trial is always green with no text – skip button changes
|
||||
if (plan !== "Trial") {
|
||||
btn.textContent = "Add 1 Year";
|
||||
btn.disabled = false;
|
||||
btn.classList.add("is-current-plan");
|
||||
btn.addEventListener("click", function () {
|
||||
buyProduct("extend-" + meta.productId);
|
||||
});
|
||||
}
|
||||
} else if (idx < currentIdx) {
|
||||
// Lower tier – hide entirely
|
||||
card.style.display = "none";
|
||||
|
||||
Reference in New Issue
Block a user