Update upsell.html
This commit is contained in:
+11
-10
@@ -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);
|
||||||
btn.textContent = "Add 1 Year";
|
// Trial is always green with no text – skip button changes
|
||||||
btn.disabled = false;
|
if (plan !== "Trial") {
|
||||||
btn.classList.add("is-current-plan");
|
btn.textContent = "Add 1 Year";
|
||||||
btn.addEventListener("click", function () {
|
btn.disabled = false;
|
||||||
buyProduct("extend-" + meta.productId);
|
btn.classList.add("is-current-plan");
|
||||||
});
|
btn.addEventListener("click", function () {
|
||||||
|
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";
|
||||||
|
|||||||
Reference in New Issue
Block a user