VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: Genius WebDesign on October 06, 2017, 11:36:26 AM

Title: Products ordering in Category view
Post by: Genius WebDesign on October 06, 2017, 11:36:26 AM
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?

 
Title: Re: Products ordering in Category view
Post by: Studio 42 on October 12, 2017, 13:50:23 PM
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)