DirectDebit Configuration is missing
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
DirectDebit Configuration is missing
Hello Aimeos,
I'am about to setup a small installation.
We have added postpay and DirectDebit as payment provider.
Everything is fine except when the user doesn't fill in the details for direct debit.
We get the following messages:
Configuration for "directdebit.accountno" is missing
Configuration for "directdebit.bankcode" is missing
Configuration for "directdebit.bankname" is missing
I asume this should say: "Please enter your account number" etc.
But I can't figure out where to configure these messages.
Aimeos Version: 17.10.1
Typo3: 8.7.16
I'am about to setup a small installation.
We have added postpay and DirectDebit as payment provider.
Everything is fine except when the user doesn't fill in the details for direct debit.
We get the following messages:
Configuration for "directdebit.accountno" is missing
Configuration for "directdebit.bankcode" is missing
Configuration for "directdebit.bankname" is missing
I asume this should say: "Please enter your account number" etc.
But I can't figure out where to configure these messages.
Aimeos Version: 17.10.1
Typo3: 8.7.16
Re: DirectDebit Configuration is missing
That's a bit more complicated than it should be. The error messages are generated here:
https://github.com/aimeos/aimeos-core/b ... e.php#L318
And they are displayed in the template of the checkout process in the HTML client:
https://github.com/aimeos/ai-client-htm ... lt.php#L81
What you can do now is to copy the body-defaultphp template to your own Aimeos extension so you can modify it and change
to
Then, you can translate the complete error message using TypoScript with
More about overwriting translations in TYPO3 is written here: https://aimeos.org/docs/TYPO3/Overwrite_translations
https://github.com/aimeos/aimeos-core/b ... e.php#L318
And they are displayed in the template of the checkout process in the HTML client:
https://github.com/aimeos/ai-client-htm ... lt.php#L81
What you can do now is to copy the body-defaultphp template to your own Aimeos extension so you can modify it and change
Code: Select all
<li class="error-item"><?= $enc->html( $errmsg ); ?></li>
Code: Select all
<li class="error-item"><?= $enc->html( $this->translated( 'error', $errmsg ) ); ?></li>
Code: Select all
plugin.tx_aimeos.settings.i18n.en.0 {
domain = error
string = Configuration for "directdebit.accountno" is missing
trans = Please enter your account number
}
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: DirectDebit Configuration is missing
Thanks for the hints.
I copied the file into my extension but had to alter the line to:
for the domain "error" is not known in 2017.10.
Then you can translate it with TypoScript:
I copied the file into my extension but had to alter the line to:
Code: Select all
<li class="error-item"><?= $enc->html( $this->translate( 'client', $errmsg ) ); ?></li>
Then you can translate it with TypoScript:
Code: Select all
plugin.tx_aimeos.settings.i18n.en.0 {
domain = client
string = Configuration for "directdebit.accountno" is missing
trans = Please enter your account number
}