Update upsell.html

This commit is contained in:
Your Name
2026-04-11 10:38:10 -03:00
parent 8f68959256
commit c9d6c937f8
+5 -4
View File
@@ -218,9 +218,7 @@
class="plan-btn is-current-plan" class="plan-btn is-current-plan"
id="btn-trial" id="btn-trial"
disabled disabled
> ></button>
Your Plan
</button>
<ul class="plan-features"> <ul class="plan-features">
<li>ODOO CE hosting</li> <li>ODOO CE hosting</li>
<li>0 Backup Slots</li> <li>0 Backup Slots</li>
@@ -389,18 +387,21 @@
if (!btn || !card) return; if (!btn || !card) return;
if (idx === currentIdx) { 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"); card.classList.add("current");
var badge = document.createElement("div"); var badge = document.createElement("div");
badge.className = "plan-badge"; badge.className = "plan-badge";
badge.textContent = badgeLabel; badge.textContent = badgeLabel;
card.insertBefore(badge, card.firstChild); card.insertBefore(badge, card.firstChild);
// Trial is always green with no text skip button changes
if (plan !== "Trial") {
btn.textContent = "Add 1 Year"; btn.textContent = "Add 1 Year";
btn.disabled = false; btn.disabled = false;
btn.classList.add("is-current-plan"); btn.classList.add("is-current-plan");
btn.addEventListener("click", function () { btn.addEventListener("click", function () {
buyProduct("extend-" + meta.productId); buyProduct("extend-" + meta.productId);
}); });
}
} else if (idx < currentIdx) { } else if (idx < currentIdx) {
// Lower tier hide entirely // Lower tier hide entirely
card.style.display = "none"; card.style.display = "none";