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

display products in stock

Started by MKI-Miro, August 20, 2017, 11:28:49 AM

Previous topic - Next topic

MKI-Miro

Hi

Is it possible to display all products that are currently in stock?

I expected it in Virtuemart Products Module but it is not there.

Thanks

Edit: it should not hard to add someting like this to com_virtuemart/models/product.php in sortSearchListQuery function

case 'featured':
$where[] = 'p.`product_special`="1" ';
$orderBy = 'ORDER BY RAND()';
break;
case 'instck':
$where[] = 'p.`product_in_stock`="1" ';
$orderBy = 'ORDER BY RAND()';
break;


hmm ? :)

MKI-Miro

is there any chance that it will be included in next version?