Company field not showing in frontend
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!
Company field not showing in frontend
Hi,
I tried to add two additional fields to the address form in checkout.
Telephone is ok, but company is not displayed.
Here's my TypoScript code:
How can I make the company field showing up?
And, how can I change the placeholder for phone? The format is for Germany, but not for Switzerland...
TYPO3: 10.4.11 (Composer)
Aimeos: 20.10.4
PHP: 7.4.13
I tried to add two additional fields to the address form in checkout.
Telephone is ok, but company is not displayed.
Here's my TypoScript code:
Code: Select all
plugin.tx_aimeos.settings.client.html.checkout.standard.address {
billing.mandatory {
0 = order.base.address.salutation
1 = order.base.address.firstname
2 = order.base.address.lastname
3 = order.base.address.address1
4 = order.base.address.postal
5 = order.base.address.city
6 = order.base.address.email
}
delivery.mandatory < .billing.mandatory
}
plugin.tx_aimeos.settings.client.html.checkout.standard.address {
billing.optional {
0 = order.base.address.company
1 = order.base.address.telephone
}
delivery.optional < .billing.optional
}
And, how can I change the placeholder for phone? The format is for Germany, but not for Switzerland...
TYPO3: 10.4.11 (Composer)
Aimeos: 20.10.4
PHP: 7.4.13
Re: Company field not showing in frontend
The company field is only shown if "Company" is selected in the salutation. This is a Javascript thing.
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: Company field not showing in frontend
Ok, thanks, that helps.
But what about the field USt-Id: How can I turn this off? We don't need that.
And, how can I change the placeholder text of the phone field?
But what about the field USt-Id: How can I turn this off? We don't need that.
And, how can I change the placeholder text of the phone field?
Re: Company field not showing in frontend
Placeholder for phone: I managed it on my own by searching for the placeholder string in files. There I found the string "+1 123 456 7890" which can be converted via TypoScript easily.
Because the UST-Id is optional, we keep. It's not necessary to hide it.
Because the UST-Id is optional, we keep. It's not necessary to hide it.
Re: Company field not showing in frontend
To deactivate VAT assign it to the "hidden" option of your TypoScript configuration:
For example:
For example:
Code: Select all
plugin.tx_aimeos.settings {
checkout {
standard.address {
billing {
mandatory {
0 = order.base.address.salutation
[...]
}
hidden {
0 = order.base.address.company
1 = order.base.address.vatid
}