Laravel POS System - Free and open source

Today I am going to show you a software that I just made with Laravel. It is a sales system, point of sale, POS or whatever you call it, which is used to keep track of the products that are sold, the sales, and so on. It is a totally free and open source system; which means that you can use it at no cost, and modify it to your needs or customize it. Among its features we find: It Uses Laravel in its latest version (as of this writing) Bootstrap is used for styles FontAwesome Icons Fully responsive system, that is, it works on mobiles, tablets and computers Inventory control with sale price, purchase price, profit, stock, etc. Option to make sale, adding products Checking inventory stock when selling Subtraction of stock when selling Printing of sales tickets on thermal printer Sales report User login and registration User management Customer registration Ticket that includes the customer’s name Now let’s see how I have developed it, where you can download it, and so on. ...

March 17, 2021 · 13 min · 2761 words · Parzibyte

Pure PHP Point of sale system with MySQL

A few days ago I did an exercise on a sales system in PHP. It is written in pure PHP, no Javascript. Mind you, for the styles I used a Bootstrap variant. The files don’t have a structure, but like I said, it’s an example. I also write this because it either serves someone else or it serves myself for some references. For data persistence it uses MySQL. This POS Save products and sales. It does not handle user permissions. We store the shopping cart in the session, and well, I better explain it in parts in this post. Obviously this POS software is free and open source. ...

March 17, 2021 · 14 min · 2893 words · Parzibyte

PHP & MySQL tutorial using PDO

Although there are millions of tutorials about MySQL and PHP, I decided to make mine but in a very very simple way. Before you start, you must have a basic knowledge in MySQL. It is worth mentioning that we will not see good practices of databases, relationships, etc. We will use the tables as they are, without looking at normalization, or things like that. Note: this tutorial uses PDO, but remember that we can also use mysqli functions. Personally I recommend PDO, because it is object oriented. However, I hope to write a tutorial about mysqli in the future. ...

October 14, 2019 · 8 min · 1661 words · Parzibyte

Migrate customers table from MijoShop to OpenCart 3

When we migrate customers from MijoShop to OpenCart there is a little problem: the methods to hash passwords are different and thus when our customers try to login the passwords do not match. In this post I will show you how to migrate and fix the problem. ...

June 2, 2019 · 12 min · 2419 words · Parzibyte

Reset OpenCart user password manually (in database)

Today we will see how to reset the OpenCart password (e-commerce system in PHP) manually, directly in the database; generating the hash and the salt manually with a function created by me. Function that generates salt and new password Here I leave the code, and the explanation at the end. <?php function token($length = 32) { // Create random token $string = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'; $max = strlen($string) - 1; $token = ''; for ($i = 0; $i < $length; $i++) { $token .= $string[mt_rand(0, $max)]; } return $token; } function generar_pass($passTextoPlano){ $sal = token(9); $hash = sha1($sal . sha1($sal . sha1($passTextoPlano))); return [ "sal" => $sal, "hash" => $hash, ]; } // Demostrar uso $datosPass = generar_pass("hunter2"); $pass = $datosPass["hash"]; // Este va en el campo password $sal = $datosPass["sal"]; // Este va en el campo salt printf("La sal es %s y la pass es %s", $sal, $pass); The function returns an array that has the salt and the password, the way to call it is to pass the password in plain text. ...

June 2, 2019 · 2 min · 359 words · Parzibyte

How to install OpenCart 3 on Windows and Linux

In this tutorial I will show how to install OpenCart in its version 3 on a server with PHP. You can mount it directly on a server in production, or on your localhost for testing. ...

May 31, 2019 · 6 min · 1091 words · Parzibyte

PHP: Generate cryptographically secure token

Intro Sometimes we need to create a random string or token using PHP. For example, it’s quite common that when we want to reset our password on some website a message is sent to the mail we registered. Probably the message have a link like this: site.com/reset-pass?token=123 Where 123 is the token. Today we will see how to create a token cryptographically secure using PHP. We can use this token as a password or as random string to reset something. This works for PHP 5 and for PHP 7. ...

April 1, 2019 · 2 min · 379 words · Parzibyte