News:

Support the VirtueMart project and become a member

Main Menu

product ordering in category not consitent

Started by stAn99, December 05, 2018, 16:41:18 PM

Previous topic - Next topic

stAn99

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



----
RuposTel.com
www.rupostel.com
Your customized checkout solution for Virtuemart

Ventsi Genchev

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.
Audio Store:
https://vsystem.bg - Bulgarian language
https://vsystem.bg/en - English