Online Inventory Management Software with PHP, Open Source

Online Inventory Management Software is an open source project developed by procedural php, MySQL, bootstrap, and jquery. This application is based on web application and develop with procedural php, MySQL database, jquery, datatables plugins, and bootstrap. This application provides the users to manage brands, category, product, orders, and report. This system provides best inventory managemnet software features. This system can be also used for small business. It is free web based inventory management software.

In brands page, the admin can add, update, and remove the brand’s information. In product section, the admin can add the product information and manage the stock. In order section, the application will manage the stock of the product and generates the total amount of payment to be pay by the client. The application can also generate the orders report on based on the month you select.


  • PHP Version +5.4.4
  • Web Server ( Recommended : Apache with PHP and Mysqli )


  • View of a total number of brands, categories, product, and orders.
  • Add, update, and remove brands information.
  • Add, update, and remove categories information.
  • Add, update, and remove product details.
  • Add, update, and remove orders details.
  • Print orders invoice.
  • Update orders payment.
  • Generate the orders report by selecting specific start and end date.
  • Change Password
  • Change Username


  • Admin
    • Username: admin
    • password: password

Change the VAT

To change the vat number, all you have to do is go to the order.js file which is located at [custom/js/order.js] and search for subAmount function. In the line of 555, you will see the VATvariable, change the VAT number that you desired. To change the vat number in the front end of the application, go to orders.php and at the line of 369, you will see the VAT label, change it the number you desire.

Download Online Stock Management System

Please Read:

While creating the database for this system, either you can create the name of the database as a stock or change the name at the php_action/db_connect.php file. As shown below:

$localhost = ""; 
$username = "root"; 
$password = ""; 
$dbname = "stock"; 

// db connection 
$connect = new mysqli($localhost, $username, $password, $dbname);

