product attributes list order not working

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
User avatar
whatdaro
Posts: 42
Joined: 19 May 2021, 17:48

product attributes list order not working

Post by whatdaro » 17 Aug 2022, 12:15

Laravel: 9.13.0
Aimeos: 2022.04
PHP: 8.1.6
DB: MariaDB 15.1

Hello,
I've added multiple attributes to products.
When adding these products to a "selection" product the attribute selection order is not matching to the order of the attribute's number assigned.
Could you please let me know where else is this controlled from, thanks.

User avatar
VirtualSpy
Advanced
Posts: 122
Joined: 05 Jul 2022, 07:55

Re: product attributes list order not working

Post by VirtualSpy » 17 Aug 2022, 18:12

did you assign number from 0 ?....if no you should start from 0.

User avatar
whatdaro
Posts: 42
Joined: 19 May 2021, 17:48

Re: product attributes list order not working

Post by whatdaro » 17 Aug 2022, 23:16

yes, numbering starts from 0

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

Re: product attributes list order not working

Post by aimeos » 18 Aug 2022, 10:35

Attributes should be sorted by position and name:
https://github.com/aimeos/ai-client-htm ... p#L99-L109

Please check in that template why it doesn't work for you.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply