News:

Looking for documentation? Take a look on our wiki

Main Menu

Products ordering in Category view

Started by Genius WebDesign, October 06, 2017, 11:36:26 AM

Previous topic - Next topic

Genius WebDesign

Hi,

On my clients VM shop we need to apply a specific ordering of products in all categories.

My client wants this particular ordering:  ordering ASC, id DESC

So basically we want to order products by ordering 0 to ∞ as primary ordering and then id DESC as secondary ordering.
How can I do this without hacking the core?

 

Studio 42

I think the only solution is to use ordering desc, in this case id desc should be the secondary ordering because it's the primary key.
Core have no secondary choice, if you really need, you have to add it in the core(hacking it or doing a system plugin to override the class)