Author Topic: Ordering products from mod_virtuemart_product displayed list?  (Read 269 times)

Mister Paul

  • Jr. Member
  • **
  • Posts: 268
  • Joomla! 3.9.6 - VirtueMart 3.4.2
Ordering products from mod_virtuemart_product displayed list?
« on: August 28, 2020, 23:51:59 pm »
Hi,

I use mod_virtuemart_product to show category products inside pages and I am quite happy with this module.
I’d just like to be able to manually order the products in the displayed list.

How could I order them, for example, by modified_on or by product_available_date from _virtuemart_products table? That's data where I could intervene to create a custom order...
Another way to manage that?

Thanks for your help.
 ;)
Paul

pinochico

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 723
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: Ordering products from mod_virtuemart_product displayed list?
« Reply #1 on: August 29, 2020, 07:28:40 am »
Quote
How could I order them, for example, by modified_on or by product_available_date from _virtuemart_products table?

Add custom ordering in module xml file
Add your custom function with mysql question in module helper
Call this function in module template

Or search another solution (another module) if exists

www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds from products, orders and database table
Virtuemart Email Manager - customs email templates