Pricing flow: model picker first, then model-specific price ranges
deploy / build-and-publish (push) Successful in 40s

- Q0 'Which pricing model would you prefer?' (monthly / annual / per
  project radios) gates the four PSM questions; picking a model reveals
  question 1 and swaps each question's ranges to that model's set
  (switching model clears previous answers)
- ranges: monthly and per-project unchanged (€0/10/25/50/100+); annual
  €0/50/150/300/500 (tops at €500 per Keith's gut - to be tested)
- questions reworded model-neutral ('At what price...' instead of
  'monthly price')
- analytics: price-model-<model> for the picker, price-<model>-<question>-<option>
  per answer; Zoho payload gains price_model plus the usual question=option
  pairs
- CMS config: price_models list (key/label/options) + price_model_question;
  price_groups simplified to key/heading; preview mirrors the flow
This commit is contained in:
Keith committed 2026-11-22 13:14:40 +01:00
1 parent f3bdd925d5
commit 7bac903809
5 files changed
+137 -96

No files matched your search

+3
View File
@@ -131,6 +131,9 @@ const note = type === "founders" ? strings.form_founders_note : strings.form_hub
// not the checkbox's literal "on"; an unchecked box never arrives)
payload.consent = data.get("consent") === "on";
if (payload.website) return; // honeypot: pretend success, send nothing
// the pricing-model picker lives outside the <form> element
const modelPick = document.querySelector('input[name="price_model"]:checked');
if (modelPick) payload.price_model = modelPick.value;
button.disabled = true;
button.textContent = STRINGS.sending || "Sending…";
try {