Color stock status

**** This is a free contribution. You can check and my other contributions here:
http://www.opencart.com/index.php?route=extension/extension&filter_username=pgge3 ****

This contribution will make anything that it's stock quantity is above 0 (zero) to be displayed on Green font. If this statement is not met color will be changed to red.

NEW 11/12/2012!! If quantity is less than 5 then the font will be turned to orange (limited stock).

Out of stock: http://www.sparemyparts.com/1/index.php?route=product/product&product_id=49
In stock: http://www.sparemyparts.com/1/index.php?route=product/product&product_id=41
Limited stock: http://www.sparemyparts.com/1/index.php?route=product/product&filter_name=MacBook%20Air&product_id=44

*** DUE TO A PROBLEM WITH THE HOSTING SERVICE THIS DEMO MAY NOT BE ACCESSIBLE FOR A FEW HOURS ***

This contribution has been tested on Opencart 1.5.3.1. It changes two files:
catalog/view/theme/default/template/product/product.tpl and
catalog/controller/product/product.php


UPDATE: VQmod version has been released. Tested on 1.5.1.x , 1.5.2.x and 1.5.3.x and running with no problems.
Just extract this one file to vqmod/xml


**** This is a free contribution. You can check and my other contributions here: http://www.opencart.com/index.php?route=extension/extension&filter_username=pgge3 ****


Update: This famous extension is now compatible with 1.5.4.x, 1.5.5.x and 1.5.6.x Download the file and extract it on vqmod/xml by replacing the existing one. Then erase your cache and you are ready!

NEW!!!! 13-08-2013: Now you can easily change the color of the Stock statuses from backend without any limitation. Just download the package and upload it to the root of your installation. Activate the module from Extension -> Modules (module is named Color Stock Status).

Now you can enter in HEX code your desired colors for available stock, limited stock and non available stock.
You can also change the quantity that will be considered as limited stock!!!

Please note: In the XML folder there are 2 files. One with name color_status-151-154.xml and the other color_status-1551-1560.xml . Please disable the one of them and leave only this for your OpenCart version.
So if you have OpenCart 1.5.1.3 use the color_status-151-154.xml . if you have OpenCart 1.5.5.1 use color_status-1551-1560.xml etc.

If you would like to have also icons in your stock statuses instead of colors please visit my commercial module Color Stock Status Pro here:
http://www.opencart.com/index.php?route=extension/extension/info&extension_id=13377

Demo for Color Stock Status Pro:

Demo:

Frontend: http://www.sparemyparts.com/stock/
Backend: http://www.sparemyparts.com/stock/admin (username: demo password: demo )

-------


NEW!!! Available now and for OpenCart 2.0.

Demo: http://sparemyparts.com/ocart2/
Admin: http://sparemyparts.com/ocart2/admin (username: demo , password: demo123)




Download
  • Developed by OpenCart Community
  • Documentation Included

Rating

Compatibility
1.5.4, 1.5.4.1, 1.5.5.1, 1.5.6, 1.5.6.1, 1.5.6.2, 1.5.6.3, 1.5.6.4, 1.5.4, 1.5.4.1, 1.5.5.1, 1.5.6, 1.5.6.1, 1.5.6.2, 1.5.6.3, 1.5.6.4, 1.5.4, 1.5.4.1, 1.5.5.1, 1.5.6, 1.5.6.1, 1.5.6.2, 1.5.6.3, 1.5.6.4, 1.5.4, 1.5.4.1, 1.5.5.1, 1.5.6, 1.5.6.1, 1.5.6.2, 1.5.6.3, 1.5.6.4, 2.0.0.0

Last Update
10 Jun 2016

Created
6 Jun 2012
671 Downloads
105 Comments
pgge3
pgge3
Member since: 16 Aug 2010

View all extensions Get Support