ws_bank_manage.htm, supplemented by tags that are also available on the order overview ws_place_order.htm.
The tags with the prefix BANK- fall into five groups:
- Data fields such as account holder, IBAN or bank code, each with a family of suffixes for input field, label and error.
- Saved bank details, i.e. loop, selection list and whether multiple accounts are allowed.
- Navigation and actions, i.e. the links for creating, editing and deleting.
- Page states, which determine which part of the template is currently shown.
- SEPA, i.e. mandate type, mandate number and the masked IBAN for the mandate PDF.
The framework of the management page
Depending on its state, the template shows either the overview of saved accounts or the input form. These two states are mutually exclusive.Use
BANK-Mode_Manage and BANK-Mode_Order to distinguish whether the page was called from the customer account or from the checkout process. You need this distinction mainly for the buttons at the end of the form: in the checkout process the buyer continues to the order afterwards, in the customer account they return to the overview.The data fields
Eight fields make up a set of bank details. Each follows the same pattern: the tag name without a suffix returns the value, and the suffixes return everything else a complete input field needs.The suffixes
None of these tags is a loop tag. They are permitted on
ws_bank_manage.htm and ws_place_order.htm.
Which combinations exist
Not every field has every suffix. The following overview shows which combinations are documented.
The IBAN additionally has the suffix
_fillin; see the section on SEPA.
A complete input field
As a single tag,
_error outputs the string _error and nothing else. This means it can be appended directly to a class name: in case of an error, class="eingabe~BANK-Owner_error~" becomes class="eingabe_error".The negative area of
_error and _errortext applies in two cases: when the form is first called, i.e. before it is submitted, and after a successful validation. It is therefore suitable for a success message, but not as a statement that “this field has been validated and is fine”.The selection lists
BANK-Country_list generates a selection list with the countries of the bank.
BANK-Bank_list behaves differently depending on the available data:
Saved bank details
BANK-Data
As a single tag, the number of saved bank details; as an area tag, the bracket around the list; as a loop, one iteration per set of bank details. It is the only tag in this group that is permitted in all templates.BANK-Position
Outputs the sequential number within the loop.BANK-BankSelection
The area is displayed when saved bank data is available for selection. Within this bracket you build the selection list from the loop overBANK-Data.
BANK-AccountSelected
The area is displayed when the buyer has selected saved bank details. The negative area applies if none was selected or none is available.BANK-MultipleDataInput and BANK-SingleDataInput
These two tags distinguish whether the buyer can save multiple sets of bank details or only enters a single one.The difference depends on the customer account: only logged-in users can save multiple sets of bank details. A guest buyer enters their data once, so
BANK-SingleDataInput applies to them.BANK-MultipleDataInputSelection
The selection list of saved bank details on the order overview.BANK-SavedIndex
Outputs the index of the bank details that were saved or updated with the last action. The area only applies if something was actually saved.The tag is mainly used in the subscription module to redirect back to the product detail view after bank details have been created, passing along the new bank details.
BANK-ExternalID
Outputs the external identifier of the bank details, i.e. the identifier from a connected third-party system.Navigation and actions
BANK-NewBankLink
Returns the link for creating new bank details. As an area tag, it only applies if new bank details may be created.BANK-EditLink
Returns the link for editing the bank details. As an area tag, it only applies if they may be edited.Both links belong inside their bracket. The shop decides whether editing or creating is allowed, and a link to a forbidden action leads nowhere.
BANK-OverviewLink and BANK-ToOrderLink
BANK-OverviewLink leads back to the overview of bank details; BANK-ToOrderLink cancels the input and leads back to ws_place_order.htm.
Deleting
There are two ways to delete, with and without a confirmation prompt.The negative areas of the two delete tags are intended for an error message if deletion was not possible. The positive area of
BANK-DeleteBankConfirm, on the other hand, is the success message after deletion. The two tags therefore have a different meaning depending on their form.Page states
These six tags are pure area tags and determine which part of the template currently applies. None of them can be used as a single tag.The two steps separate entering the account data from confirming it. You decide in the template which fields appear in which step. Both areas belong in the same form.
SEPA
BANK-SEPAMode
The area is displayed when SEPA mode is active, i.e. set toon or test. The negative area applies for off.
BANK-SEPADirectMandateType()
Without a parameter, the single tag outputs the type of the mandate. With a parameter, you check for a specific type.The negative area reverses the respective statement.
{!BANK-SEPADirectMandateType(0)} therefore applies when there is a mandate, regardless of its type.BANK-SEPALastDirectMandate
Outputs the most recently used mandate number.BANK-NoSEPABankDataExists
The area is displayed when account data exists for this customer that does not correspond to the SEPA format, i.e. still uses account number and bank code instead of IBAN and BIC.Use this to remind existing customers that they should switch their bank details to IBAN before the old data can no longer be used.
BANK-IBAN_fillin
Outputs the IBAN partially masked, in the formDE123456______123.
- At least five characters are masked.
- Up to twelve characters at the beginning remain in plain text.
- Three characters at the end remain in plain text.
- The length of the entered IBAN is preserved.
Related topics
- Guide: Direct debit
- Guide: Customer account
- Guide: Subscription module
- Reference: CustomerMail section
