News:

Support the VirtueMart project and become a member

Main Menu

items order when using mod_virtuemart_product?

Started by dmitryseliv, August 15, 2013, 00:37:35 AM

Previous topic - Next topic

dmitryseliv

I'm using mod_virtuemart_product to show featured products.
But there is something odd about it. it shows products in random order each time when you access the page.
Any ideas how to fix that?


Cheers, DS

Maxim Pishnyak

As far as I know there's no sort option in default module.
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

dmitryseliv

it doesn't explain why it shows products randomly.
a bug?
Also I noticed if products belong to the same root category and you selected to show products from subcat it shows products withing the root category and not from subcat.


stive951

#3
 I see that "$categories" is used in order to iterate over all existing categories, but it is not initialised in this file. Do you know where it is initialised? Can you help me to get access to all products here?


640-802   640-802
350-001   350-001
VCP-510   VCP-510
642-813   642-813
"Stive 951"

Jumbo!

Quote from: dmitryseliv on August 15, 2013, 11:20:35 AM
it doesn't explain why it shows products randomly.
a bug?
Also I noticed if products belong to the same root category and you selected to show products from subcat it shows products withing the root category and not from subcat.

This happens when the total number of featured products is greater than the number allowed to be displayed by you in module settings. Example: You have 20 featured products and you have configured the module to display only 10. Then it will randomly pick the 10 products to be displayed out of 20 so that all featured products get displayed over 2 or 3 visits to the page. Hope it is clear now.

dmitryseliv


Maxim Pishnyak

You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart