Sorting by attribute type
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 by attribute type
Hey there,
how can I sort a list of products by a specific attribute? E.g. sort list by countries which is a attribute of type country on every product?
I see name, relevace and price.
Can I extend this?
Greetings
[pb]
how can I sort a list of products by a specific attribute? E.g. sort list by countries which is a attribute of type country on every product?
I see name, relevace and price.
Can I extend this?
Greetings
[pb]
Re: Sorting by attribute type
You have to overwrite this with own implementations:
- https://github.com/aimeos/ai-client-htm ... efault.php
- https://github.com/aimeos/ai-controller ... d.php#L108
- https://github.com/aimeos/aimeos-core/b ... rd.php#L34
Add a "sort:index.attribute.code" for sorting in the index manager. You can also create a PR for the changes directly in the core because we would be glad to add this to Aimeos
- https://github.com/aimeos/ai-client-htm ... efault.php
- https://github.com/aimeos/ai-controller ... d.php#L108
- https://github.com/aimeos/aimeos-core/b ... rd.php#L34
Add a "sort:index.attribute.code" for sorting in the index manager. You can also create a PR for the changes directly in the core because we would be glad to add this to Aimeos
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