VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: Kuubs on June 22, 2018, 10:30:34 AM

Title: How to change product order from multiple categories
Post by: Kuubs on June 22, 2018, 10:30:34 AM
I have a page where multiple products are displayed from multiple categories. But the wrong category is displayed first. I checked the ordering, that is now good. I checked the product order settings but it does not take the category order into account. How can I display 1 category before the other? Do I have to change the name?

The product order is correct but it displays the first category first instead of second. The first category has order 2 in the categories list and the second 1, but it stil displays them wrong.
Title: Re: How to change product order from multiple categories
Post by: Studio 42 on June 22, 2018, 12:04:56 PM
I dont think that your case have a solution without a hack
Title: Re: How to change product order from multiple categories
Post by: Kuubs on June 22, 2018, 12:28:51 PM
That seems weird.

How does it decide which one it displays first then?

That seems like something that is kinda mandatory? Product ordering, especially when you have the possibility to display all products in all categires via Top Category. I cannot imagine I'm the first one who asks about this.


Fixed it with PHP code by re-arranging the php array.