Loading...
Navigation überspringen
Bitte beachte, dass sich diese Dokumentation auf die neuste Version dieser Erweiterung bezieht. Wenn eine ältere Version eingesetzt wird, kann diese abweichen. Die jeweils passende Dokumentation befindet sich im Dokumentation-Verzeichnis der Erweiterung.

Bankdaten-Felder bei der Registierung steuern

Wenn Du die Bankdaten-Felder bei der Registrierung oder auch beim Profil bearbeiten nur anzeigen wollen, wenn Bankeinzug ausgewählt ist, kannst Du das folgende JavaScript verwenden:

jQuery(function() {
    var accountingTypeSelect = jQuery('#registration_accounting_type');
    if(accountingTypeSelect.length > 0) {
        switchUserAccountingType(accountingTypeSelect.val());
        accountingTypeSelect.on('change', function() {
            switchUserAccountingType(jQuery(this).val());
        });
    }
});

function switchUserAccountingType(accountingType) {
    if(accountingType === 'accounting') {
        jQuery('#registration_bank_account_owner_name').parent().hide();
        jQuery('#registration_bank_account_bank_name').parent().hide();
        jQuery('#registration_bank_account_bic').parent().hide();
        jQuery('#registration_bank_account_iban').parent().hide();
        jQuery('#profile_bank_account_owner_name').parent().hide();
        jQuery('#profile_bank_account_bank_name').parent().hide();
        jQuery('#profile_bank_account_bic').parent().hide();
        jQuery('#profile_bank_account_iban').parent().hide();
    }
    else {
        jQuery('#registration_bank_account_owner_name').parent().show();
        jQuery('#registration_bank_account_bank_name').parent().show();
        jQuery('#registration_bank_account_bic').parent().show();
        jQuery('#registration_bank_account_iban').parent().show();
        jQuery('#profile_bank_account_owner_name').parent().show();
        jQuery('#profile_bank_account_bank_name').parent().show();
        jQuery('#profile_bank_account_bic').parent().show();
        jQuery('#profile_bank_account_iban').parent().show();
    }
}

Kontaktanfrage

Du kannst uns jederzeit kontaktieren

Stop! Playing in the meantime?
Stop! Playing in the meantime?
Stop! Playing in the meantime?

Stop! Playing in the meantime?

Break the highscore

Press Start
Contact request
Screenreader label
Security question
49J_________X________
2______P____S_T___56S
7IO___7SB___RTC______
Q_W____6______F___EB8
Q2J___________9______