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

thanks for sharing this it's so cool, thanks a lot :)

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

Obviously i will send you if i was changing anything or upgradation. Thanks Best Regards Md. Arafat Hasan On Behalf of ICN Tech Bangladesh

In reply to by Osei Amoako (not verified)

Wanna get full package. Can I?

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

I am interested your pos so can you send me your full source code

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

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

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

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)

In reply to by Arahdaniels (not verified)

I changed it and it says "Username/Password missing" when logging in.

thanks u very much sir!! u really help me out my project and failing grade!

Is very good system pos, thank you

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

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

I need a code of this POS. It's my project this finals. Please help me. Thank you!

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

This page isn’t working localhost is currently unable to handle this request. HTTP ERROR 500 when i click login

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

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

In reply to by Altaf Hussain (not verified)

Same problem with mine. Can you help us Admin? Thank you

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;

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.

Hi pos printer is not printing proper invoice Please tell settings

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

The receipt cannot print via POS printer it scramble to much data can we rearrange it

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

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: [email protected] Tq.

please apart from Admin and the cashier , how about the attendant ? was an allocation made for the shop attendant who is to use app?

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

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

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

Hello Sir, much interested in the full package of your POS system, please can i get the full source code package? Email me on [email protected]. Thank you so much

Hello Sir, much interested in the full package of your POS system, please can i get the full source code package? Email me on [email protected]. Thank you so much

there is no save button when adding costumer help me fix please for my school project purposes only thanks

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

Add new comment