News:

Looking for documentation? Take a look on our wiki

Main Menu

How can I automatically sort product by creation date?

Started by Loki, February 10, 2012, 10:32:33 AM

Previous topic - Next topic

Loki

Good morning and thank you in advance,
I want to display by default the products from the latest to the oldest (by creation) in the browse page. I cannot find where to edit in the code.
I searched for daysfor a solution and I only find the method with old virtuemart (this is VM 2.0 - shop.browse does not exist anymore).
Can you kindly help me?
Thanks  :)

Loki

After 2 weeks of frustration, silence and no replies in various forum, I found the solution.
Here's for all who are troubled like I were.

You have to edit the product.php in /administrator/components/com_virtuemart/models , you will find at least 5 occurence with ASC, change to DESC.

Hope this helps, this was an HUGE problem for me, and I thank you for your wonderful help.

AlexF

Hi Loki,
          thanks for posting your findings, I have been trying to find out where to do this for ages!
Any idea if you can do this for specific fields (e.g. width ASC, creation date DESC etc.)

Alex