Skip to main navigation Skip to main content Skip to page footer

Manage banking details at registration

If you want to display bank data fields during registration or edit profile only if direct debit is selected, use JavaScript as follows:

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();
    }
}
Shopping basket 0 Products

The Demo is build with*

EXT:bootstrap_package for site-package aka theme build on Bootsrap 5.

EXT:modules for user plugins like user-profile, registration, user-addresses, and more.

EXT:shop for the whole shop functionality.

EXT:questions for the FAQ page and FAQs attached in the product detail views.

EXT:glossaries for the glossaries and definitions.

EXT:fluid_fpdf for generating invoices, delivery-notes, product-sheets and more.

EXT:parsedown_extra for rendering the extension documentations from markdown to HTML.

* There are only build-in settings made using site-settings & TypoScript – no templates or other files were changed or overridden!