Author Topic: Sublayout products_horizon.php ordering  (Read 1483 times)

djold

  • Beginner
  • *
  • Posts: 8
Sublayout products_horizon.php ordering
« on: October 15, 2016, 09:45:54 am »
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

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 28131
  • Always on vacation
    • Jenkin Hill Internet
Re: Sublayout products_horizon.php ordering
« Reply #1 on: October 15, 2016, 13:22:33 pm »
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

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

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

Currently using VirtueMart 3.8.9.10473 on Joomla 3.9.24 PHP 7.4.14

djold

  • Beginner
  • *
  • Posts: 8
Re: Sublayout products_horizon.php ordering
« Reply #2 on: October 15, 2016, 13:29:13 pm »
Hi!

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

djold

  • Beginner
  • *
  • Posts: 8
Re: Sublayout products_horizon.php ordering
« Reply #3 on: October 19, 2016, 13:46:34 pm »
Anyone?  :)

djold

  • Beginner
  • *
  • Posts: 8
Re: Sublayout products_horizon.php ordering
« Reply #4 on: October 20, 2016, 09:46:15 am »
It was my fault. Hacked the php and made a mistake.

Topic could be be close or delete.