hello, i would like to mention a little bug within product ordering at category view:
1. when you order by PRICE DESC
2. and click another category, shop will order by PRICE ASC
i.e. it does remember "order by" field, but it does not remember the direction shop navigation
i would suggest either:
- it should not remember ordering at all for other categories
- or it should remember the direction as well
also as secondary ordering i would suggest to use p.pordering instead of p.virtuemart_product_id
for price ordering it would make sense not to display products which have NULL or 0 price since it is not what customers are looking for when they sort by price.
last product ordering in latest VM is handled with:
$last_ordering = $productModel->getLastProductOrdering();
but it's missing "direction" counterpart.
for my own purposes i fixed this to make it consitant with
$session->set('vmlastproductordering', 0, 'vm');
so it resets ordering to default upon each display of the category view (exception when it's included in the URL)
best regards, stan
Hello Stan,
I wrote about this topic here:
https://forum.virtuemart.net/index.php?topic=139978
It's a little longer, but it fixes the problems I've described.