Author Topic: product sort by "in stock"  (Read 128 times)

aminweb

  • Beginner
  • *
  • Posts: 7
  • A beginner
product sort by "in stock"
« on: October 12, 2017, 08:52:39 am »
hi,
how do sort products in virtuemart by "in stock"&"date create"???
I want the products that are "not stock" at the end of the product list.
And also products are arranged by date.
please help me

Studio 42

  • Contributing Developer
  • Full Member
  • *
  • Posts: 2265
  • Joomla & Virtuemart addon developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3.0.x.y
Re: product sort by "in stock"
« Reply #1 on: October 12, 2017, 11:36:26 am »
In the Virtuemart config, you can set the sort by, but only one.
But "date create" is similar to sort by primary ID, so it should sort as you need using sort by "in stock"

aminweb

  • Beginner
  • *
  • Posts: 7
  • A beginner
Re: product sort by "in stock"
« Reply #2 on: October 12, 2017, 11:47:17 am »
thanks.
but when set  sort by "in stock" show product not stock in first listing product!!!!!!!!!!(ASC/DESC)
please help

Studio 42

  • Contributing Developer
  • Full Member
  • *
  • Posts: 2265
  • Joomla & Virtuemart addon developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3.0.x.y
Re: product sort by "in stock"
« Reply #3 on: October 12, 2017, 13:25:24 pm »
HAve you change ordering to "descending" in the config?