Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/wreyesus/Sencillo_Carrito_de_Compras_en_PHP/llms.txt

Use this file to discover all available pages before exploring further.

Welcome to the documentation for the PHP Shopping Cart (Sencillo Carrito de Compras en PHP) — a fully functional e-commerce example application built with PHP, MySQL, and jQuery. Originally created with Adobe Dreamweaver, it demonstrates how to wire together session management, user authentication, product catalogs, and a PayPal checkout flow in plain PHP.

Quickstart

Get the store running locally in under 10 minutes.

Database Setup

Import the SQL schema and seed data into MySQL.

Shopping Cart

Understand how the session-based cart stores and updates items.

Checkout & PayPal

Trace the full order flow from cart to PayPal payment page.

What’s in the project

The application is a computer hardware store called YUME | TEC that sells processors, motherboards, and RAM. Visitors can browse products by category, view product details, add items to a session-backed cart, and place orders that are submitted to PayPal and confirmed via PHPMailer email.
1

Configure your database connection

Edit Connections/tienda.php with your MySQL host, database name, username, and password.
2

Import the schema

Import BD/bd.sql into MySQL to create the four tables and load sample products.
3

Deploy to a PHP server

Copy all files to an Apache or Nginx server with PHP support. Open index.php in a browser.
4

Register and shop

Create an account via nuevo_usuario.php, browse products, add to cart, and complete a test checkout.

Key features

Session Cart

Items stored in $_SESSION['carrito'] — no database writes until checkout.

User Authentication

Registration and login backed by the usuario MySQL table.

Product Catalog

Three categories — processors, motherboards, RAM — with paginated listings.

PayPal Integration

final.php builds a PayPal _xclick form and auto-submits it via JavaScript.

PHPMailer Emails

Welcome and order-confirmation emails sent with the bundled PHPMailer library.

Database Schema

Four tables: categorias, productos, usuario, compra.
This project uses legacy mysql_* functions (deprecated since PHP 5.5, removed in PHP 7.0). To run it you need PHP 5.6 or earlier, or you must migrate the database calls to mysqli_* or PDO. See the Requirements page for details.

Build docs developers (and LLMs) love