// check connection 
if($connect->connect_error) {
  die("Connection Failed : " . $connect->connect_error);
} else {
  // echo "Successfully connected";


For Source Code:

159 thoughts on “Online Inventory Management Software with PHP, Open Source

        1. same problem here… you get any idea about this..?pls tell me..
          Is this project is made in codeignitor…?
          i am gettting error of
          localhost:9080 is not avialable….
          how can overcome this error….?

      1. Hey can you help me please instead of “Selecting” all the products in Add Orders and Add Product could you please turn it into a search ? please it’s my only chance to pass in my project 🙁

  1. Hello
    Nice work.
    I would like to change my vat percentage and show my current stock in report.

    Please let me know how I update those things.
    It will be great help for me.


        1. yes i have loged in but i cant see my product list,. brand list and more….i did not see my all database on frontend…
          what shoul i do….?

      1. yes i have loged in but i cant see my product list,. brand list and more….i did not see my all database on frontend…
        what shoul i do….?

  2. On order page there is no changes after changing the quantity. This is still that amount in total field which is product rate.Please help me how i can solve this issue.

    1. same problem sir here. did you fix the vat variable in order.js line 555?
      can you help me to change it into 12%. thanks in advance

  3. Hello,
    Thanks for the great software, i want to upload my server, but could not do that, already imported the database. showing this error..
    Connection Failed : Access denied for user ‘root’@’localhost’ (using password: NO)

    also i have updated the

    header(‘location: http://localhost:9080/stock/index.php‘);

    ex. “” used for example

    Anyone can help me to solve it
    Thanks in advanced…

    1. is it shared hosting you are using?
      have you checked the same thing on localhost if it is working or not?

      Please contact me on my email may be i can help because i have gone through the same issue with other project.

    2. Hi Md. Elias. I also have had the same problem. In my case, the db_connect.php could connect with the database of the server. The parameters were
      $localhost = “”;
      $username = “usernameatserverdb”;
      $password = “passwordatserverdb”;
      $dbname = “dbnameatserver”;

      but when I login, the index.php does not redirect to the dashboard. It just stays at the page where you wirte the username and password (index.php). Did you solve how to call the file dashboard.php?

  4. Hi, I encounter some problem in your project.
    I have set up the database and data using your SQL code. And I have change the connection config.
    And I am able to login using admin password.
    But I can’t get access to the data, there is no data list shown although the data is set up in the database. How to solve it?

  5. I have using my database data to replace yours in the web.
    But i can’t display the data list after set up the all the necessary steps.

    Is the js file will affect the display of data

  6. Hello, May I know why i cannot add new user?
    I tried to insert in phpmyadmin and in the sign in there…
    Please contact me as soon as possible,Thanks

  7. thanks for this wonderful videos and very nice explain and professional tutorial . i wish for you good and great future in php

  8. Hello codersfoder, please make a single video tutorial on using input text field for products instead of select option… We will use the item id to querry the db and echo d product name in another input field…thanks in advance

  9. Thanks brother You have done a great job. Keep it up. V
    Brother how do I add items and quantity of products to report print please. Thanks again

  10. Application Working Fine, But as we need to change Quantity in “Manage Orders” . The Problem is Quantity is not updated correctly in Product Table. Please Give Me Reply.

  11. Hello, I downloaded your application but on the invoice I notice that the quantity does not multiply with the unit price of the product select

  12. hi.. is it possible to add more users ?
    how can i do this? i tried to add one user manually in phpmyadmin but when i try to log in it says incorrect username and password combination

  13. Hello , i like your work and i cover him a little bit,but i have a problem.When i create a new product, it dont appear in the datatable only right loading… on the save button.
    Someone can me explane what is the problem there?

  14. Great work..!!!
    I have added one tab named as channel, everything works fine for channel like adding, removing and viewing data but on click of edit button popup opens with blank data. Can you please help me where is the exact issue?

  15. Hi i need help
    This site can’t be reached

    localhost refused to connect.
    Search Google for localhost 9080 stock dashboard
    this is my error plz help

  16. The add row button in add orders is not working when this is uploaded on any hosting. It would be great if you could suggest me a fix

  17. I go to line 555 order.js and change the vat value but after it saved nothing changed and the value still counted as me plz

  18. how i can add my company name and contact number in order print page??? btw thanks a lot for this… project..

  19. Thanks for sharing the codes!

    Sorry, I’m novice and still learning. Does anyone know how to resolve the following error?

    Notice: Undefined variable: connect in C:\xampp\htdocs\stock\index.php on line 27

    Fatal error: Call to a member function query() on null in C:\xampp\htdocs\stock\index.php on line 27

  20. Hi,

    Thanks for your work !
    I have an issue when I add one column in the product table:
    “DataTables warning: table id=manageProductTable – Requested unknown parameter ‘8’ for row 0. For more information about this error, please see
    How can I solve that please ?

  21. i already change the vat on line 555 in order.js but it seems that its not working i calculate it manually but the answer is not correct.

  22. // vat
    var vat = (Number($(“#subTotal”).val())/100) * 7;
    vat = vat.toFixed(2);

    // total amount
    var totalAmount = (Number($(“#subTotal”).val()) + Number($(“#vat”).val()));
    totalAmount = totalAmount.toFixed(2);

    it show 13%

  23. dear sir, how can i remove a complete VAT because the products and orders are not same tax value, so i want to remove how i can i do please help me.
    thank u

  24. Hey i am unable to login
    Notice: Trying to get property of non-object in C:\xampp\htdocs\stock\index.php on line 29

    i have created a database named stock and also user root-> no password
    user admin -> password: password
    While signing in it says username doesnt exist

  25. localhost refused to connect.
    Search Google for localhost 9080 stock dashboard

    how to get rid of this error, i change my header, but still doesn’t work, thanks in advance

  26. Hi, great project!

    But there is a mistake when you put the goods on delivery and you cancel the bulletin … the state of the goods will not return to the original value of the warehouse (before the issue) … can you please call me with the solution?

    Thank you so much

  27. hi !
    thanks for the tutorials; i’ve been following them and coding after you since part 1. would you please upload or send me the remaining videos? the report file, setting and bashboard still empty

  28. I try to add another row inside sql example ‘weight’. All record include weight appear but the ‘status’ column change red means not available. I’m confuse about the code [7] < [1] or similar in fetchOrder.php. What is that means?

  29. Hi, thank you for sharing this project. I have installed and at the dashboard page I am receiving this message:

    Warning: A non-numeric value encountered in C:\xampp\htdocs\stock\dashboard.php on line 15

    Line 15 says:
    $totalRevenue += $orderResult[‘paid’];

    Anny suggestions to solve it?

  30. Bro awesome work but when clicking on up button in quantity field, quantity increase but price remains same and not changing….But While entering manually using keyboard, code is working fine increment in quantity in price is observed bro

  31. Hi Sir,
    Thanks for this great project, but i have problem on this project. the problem is:
    datatables warning: table id={id} – ajax error

    DataTables warning:table id=manageBrandTable – ajax error. For more information about this error, please see

    I hope you can help me Sir.
    Thank You

  32. Hi,
    Thanks for this great project. its work fine on my localhost but when i upload it on server its not work.
    when i click on login button its give 500 internal server error and not redirect to dashboard.
    So please anybody can help me on this.

  33. why is it that i cant login even when i changed the username and password at the database ? it still says Incorrect username/password combination.

  34. *continuation from above*
    and even before i used the ‘5f4dcc3b5aa765d61d8327deb882cf99’ password. it didn’t still work. cant login.
    Please answer fast and explicit i really need this for my project. thanks

  35. I have problem in order.js.
    i change the vat variable into 12% but nothing happen. can you help me fix this please?
    and btw. thank you.

  36. How can i mark some fields as not required, so that the form can submit successfully with or without values on those fields.
    1. i like to create a product even when the product picture is not available
    2. I like to create an order with or without adding the clients info.
    Thank you

    1. I want to use this stock management system offline to manage my computer and phone accessories store. I have set it up in my wampserver localhost and it all working fine. But 1. I don’t need to add photo when i am Adding New Product and 2. when i am Adding New Order, there are certain fields that need not be required. Please Help…Thank you

    2. For this requirment, you have to go the controller folder and select the product.php class and remove the required field from the code.

      Thank you.

      1. Please you will have to further breakdown the steps to do this, i can only find four folder in the zip folder; assets, custom, includes and php_actions folders. Where can i find the controller folder? and how do i remove the required field from the code? Please breakdown the steps to achieve this.
        Thank you.

        1. This is procedural php, and MVC has not been implemented. To update the requirements, you have to update the code.

          Thank you.

          1. I have removed the code bellow to from the product.js….but if looks like there is more to it. I need to Add a product without the product image.
            if(productImage == “”) {
            $(“#productImage”).closest(‘.center-block’).after(‘Product Image field is required’);
            } else {
            // remov error text field
            // success out for form
            } // /else

  37. Hi sir. there, theres a warning on the dashboard page that says , Warning: A non-numeric value encountered in C:\xampp\htdocs\stock\dashboard.php on line 15. how can I fix this?

  38. hi sir, i’ve used it. but when i try to add new data in the table database and i edit the name of data in js.. its not saved as i want, i run the js and i found the code is still the same while i’ve already saved in my notepad++.. did anything u can do to solved my problem?

  39. Thank you so much sir!you’re my hero! you saved my life and my thesis, I’ve been working for a month now on my own system but with busy schedule and commitments I can’t pay attention a lot. Anyway sir, I only have one request if it’s ok since, One of the requirements of our final output is to that one index into several pages like for example in a brand (index.php?mod=brand) and in a product (index.php?mod=product?sub=addproduct) something like that, I tried to work it on my own but it always inherits the dashboard when clicking the brand, categories and etc.
    I tried working like this in a multiple pages with one index….



    while calling them in:

    Please email me 🙂 I will wait.

  40. I have setup my database, everything works fine but i can’t login
    in my database i see that the username is adminknst but the password is impossible to find. Does anybody knows the password?

  41. add row button is work on locally but its not work on server , stuck with “Loading..” how to fix that problem plz help…….

  42. does anyone changed or disabled the vat value? I changed the vat variable but nothing changes.It’s always calculating 13% of vat. Can anyone help me to fix it? really big help.

  43. thanks for the project ….
    but i cannot login….. help me to work with you project please…

Leave a Reply

Your email address will not be published. Required fields are marked *