Page 1 of 1

Sorting by attribute type

Posted: 07 Jul 2016, 14:18
by velo
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]

Re: Sorting by attribute type

Posted: 07 Jul 2016, 22:13
by aimeos
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 :-)