News:

Support the VirtueMart project and become a member

Main Menu

Stock level indication on category page

Started by tonis, October 07, 2012, 23:32:40 PM

Previous topic - Next topic

tonis

Hello

There is a little bug on stock level indication. When the stock level goes under 0 products on stock, it indicates low stock level, not out off stock.

Very simple solution....

administrator/components/com_vituemart/models/product.php (line 1835 for VM2.0.12, public function getStockIndicator)

change line
if ($stock_level == 0) {
to
if ($stock_level <= 0) {

alatak