Sorting by attribute type

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!
velo
Posts: 44
Joined: 20 Jun 2016, 06:58

Sorting by attribute type

Post by velo » 07 Jul 2016, 14:18

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]

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

Re: Sorting by attribute type

Post by aimeos » 07 Jul 2016, 22:13

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 :-)
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply