Author Topic: how to move "Recently Viewed Products" AFTER "Product" in category view  (Read 470 times)

fc338339

  • Beginner
  • *
  • Posts: 5
  • A beginner
  • Skype Name: fionchan1000
As subject

when click from category layout to product list , how can I switch the order

FROM
  Category Title
  Recently Viewed Products
  Product

TO
  Category Title
  Product
  Recently Viewed Products


Thanks
Fion

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27105
  • Always on vacation
    • Jenkin Hill Internet
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 VM 3.4.3.9989 on Joomla 3.9.1 PHP 7.0.32
Testing VM 3.4.3.9993 on Joomla 3.9.1

fc338339

  • Beginner
  • *
  • Posts: 5
  • A beginner
  • Skype Name: fionchan1000
Dear Sirs,

I have two websites, so I guess adding badge method are different too

1. website P : joomla 3.8.6 + virtuemart 3.2.14
2. website A : joomla 3.6.5 + virtuemart 3.0.14  (I have make many changes on core files that I cannot upgrade neither joomla nor virtuemart)

Thanks for your help

Fion

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 3531
  • Joomla & Virtuemart addon developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3.0.x.y
The problem is that now Virtuemart dont let the choice to ivert it in template or use another layout.
All the types are in a big array in this order:
featured discontinued latest topten recent products
If you want to change it, you have to do an override in your template.
If you use
$this->products = array_reverse($this->products);
You have the main products first in this order
products recent topten latest discontinued featured
products is the main list