News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Sublayout products_horizon.php ordering

Started by djold, October 15, 2016, 09:45:54 AM

Previous topic - Next topic

djold

Hi!

I made a sublayout based on products_horizon.php. My only problem that the product ordering is different than what I set on admin panel.

I think around row 21, there is a clue that ordering is set based on last visited items:

$Itemid = shopFunctionsF::getLastVisitedItemId();

How can I change this? (I investigate shopFunctionsF in the VM document, but it has not a function like to get Id other ways.)

Thank You for helping.

jenkinhill

Nothing to dp with getLastVisitedItemId

I suspect you have not set "Default product sort order" to ordering ascending in VM Configuration/Product Order Settings
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

djold

Hi!

I have 'Default product sort order' set to 'Ordering'. In other layouts like category view everything is in order.


djold

It was my fault. Hacked the php and made a mistake.

Topic could be be close or delete.