Skip to main content

Point of Sale System (POS) using PHP with Source Code

Language

The Point of Sale (POS) system is a PHP project that manages the sale transaction of a certain store. The project was developed for a certain store which is for the medical store or Pharmacy. This system stores all the products that the store or pharmacy is selling, then the system user will encode the sale transaction on the sales page when the data saved or submitted the transaction will be stored in the database for reporting purposes.

The features of this Point of Sale System are the following:

  • Add, Edit, and Delete Products
  • The table row will highlight if the product is below the quantity of 10
  • Search products
  • Add, Edit, and Delete Customers
  • Add, Edit, and Delete Suppliers
  • Generate Daily, Monthly, and Yearly Reports
  • Can Print Transaction
  • And More...

How to Run

  1. Download the source code and extract the zip file.
  2. Download or set up any local web server that runs PHP script.
  3. Open the web-server database and create a new database name it "sales".
  4. Import the SQL file located in the Root Path of the source code.
  5. Copy and paste the source code to the location where your local web server accessing your local projects. Example for XAMPP('C:\xampp\htdocs')
  6. Open a web browser and browse the project. E.g [http://localhost/pos]

Admin Access

Username: admin

Password: admin

Installation Demo

Enjoy Coding :)

*Submitted Date: 2015-07-02

*Updated: 2020-12-02 (Tested in PHP version 7.2.33)

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.

Virus note: All files are scanned once-a-day by SourceCodester.com for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:

1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

Comments

Submitted bykereall (not verified)on Sat, 07/04/2015 - 22:41

thanks for sharing this it's so cool, thanks a lot :)
Submitted byOsei Amoako (not verified)on Fri, 07/17/2015 - 01:47

Hello Sir, much interested in the full package of your POS system, please can i get de full source code package? Email me on ; [email protected] Tnx
Submitted byRafaPerson Fri, 11/13/2015 - 08:10

Dear Jeprox your project is amazing, I just cant connect on db my port is :81 how can do for fix it best regards Rafael
Submitted bysivphengon Sun, 06/11/2017 - 16:46

I am interested your pos so can you send me your full source code
Submitted byJay Kee (not verified)on Thu, 01/18/2018 - 10:01

Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:\xampp\htdocs\POS2\login.php:12 Stack trace: #0 {main} thrown in C:\xampp\htdocs\POS2\login.php on line 12
Submitted bysathish ulundurpet (not verified)on Sun, 02/18/2018 - 22:14

In reply to by Jay Kee (not verified)

$link = mysql_connect('localhost','root',''); if(!$link) { die('Failed to connect to server: ' . mysql_error()); } //Select database Check your database $db = mysql_select_db('pos', $link); if(!$db) { die("Unable to select database"); } Please check u r database and connect.php
Submitted byMrz Spyon Wed, 02/21/2018 - 14:17

Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:\xampp\htdocs\POS2\login.php:12 Stack trace: #0 {main} thrown in C:\xampp\htdocs\POS2\login.php on line 12 please help me
Submitted byArahdaniels (not verified)on Wed, 10/17/2018 - 04:02

In reply to by Mrz Spy

Change all mysql_ to mysqli_ and pass parameters where its required then it should work fine. (it does for me)
Submitted byVincent Cunanan (not verified)on Fri, 03/27/2020 - 02:04

In reply to by Arahdaniels (not verified)

I changed it and it says "Username/Password missing" when logging in.
Submitted byslyfox (not verified)on Thu, 03/08/2018 - 00:05

thanks u very much sir!! u really help me out my project and failing grade!
Submitted byBambang (not verified)on Fri, 10/19/2018 - 23:21

Is very good system pos, thank you
Submitted byKhris Usman (not verified)on Sun, 12/16/2018 - 15:09

do you have ver2 for this which the invoice number will not be randomize? it will start from like example 100000 then auto inc pls email: [email protected] thanks
Submitted byErgene Yarcia (not verified)on Mon, 07/01/2019 - 12:02

Hi may I ask for the full source code of this POS system. Im currently enrolled and needed to finished a POS system. Please send it to my email at [email protected] Thanks in advance
Submitted byLightgiver (not verified)on Thu, 02/20/2020 - 20:25

I need a code of this POS. It's my project this finals. Please help me. Thank you!
Submitted byFazal Ahad (not verified)on Thu, 10/15/2020 - 03:43

Hello Sir, much interested in the full package of your POS system, please can i get de full source code package? Email me on [email protected] Thank you so much
Submitted by2687 (not verified)on Mon, 11/16/2020 - 21:27

This page isn’t working localhost is currently unable to handle this request. HTTP ERROR 500 when i click login
Submitted bysene (not verified)on Tue, 12/08/2020 - 01:14

Fatal error: Uncaught Error: Call to undefined function formatMoney() in C:\xampp\htdocs\pos\main\sales.php:257 Stack trace: #0 {main} thrown in C:\xampp\htdocs\pos\main\sales.php on line 257
Submitted byAltaf Hussain (not verified)on Thu, 02/25/2021 - 00:02

sir i have downloaded pos but when i want to login it shows me the following error ....................... Fatal error: Uncaught ArgumentCountError: mktime() expects at least 1 argument, 0 given in C:\xampp\htdocs\pos\main\navfixed.php:15 Stack trace: #0 C:\xampp\htdocs\pos\main\navfixed.php(15): mktime() #1 C:\xampp\htdocs\pos\main\index.php(90): include('C:\\xampp\\htdocs...') #2 {main} thrown in C:\xampp\htdocs\pos\main\navfixed.php on line 15
Submitted byAntigenius 007 (not verified)on Wed, 04/07/2021 - 00:52

Hi pos printer is not printing proper invoice Please tell settings
Submitted bymunga (not verified)on Fri, 06/11/2021 - 11:36

Fatal error: Uncaught ArgumentCountError: mktime() expects at least 1 argument, 0 given in C:\xampp\htdocs\pos\main\navfixed.php:15 Stack trace: #0 C:\xampp\htdocs\pos\main\navfixed.php(15): mktime() #1 C:\xampp\htdocs\pos\main\index.php(90): include('C:\\xampp\\htdocs...') #2 {main} thrown in C:\xampp\htdocs\pos\main\navfixed.php on line 15
Submitted byRuchira (not verified)on Sun, 10/03/2021 - 14:36

The receipt cannot print via POS printer it scramble to much data can we rearrange it
Submitted byTalha Danial (not verified)on Tue, 10/05/2021 - 01:40

Query failed when i entered the Username and Password UserName : admin Password : admin

Add new comment