Atribute code is shown instead of label / translation

Questions around the TYPO3 integration and plugins
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!
mzerbe
Posts: 7
Joined: 25 Nov 2024, 06:49

Atribute code is shown instead of label / translation

Post by mzerbe » 25 Nov 2024, 07:13

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.
Attachments
Screenshot Setup Backend
Screenshot Setup Backend
Attributes-setup.png (25.67 KiB) Viewed 15208 times
Screenshot Frontend
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

User avatar
aimeos
Administrator
Posts: 8378
Joined: 01 Jan 1970, 00:00

Re: Atribute code is shown instead of label / translation

Post by aimeos » 27 Nov 2024, 13:12

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:

Code: Select all

$attrTypes[$code]->getName()
The attribute type code is only returned if there's not attribute type available (for whatever reason)
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

mzerbe
Posts: 7
Joined: 25 Nov 2024, 06:49

Re: Atribute code is shown instead of label / translation

Post by mzerbe » 02 Dec 2024, 06:55

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...

Code: Select all

<li class="select-item input-config-current select">
<label class="select-name">input-config-current</label>
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.
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

Post Reply