Vote up!
Vote down!

Ordring/ Sorting Product Displays on Category Page with Views

Hi there,

I have created product displays which are now showing on the relevant category pages (product-category/%). The product category page is created in views which is great but I want to have full control over the order of which the products are displayed (top to bottom).

At the moment in 'Sort Criteria' of views I only have options to sort by Title, ID, Date posted and Category which is not useful. I want to sort by something like SKU or some other field of the product.

The Views category has come from Commerce Kickstart 2 and grabs 'content' thus showing only 'Indexed Node' stuff for sort criteria.

Any ideas?

Asked by: Egan7
on August 20, 2013

2 Answers

Vote up!
Vote down!

I managed to re-do the whole view from scratch but this time I selected 'Commerce Product' where as the view I was using had selected 'Content'. As a result I was referencing a 'compressed content but all products in their entirety.

Next I put a Relationship to the rendered product which enabled me to have the Contextual Filter to the product category. this recreated the Product Category page - now I can do lots more with my page such as sorting by any field that I desire.

Answer by: Egan7
Posted: Aug 22, 2013
Vote up!
Vote down!


Check this by adding a relationship in advanced tab.If you add relationship 'referecned produc't then you you could see more fields in sorting

Answer by: ajaichandran
Posted: Aug 21, 2013