Customize label for Attribute Type

How to configure and adapt Aimeos based shops as developer
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
BrianMecler
Posts: 41
Joined: 03 Jun 2023, 17:30

Customize label for Attribute Type

Post by BrianMecler » 30 Sep 2023, 20:41

Hello,

Laravel Framework 10.13.1, php8.1-fpm, aimeos/aimeos-laravel 2023.04.2

I created a selection product which consists of two articles which of of the type 'Interval'. On the product page, the label 'Interval' is shown above the dropdown list to select the articles. Is there a way to customize the label above the dropdown to show different text?

I tried creating my own type, and see that the front end displays the code and not the label. And I cant use spaces in the code.

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

Re: Customize label for Attribute Type

Post by aimeos » 02 Oct 2023, 12:56

You have to translate the attribute type codes, e.g. in your ./config/shop.php.
See:
- https://aimeos.org/docs/latest/laravel/ ... anslations
- https://github.com/aimeos/ai-client-htm ... te.php#L95

The translation domain is "client/code".
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply