VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: man.of.earth on March 23, 2019, 23:26:27 PM

Title: How to change stock level intervals?
Post by: man.of.earth on March 23, 2019, 23:26:27 PM
Hello everyone,

Does anyone know how to change the intervals for the colors of stock levels? (those red, green etc.), i.e. between 1-10 - red, between 300-1000 - green
Title: Re: How to change stock level intervals?
Post by: jenkinhill on March 24, 2019, 12:17:33 PM
Is this in a commercial template? If so see http://forum.virtuemart.net/index.php?topic=108212.0
Title: Re: How to change stock level intervals?
Post by: man.of.earth on March 26, 2019, 21:12:18 PM
No. It's the default VM one.
I simply look to find out where the intervals for low/medium and sufficient stock are defined.
Title: Re: How to change stock level intervals?
Post by: Jörgen on March 26, 2019, 21:34:48 PM
I do not use this but I guess :

Stock  <= 0  = RED
Stock  <= Low Stock Notification  = ORANGE
Stock > Low Stock Notification = GREEN

Try it for Yourself, takes about 5 minutes to test.

Jörgen @ Kreativ Fotografi
Title: Re: How to change stock level intervals?
Post by: man.of.earth on April 12, 2019, 18:40:11 PM
Thanks Jörgen, it worked.
It displays orange if the (stock minus reserved) <= low stock number.