Public Access
feat(bootcamp): live remaining-seat count from availability webhook
Show the honest remaining seats for product 17 (Bootcamp Q1-2027) on all three bootcamp pages, in the page's own language, from the availability webhook. Progressive enhancement (static/bootcamp-availability.js): empty and hidden by default, filled on a successful fetch; on qty 0 the cohort is reported full, the next cohort is pointed at, and the Buy buttons are disabled; on any timeout/error/unexpected payload the page is left exactly as-is and the Buy buttons stay enabled. The count is never written into the HTML as a fixed string.
This commit is contained in:
1 parent
d8a6126b9d
commit
f2e375a8f1
4 files changed
+143
No files matched your search
@@ -771,6 +771,7 @@
|
||||
<h2 class="section-title">Preis und Buchung</h2>
|
||||
<p class="bc-price">Das Programm kostet USD 595.00 für alle zehn Sitzungen.</p>
|
||||
<p class="bc-note"><strong>Begrenzt auf 6 Teilnehmer</strong> — die Gruppe ist klein, damit der Trainer sich Ihre eigene Konfiguration ansehen kann.</p>
|
||||
<p class="bc-note bc-seats" data-bc-seats hidden></p>
|
||||
<p class="bc-note">Ein Platz ist <strong>jederzeit übertragbar</strong> und kann <strong>bis zwei Wochen vor</strong> der ersten Sitzung am 21. Januar 2027 storniert werden.</p>
|
||||
<p class="bc-lead">
|
||||
Umfasst das komplette Programm: zehn Live-Sessions, ein Jahr gehostetes Odoo Community Edition, die Alumni-Community und die Expertenprüfung.
|
||||
@@ -879,6 +880,7 @@
|
||||
</div>
|
||||
</footer>
|
||||
<script defer src="/static/buy.js"></script>
|
||||
<script defer src="/static/bootcamp-availability.js"></script>
|
||||
<script defer src="/static/lang.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in new issue
Block a user