Display availabiliry of core commerce / ecommerce

Permalink
Hey there,

I've been searching the forums but haven't found anything about it, but I am pretty sure I've read about this one...

I am currently building a site which includes ecommerce (core commerce) and the client has a specific request:

He would like to have the possibility to display the availability of products with a "traffic light system".

i.E., if quantity of products is >50 submitbutton is green, if quantitiy is <10, submit button should be orange, if products <2, red...etc.

As this is a very usual function, I hope that someone has done it already :)

Thank you!