Update upsell.html

This commit is contained in:
Your Name
2026-04-11 10:38:10 -03:00
parent 8f68959256
commit c9d6c937f8
+11 -10
View File
@@ -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);
btn.textContent = "Add 1 Year";
btn.disabled = false;
btn.classList.add("is-current-plan");
btn.addEventListener("click", function () {
buyProduct("extend-" + meta.productId);
});
// 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";