Sorting products by 'Position'
Hi all
On the customer side, I want to be able to sort my products in each category according to their 'position' field just as I do in my 4.x store, but that particular sort option doesn't exist.
I can see that there is a developer doc which explains how to add a sort option (their example is 'arrivalDate'), and I'm happy to follow that doc having used a couple of others with some success, but instead of 'p.arrivalDate' what should I be using?
Would 'p.pos' be too easy?
On a similar note, how do I find out what the structure of the product data model/entity is so that in future I can just refer to that? Or any model, in fact?
Many thanks
Welly
|