diff --git a/Website/main.py b/Website/main.py index fb6160b..97d38fb 100644 --- a/Website/main.py +++ b/Website/main.py @@ -2585,7 +2585,8 @@ def booking_payment(): return redirect(url_for("user_chat")) if booking_flow in ["payment", "trial"]: - booking_number = f"{"TRIAL" if is_trial else "BOOK"}-{datetime.utcnow().strftime('%Y%m%d%H%M%S')}" + # CORRECTED: Syntax error in the f-string is fixed below (uses single quotes inside double quotes) + booking_number = f"{'TRIAL' if is_trial else 'BOOK'}-{datetime.utcnow().strftime('%Y%m%d%H%M%S')}" raw_base = form_data.get("tenant_slug") or form_data.get("school_name") or session.get("username") or booking_number base = _slugify_subdomain(raw_base).lower()[:51] diff --git a/Website/static/logos/Logo ohne Background .xcf b/Website/static/logos/Logo ohne Background .xcf deleted file mode 100644 index b50507f..0000000 Binary files a/Website/static/logos/Logo ohne Background .xcf and /dev/null differ diff --git a/Website/templates/preise.html b/Website/templates/preise.html index 465f1ed..a5a8d1a 100644 --- a/Website/templates/preise.html +++ b/Website/templates/preise.html @@ -260,35 +260,6 @@ - - -
@@ -364,8 +335,8 @@
- - + +
@@ -435,6 +406,28 @@ } else { totalPriceEl.innerText = `${total} € / Jahr`; } + + // Dynamic Checkout Button Text & Behavior + + const btnCheckout = document.getElementById('btnCheckout'); + const btnConsultation = document.getElementById('btnConsultation'); + + const isTrial = cart.some(item => item.id === 'testversion'); + const isCustom = cart.some(item => item.id === 'schultraeger'); + + if (isTrial) { + btnCheckout.innerText = "Kostenlos testen (14 Tage)"; + btnCheckout.setAttribute('onclick', "goToCheckout('trial')"); + btnConsultation.style.display = 'none'; // Hide consultation for trials + } else if (isCustom) { + btnCheckout.innerText = "Angebot anfordern"; + btnCheckout.setAttribute('onclick', "goToCheckout('consultation')"); // Force consultation + btnConsultation.style.display = 'none'; + } else { + btnCheckout.innerText = "Jetzt Zahlungspflichtig buchen"; + btnCheckout.setAttribute('onclick', "goToCheckout('payment')"); + btnConsultation.style.display = 'inline-block'; + } } // Artikel zum Warenkorb hinzufügen