Carrito de Compras en PHP y MySQL

Shopping Cart in PHP and MySQL

This Shopping Cart System in PHP and MySQL on which I share the code, allows you to manage customer purchase orders in a simple and effective way.

The application calculates the products that are included in the cart, formalizes the order in an order number, which is registered in the database.

Explanatory video (spanish)

Shopping Cart in PHP and MySQL

Setting up the Shopping Cart in PHP and MySQL on a local server

Previous Applications

To install the application on a local server, I recommend the prior installation of the following applications:

XAMPP, Git, Visual Studio Code

XAMPP is the application in charge of implementing a apache server for them to work scripts PHP on a local computer.

Git is the world's most widely used repository manager, with which you can cleanly download code from GitHub.

Visual Studio Code is the world's most popular code editor, which I highly recommend in virtually every post on this blog.

Download GitHub App

The following is the GitHub repository download link for the application that allows you to define the difference between two dates on a local server:

Shopping Cart in PHP and MySQL

Configuration of the Shopping Cart System in PHP and MySQL for its operation on your computer

You must install the mentioned applications, with all the default parameters, after this procedure, from Visual Studio Code, you must open the following location:

C:\xampp\htdocs

From this location in Visual Studio Code, click View, Terminal. Inside the Terminal you choose the Git Bash option and copy the following code:

git clone https://github.com/configuroweb/carrito.git

The folder will be created carrito, inside the htdocs folder. Next, you must open XAMPP on your computer, activate the Apache and MySQL services, and access the following URL, to create the invoice database:

http://localhost/phpmyadmin/index.php

Shopping Cart Database in PHP and MySQL

For the application to work correctly, from phpmyadmin, you must create the database with the name carrito, then you must access the SQL section and paste the code found in the following link:

Link to Cart System database

After this you can access the following URL and the application will be ready for use:

http://localhost/carrito/

Upload of the Shopping Cart system in PHP and MySQL to a hosting

Due to the simplicity of the application, I will not address the issue directly, in the following related video (spanish), I explain the process at a general level:

Upload page with PHP + Database (MYSQL) to a Hosting

If you still have doubts about the process of setting up the application on a local server

How to Install PHP Applications on a Local Server

Any questions I remain pending, if you require more PHP applications, in Python or JavaScript I recommend you subscribe to my content on Youtube and be on the lookout for any changes, that I make.

Leave a Reply

Your email address will not be published.