Atribute code is shown instead of label / translation
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!
Atribute code is shown instead of label / translation
Environment:
VPS: Ampere® Altra® processor, 8 Core, 16MB RAM, KVM
# uname -a
Linux myvps 6.1.0-26-arm64 #1 SMP Debian 6.1.112-1 (2024-09-30) aarch64 GNU/Linux
# apache2 -v
Server version: Apache/2.4.62 (Debian)
# cat /etc/debian_version
12.8
ISPConfig3 version: 3.2.12p1
open_basedir = none
TYPO3 Version 13.4.1
Webserver Apache
PHP Version 8.2.26
Database (Default) MySQL 10.11.6-MariaDB-0+deb12u1
Application Context Production
Composer mode Enabled
Operating System Linux 6.1.0-26-arm64
Bootstrap Package 15.0.0
Aimeos shop and e-commerce framework 24.10.2
Other extensions: media2click 3.5.0, news 12.1.0, video_shariff 4.0.0
Problem: In the frontend the Attribute code is shown, instead of the label or translation.
VPS: Ampere® Altra® processor, 8 Core, 16MB RAM, KVM
# uname -a
Linux myvps 6.1.0-26-arm64 #1 SMP Debian 6.1.112-1 (2024-09-30) aarch64 GNU/Linux
# apache2 -v
Server version: Apache/2.4.62 (Debian)
# cat /etc/debian_version
12.8
ISPConfig3 version: 3.2.12p1
open_basedir = none
TYPO3 Version 13.4.1
Webserver Apache
PHP Version 8.2.26
Database (Default) MySQL 10.11.6-MariaDB-0+deb12u1
Application Context Production
Composer mode Enabled
Operating System Linux 6.1.0-26-arm64
Bootstrap Package 15.0.0
Aimeos shop and e-commerce framework 24.10.2
Other extensions: media2click 3.5.0, news 12.1.0, video_shariff 4.0.0
Problem: In the frontend the Attribute code is shown, instead of the label or translation.
- Attachments
-
- Screenshot Setup Backend
- Attributes-setup.png (25.67 KiB) Viewed 15208 times
-
- Screenshot Frontend
- attribute-label.png (9.71 KiB) Viewed 15208 times
Not new to TYPO3 (legacy) - but new to Aimeos & Composer.
Debian 12.8, ISPConfig 3.2.12p, TYPO3 13.4.2, PHP 8.2.26, MariaDB 10.11.6
Aimeos: 24.10.3, Bootstrap 15.0.0
VPS: Ampere® Altra® processors: 8 Core, 16MB RAM, KVM, Linux: 6.1.0-26-arm64
Debian 12.8, ISPConfig 3.2.12p, TYPO3 13.4.2, PHP 8.2.26, MariaDB 10.11.6
Aimeos: 24.10.3, Bootstrap 15.0.0
VPS: Ampere® Altra® processors: 8 Core, 16MB RAM, KVM, Linux: 6.1.0-26-arm64
Re: Atribute code is shown instead of label / translation
Unfortunately, we can't reproduce the issue. Can you please check these lines what happens there?
- https://github.com/aimeos/ai-client-htm ... te.php#L95
- https://github.com/aimeos/ai-client-htm ... e.php#L199
- https://github.com/aimeos/ai-client-htm ... n.php#L116
This should return the translation for the attribute type if the languages match (or the label if there's no translation) but not the attribute type code:
The attribute type code is only returned if there's not attribute type available (for whatever reason)
- https://github.com/aimeos/ai-client-htm ... te.php#L95
- https://github.com/aimeos/ai-client-htm ... e.php#L199
- https://github.com/aimeos/ai-client-htm ... n.php#L116
This should return the translation for the attribute type if the languages match (or the label if there's no translation) but not the attribute type code:
Code: Select all
$attrTypes[$code]->getName()
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: Atribute code is shown instead of label / translation
I would if I know how (to do). (Unfortunately I am not a php developer.)
However what I see in the developer console gives some hints...
Gives the following results: No label associated to a form field.
A <label> isn't associated with a form field.
To fix this issue, nest the <input> in the <label> or provide a for attribute on the <label> that matches a form field id.
However what I see in the developer console gives some hints...
Code: Select all
<li class="select-item input-config-current select">
<label class="select-name">input-config-current</label>
A <label> isn't associated with a form field.
To fix this issue, nest the <input> in the <label> or provide a for attribute on the <label> that matches a form field id.
Not new to TYPO3 (legacy) - but new to Aimeos & Composer.
Debian 12.8, ISPConfig 3.2.12p, TYPO3 13.4.2, PHP 8.2.26, MariaDB 10.11.6
Aimeos: 24.10.3, Bootstrap 15.0.0
VPS: Ampere® Altra® processors: 8 Core, 16MB RAM, KVM, Linux: 6.1.0-26-arm64
Debian 12.8, ISPConfig 3.2.12p, TYPO3 13.4.2, PHP 8.2.26, MariaDB 10.11.6
Aimeos: 24.10.3, Bootstrap 15.0.0
VPS: Ampere® Altra® processors: 8 Core, 16MB RAM, KVM, Linux: 6.1.0-26-arm64