VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: mahout on November 09, 2018, 20:41:08 PM

Title: Category layout sort order is backwards?
Post by: mahout on November 09, 2018, 20:41:08 PM
How can I reverse or change this sort order? Title is on the bottom?!?
I'm using VM 3.4.2

(https://screenshots.firefox.com/ohPF2KE799RfzZEJ/casite-976312.cloudaccess.net)
https://screenshots.firefox.com/ohPF2KE799RfzZEJ/casite-976312.cloudaccess.net

Title: Re: Category layout sort order is backwards?
Post by: StefanSTS on November 09, 2018, 21:21:17 PM
In your template in the folder

/templates/my-template/html/com_virtuemart/category/ you probably have an override for the default.php.

That's where to look for the code to change.

Stefan
Title: Re: Category layout sort order is backwards?
Post by: mahout on November 09, 2018, 21:30:34 PM
Thanks for the tip, but I'm not using a template so those files are not there.
Title: Re: Category layout sort order is backwards?
Post by: StefanSTS on November 09, 2018, 22:25:21 PM
Then you are probably using protostar or vmbeez3.
You have to add the original file from VirtueMart in the folder I said before.

/components/com_virtuemart/views/category/tmpl/default.php

If you copy that into the template folder it will be used instead, it's called an override.
Do not alter the original, it will be overridden when you update VM.

Stefan