new attributes customization

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!
crazyforester
Posts: 60
Joined: 18 Jan 2016, 10:29

new attributes customization

Post by crazyforester » 05 May 2019, 19:46

Hi,
I would like to create new attribute type and respectively an attribute from this type, that uses textarea not text field. Now I see an option only with text field.
Is it possible to set it ?
Also, I have other new attribute type and two attributes from this type. Everything is fine and they are viewed by select field. Problem is the text of the first option of select (where value is empty) , it is written "nothing" .
Is it possible to change it anywhere?
Thanks

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

Re: new attributes customization

Post by aimeos » 06 May 2019, 07:55

crazyforester wrote: I would like to create new attribute type and respectively an attribute from this type, that uses textarea not text field. Now I see an option only with text field.
You can either change "input" to "textarea" or add a new type "text" in that template:
https://github.com/aimeos/ai-client-htm ... d.php#L202
crazyforester wrote: Also, I have other new attribute type and two attributes from this type. Everything is fine and they are viewed by select field. Problem is the text of the first option of select (where value is empty) , it is written "nothing" .
Is it possible to change it anywhere?
This is a text in the "client" translation domain named "Please select" in English:
https://www.transifex.com/aimeos/aimeos-core/
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

crazyforester
Posts: 60
Joined: 18 Jan 2016, 10:29

Re: new attributes customization

Post by crazyforester » 08 May 2019, 10:29

aimeos wrote:
crazyforester wrote: Also, I have other new attribute type and two attributes from this type. Everything is fine and they are viewed by select field. Problem is the text of the first option of select (where value is empty) , it is written "nothing" .
Is it possible to change it anywhere?
This is a text in the "client" translation domain named "Please select" in English:
https://www.transifex.com/aimeos/aimeos-core/
I noticed something very interesting.
Standard Product from demo "Demo selection article" then Variants and Variant attributes Demo width selection is with text of the first option "Please select" and it is normal.
Now I add to the standard product from demo "Demo article" then Options attributes (no Variants there) then Configurable the standard Width 32 and Width 33 and the first option of select (where value is empty) and it is written "nothing" not "Please select".
Is it possible to be done in this way or it is possible only with product like "Demo selection article"
btw the translation below didn't change it
plugin.tx_aimeos.settings.i18n.bg.0
{
domain = client
string = Please select
trans = Please select in bg
}

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

Re: new attributes customization

Post by aimeos » 08 May 2019, 16:08

Configurable attribute are optional by default. Thus, instead of "Please select" the term shown by default is "none":
https://github.com/aimeos/ai-client-htm ... d.php#L150

You can pre-select the first value if you use this configuration:
https://aimeos.org/docs/Configuration/C ... /preselect
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply