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">Precio y reserva</h2>
|
||||
<p class="bc-price">El programa cuesta USD 595.00 por las diez sesiones.</p>
|
||||
<p class="bc-note"><strong>Limitado a 6 participantes</strong> — el grupo es reducido, para que el instructor pueda trabajar sobre su propia configuración.</p>
|
||||
<p class="bc-note bc-seats" data-bc-seats hidden></p>
|
||||
<p class="bc-note">Una plaza se puede <strong>transferir en cualquier momento</strong> y <strong>cancelar hasta dos semanas antes</strong> de la primera sesión, el 21 de enero de 2027.</p>
|
||||
<p class="bc-lead">
|
||||
Cubre el programa completo: diez sesiones en directo, un año de Odoo Community Edition alojado, la comunidad de antiguos alumnos y la revisión experta.
|
||||
@@ -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