Cosmetics and Beauty Product Online Store in PHP/OOP Free Source Code



This project is entitled Cosmetics and Beauty Product Online Store. This project was written in PHP/OOP and data are stored in a MySQL Database. It is a web-based application that serves as an Online Platform for the Cosmetics and Beauty Products Business. This application provides the customers of the said business industry to explore, browser, and buy their products. This has lots of features and functionalities including Online Payment using PayPal API. This has a pleasant user interface using the Bootstrap Framework and the AdminLTE Template. It has user-friendly features and functionalities.

About the Cosmetics and Beauty Product Online Store

I developed this project using the following:

  • XAMPP v3.3.0 as my local webserver that has a PHP Version 8.0.7
  • PHP Language
  • MySQL Database
  • HTML
  • CSS
  • JavaScript
  • jQuery
  • Ajax
  • Bootstrap
  • AdminLTE

The Cosmetics and Beauty Product Online Store Project has 2 user interfaces. Ones are for the management which is the Admin Panel of the system. This side of the system can be accessed by the management. The Admin is in charge of managing all the important lists or data in the system such as the list of products and orders. The Admin can also manage the stocks of the products according to their variant. The other side is for the client-side. This side is accessible to all but some of the features are visible and working for registered clients only. The possible clients can simply register their account in order to order their desired products. The system can generate a printable date-wise sales report. The online payment feature only supports using PayPal API.




  • Secure Login and Logout
  • Dashboard
    • Display the summary of lists.
  • Brand Management
    • Add New Brand
    • List All Brands
    • View Brand
    • Update Brand
    • Delete Brand
  • Category Management
    • Add New Category
    • List All Categories
    • View Category
    • Update Category
    • Delete Category
  • Product Management
    • Add New Product
    • List All Products
    • Update Product
    • Delete Product
  • Inventory Management
    • Add New Stock
    • List All Stocks
    • Update Stock
    • Delete Stock
  • Order Management
    • List All Order
    • View Order Details
    • Update Order Status
    • Mark Order as Paid
    • Delete Order
  • Sales
    • Printable Date-wise Sales Re
  • Manage User List (CRUD)
  • Manage Account Details/Credentials
  • Manage System Information


  • Secure Login and Registration
  • Read 'About Us' Content
  • Home Page
  • Product List
  • Product List per Categories
  • Filter Product Per Brand
  • Search Product
  • View Product
  • Shopping Cart
  • Place Order
  • List Orders
  • View Order Details
  • Cancel Pending Order
  • Manage Account Details/Credentials
  • Logout

System Snapshots of some Features

Public Home Page
Cosmetics and Beauty Product Online Store
Product View Page
Cosmetics and Beauty Product Online Store
Admin Dashboard
Cosmetics and Beauty Product Online Store
Admin Order Details
Cosmetics and Beauty Product Online Store
Sales Report Page
Cosmetics and Beauty Product Online Store

How to Run ??


  • Download and Install any local web server such as XAMPP/WAMP.
  • Download the provided source code zip file. (download button is located below)


  1. Enable or Uncomment the GD Library on your php.ini file.
  2. Open your XAMPP/WAMP's Control Panel and start Apache and MySQL.
  3. Extract the downloaded source code zip file.
  4. If you are using XAMPP, copy the extracted source code folder and paste it into the XAMPP's "htdocs" directory. And If you are using WAMP, paste it into the "www" directory.
  5. Browse the PHPMyAdmin in a browser. i.e. http://localhost/phpmyadmin
  6. Create a new database naming cbpos_db.
  7. Import the provided SQL file. The file is known as cbpos_db.sql located inside the database folder.
  8. Browse the Cosmetics and Beauty Product Online Store in a browser. i.e. http://localhost/cbpos/ for the client-side and http://localhost/cbpos/admin for the admin-side.

Default Admin Access

Username: admin
Password: admin123


That's it. You can now explore the features and functionalities of this Cosmetics and Beauty Product Online Store in PHP. I hope this project will help you with what you are looking for and you'll find something useful for your future projects.

Explore more on this website for more Free Source Codes and Tutorials.

Enjoy :)

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 for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.


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.


Submitted byahmedz9 (not verified)on Thu, 02/17/2022 - 22:11

You are gorgeous. I like your projects. I wanted to know what is the best way to learn css and website design.♥
Submitted byJwren (not verified)on Fri, 03/04/2022 - 04:13

Heads up for anyone wanting to use this code, it's vulnerable to SQL injection and XSS.
Submitted byalae (not verified)on Mon, 03/07/2022 - 16:50

Submitted byAnonymous (not verified)on Wed, 03/23/2022 - 15:11

Submitted byyuho (not verified)on Fri, 04/01/2022 - 18:51

hi sir thank u for this but how do i change the logo it keeps on loading and nothng happens
Submitted byMor Pyay (not verified)on Wed, 08/10/2022 - 15:18

Create priject
Submitted bySabahat Mehdi (not verified)on Sun, 08/14/2022 - 21:55

I run this project but my update or upload query is not working properly?
Submitted bySabahat Mehdi (not verified)on Tue, 08/16/2022 - 00:24

Love the project. All modules working properly. But whenever I update any picture or change the slider images It doesn't change. guide me how to remove the error?
Submitted byajbv2010 (not verified)on Fri, 08/26/2022 - 02:32

In reply to by Sabahat Mehdi (not verified)

me too.. error

Add new comment

This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
4 + 0 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.