Registration and membership application widget
New members register on your website, alone or as a family, with membership, bank details, SEPA mandate and consents.
With this widget, new members and customers register themselves. It comes in two forms, both in the same script:
| Form | For | Placeholder |
|---|---|---|
| Registration | one person, step by step | data-iw-registration |
| Membership application | several people in one application, such as a family | data-iw-registration data-iw-people="multi" |
<div data-iw-registration
data-iw-host="club.iw-erp.de"
data-iw-people="multi"
data-iw-max-people="6"
data-iw-shared-last-name="true"></div>
<script src="https://club.iw-erp.de/frontend_assets/backend/iw_erp_web_ui/registration.js" async></script>
Shortcodes: [iw-registration host="club.iw-erp.de"] and [iw-registration host="club.iw-erp.de" people="multi"]
You set which memberships and products are available, which fields are required and whether a new account is created in vynst under self-registration. The widget shows exactly that.
Options for both forms
| Attribute | Default | Meaning |
|---|---|---|
data-iw-invite-code |
empty | invite code, for example for a specific rate. Short form: data-iw-code |
data-iw-require-acceptance |
on | required checkbox for terms and privacy |
data-iw-conditions-text, data-iw-privacy-text |
standard texts | text of the two checkboxes |
data-iw-cancellation-text, data-iw-disclaimer-text |
empty | extra checkboxes for cancellation right and liability, only shown if a text is set |
data-iw-show-but-fields |
off | fields for education and participation (BuT) |
data-iw-require-but-number |
off | BuT number becomes required |
data-iw-activate-sepa-payment |
on | activate the entered bank details as SEPA direct debit |
data-iw-success-redirect-url |
empty | after submitting, go to this page |
data-iw-local-storage-key |
automatic | key for cached input. Set it if you insert the placeholder via JavaScript. |
data-iw-render |
shadow |
light: render into the page so your CSS applies. With data-iw-styles="none", without any CSS of the widget itself. |
Registration only
| Attribute | Default | Meaning |
|---|---|---|
data-iw-registration-flow |
auto |
unified (with membership and bank details), basic (master data only) or auto (first unified, otherwise basic) |
data-iw-show-birthday |
off | ask for the date of birth |
data-iw-minor-requires-guardian |
off | require details of the legal guardian for minors |
Membership application only
| Attribute | Default | Meaning |
|---|---|---|
data-iw-min-people, data-iw-max-people |
1, unlimited | number of people |
data-iw-max-adults |
unlimited | at most this many adults |
data-iw-adult-age |
18 | age from which a person is an adult |
data-iw-shared-last-name |
off | one last name for everyone |
data-iw-main-product |
off | choose one main membership per person |
data-iw-entry-date-months |
3 | this many first-of-the-month dates are offered as entry date |
data-iw-photo-consent |
off | photo consent per person |
data-iw-referral-code |
off | field for a referral code |
data-iw-show-comment-field |
off | comment field in the summary |
data-iw-show-intro |
on | start page before the application |
data-iw-iban-lookup |
on | determine bank and BIC from the IBAN |
data-iw-persist |
on | cache unfinished input |
data-iw-rules-url, data-iw-rules |
empty | rules for fees and combinations as JSON (a file on your website or directly in the attribute) |
data-iw-calculator |
off | fee calculator instead of the application; needs rules. data-iw-application-url links to the application. |
Set up in vynst
- Registration - Mode (
iw_self_sign_up_mode) must not beNONE. Allowed values areNEW_ACCOUNT,EXISTING_ACCOUNTandBOTH. WithNONE, vynst rejects submissions. - Release the memberships and products for self-registration.
- Enter your website under CORS - Permitted origins.
Events
Registration: iw:registration:ready, :validated, :submitted, :error.
Membership application: iw:register-multi-person:ready, :validated, :submitted, :error, and with the calculator :apply. The membership application events only contain numbers such as step, number of people and IDs, no personal data.
API
The widget uses GET /api/cp/signup/unified_start/json (or /api/cp/signup/start) to start, and POST /api/cp/signup/finish/{token} to submit. For the membership application, all further people are sent in one call.