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 ; oseiamoakoajackson@yahoo.com. Tnx
Submitted byitimium (not verified)on Tue, 08/15/2023 - 13:52

In reply to by Osei Amoako (not verified)

Wonderful POS System. kindly send me full complete code of its latest version at zia24hours@gmail.com Thanks in advance.
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: khrisusman@gmail.com 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 e_yarcia@yahoo.com.. Thanks in advance
Submitted byMd. Aman Ullah (not verified)on Wed, 09/11/2019 - 14:37

Please send me full source code amanbiotrade@gmail.com
Submitted byImmaculate (not verified)on Sun, 12/08/2019 - 00:22

Help me out with the full source code immaculatekimma@gmail.com
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 fazalexpressinfo@gmail.com. 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 byerror in login 222 (not verified)on Wed, 10/26/2022 - 11:05

In reply to by Altaf Hussain (not verified)

Same problem with mine. Can you help us Admin? Thank you
Submitted byanonymous6969 (not verified)on Thu, 06/08/2023 - 10:19

In reply to by error in login 222 (not verified)

delete this at navfixed line 15 and save ------> $Today = date('m:d:y',mktime()); $new = date('l, F d, Y', strtotime($Today)); echo $new;
Submitted byGeoffrey muema (not verified)on Fri, 12/29/2023 - 20:41

In reply to by Altaf Hussain (not verified)

have done the corrections in the same code. the code is now running without displaying any errors.
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
Submitted byJhoan (not verified)on Tue, 04/19/2022 - 10:48

Thank for this source, please help i can't load report my sales data. could you mind to send me complete source code to my email: nipuy96@gmail.com Tq.
Submitted bykobbs (not verified)on Tue, 08/23/2022 - 12:44

please apart from Admin and the cashier , how about the attendant ? was an allocation made for the shop attendant who is to use app?
Submitted byyup (not verified)on Sun, 10/02/2022 - 02:22

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 I got this error help pls
Submitted bySeif (not verified)on Wed, 10/05/2022 - 04:19

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 byHello I Want t… (not verified)on Fri, 10/28/2022 - 11:27

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 byAnonymous (not verified)on Sat, 12/31/2022 - 17:06

Hello Sir, much interested in the full package of your POS system, please can i get the full source code package? Email me on nayhtutye@gmail.com. Thank you so much
Submitted bykarthikexe (not verified)on Sun, 01/08/2023 - 12:37

this project working but product page save button not display.. kindly help.. email: karthikexe123@gmail.com
Submitted bykarthikexe (not verified)on Sun, 01/08/2023 - 13:50

Hello Sir, much interested in the full package of your POS system, please can i get the full source code package? Email me on karthikexe123@gmail.com. Thank you so much
Submitted bymetaworkforce (not verified)on Tue, 06/06/2023 - 03:12

there is no save button when adding costumer help me fix please for my school project purposes only thanks
Submitted byAnonymous (not verified)on Tue, 08/15/2023 - 13:54

Wonderful POS . Kindly send me complete code of its latest version at: zia24hours@gmail.com Thanks in advance
Submitted byvictor sonje safari (not verified)on Tue, 10/03/2023 - 22:22

thanks its a nice projects though unfortunately am getting an error Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 1364 Field 'cost' doesn't have a default value in E:\wamp5\www\pos\main\saveproduct.php on line 18 ( ! ) PDOException: SQLSTATE[HY000]: General error: 1364 Field 'cost' doesn't have a default value in E:\wamp5\www\pos\main\saveproduct.php on line 18 Call Stack # Time Memory Function Location 1 0.0001 367416 {main}( ) ...\saveproduct.php:0 2 0.0016 418176 execute( $bound_input_params = [':a' => 'canfor', ':b' => '4 by 6', ':c' => '2023-10-31', ':d' => '10000', ':e' => '', ':f' => '3', ':g' => '4500', ':h' => '5500', ':i' => 'Bamboo.', ':j' => '2023-10-03', ':k' => '3'] ) ...\saveproduct.php:18
Submitted byMr Clean (not verified)on Thu, 10/19/2023 - 00:00

Hello Sir, much interested in the full package of your POS system, please can i get de full source code package? Email me on ; bsjan3@gmail.com. Tnx

Add new comment