Sorting of variant attributes
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!
Sorting of variant attributes
How can variant attributes be sorted individually? I have set the position in the Attribute Types. But this value has no effect.
See attached Screenshot.
TYPO3 9.5.20
Aimeos 20.7.1
PHP 7.2.33
See attached Screenshot.
TYPO3 9.5.20
Aimeos 20.7.1
PHP 7.2.33
- Attachments
-
- attributes.jpg (52.96 KiB) Viewed 1964 times
Re: Sorting of variant attributes
That depends a bit on the environment. If you use TYPO3, the order of the attribute types is determined by the order of the chosen attribute types in the catalog filter flexform. Otherwise, you can set the order by using:
https://aimeos.org/docs/Configuration/C ... bute/types
https://aimeos.org/docs/Configuration/C ... bute/types
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: Sorting of variant attributes
Many thanks for the answer. However, my question refers to the Detail view of a product (in the area where a product variant can be selected), not to the Filter.
Is there also a possibility to define the order in the Detail view?
Is there also a possibility to define the order in the Detail view?
Re: Sorting of variant attributes
At the moment, the variant attribute types are sorted by attribute type code. You can use codes like "01_volume" so they are sorted accoring to your needs.
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: Sorting of variant attributes
Many thanks for the answer.
In this case there is no possibility to adjust the sorting afterwards? If I change the code of the attribute, all links in the products are lost.
Where would the code need to be adjusted?
In this case there is no possibility to adjust the sorting afterwards? If I change the code of the attribute, all links in the products are lost.
Where would the code need to be adjusted?
Re: Sorting of variant attributes
You can adapt the code here:
https://github.com/aimeos/ai-client-htm ... d.php#L594
https://github.com/aimeos/ai-client-htm ... d.php#L594
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