YUME|TEC is a straightforward, fully functional online computer hardware store built by Jaime Lainez, Jerónimo Castañeda, and Saúl Guardado as a practical demonstration of server-side e-commerce fundamentals. The project — officially titled Sencillo Carrito de Compras en PHP — was developed entirely in Adobe Dreamweaver and shows how a working shopping cart can be assembled with plain PHP 5, a MySQL database, jQuery for front-end interactivity, and PHPMailer for transactional email. It is an ideal starting point for developers who want to study the building blocks of a session-driven store before moving on to modern frameworks.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.
What You’ll Learn
Working through the YUME|TEC codebase exposes you to the core mechanics behind most PHP-based stores. Even though the project was written against older PHP APIs, every concept it demonstrates maps directly onto the patterns you will find in contemporary applications.- PHP session management — how
session_start()and$_SESSIONstore the authenticated user’s ID and nickname across page requests - MySQL queries from PHP — selecting products by category, validating credentials, inserting purchase records, and reading row counts with the legacy
mysql_*API - User authentication — a login form on
index.phpthat queries theusuariotable, stores the result in$_SESSION, and redirects on success - Shopping cart mechanics — accumulating items in
$_SESSION['carrito']across page loads and rendering the totals oncarrito.php - Category-filtered product listings — separate pages (
cat_procesadores.php,cat_motherboards.php,cat_rams.php) that query theproductostable filtered byid_cat - PayPal checkout integration —
final.phpandresumenc_compra.phphand off the order to PayPal’s payment form - Transactional email with PHPMailer —
envio.phpuses the bundledclass.phpmailer.phpto send order confirmation messages - User registration —
nuevo_usuario.phpinserts a new row into theusuariotable
Tech Stack
Every component in YUME|TEC was chosen for simplicity and broad availability on shared hosting at the time of development. The table below lists each layer and the specific version the project targets.| Layer | Technology |
|---|---|
| Language | PHP 5.x (tested on PHP 5.2.17) |
| Database | MySQL 5.x (tested on MySQL 5.1.57) |
| Frontend | HTML/CSS + jQuery 1.7.1 & 1.3.2 |
PHPMailer (bundled class.phpmailer.php) | |
| IDE | Adobe Dreamweaver |
YUME|TEC uses the deprecated
mysql_* extension (mysql_pconnect, mysql_query, mysql_fetch_array, etc.). This extension was removed entirely in PHP 7.0. To run the project without modification you must use PHP 5.6 or earlier (for example, XAMPP 5.6.x or WAMP with a PHP 5.6 build). If you want to run it on a modern server, every mysql_* call must be rewritten using mysqli_* or PDO before deployment.Project Structure
The repository is a flat collection of PHP pages sitting at the web root, supported by a small set of folders. Understanding which file does what makes it easy to navigate the codebase and follow the user journey from the homepage all the way through to checkout.| File / Folder | Purpose |
|---|---|
index.php | Public homepage — renders the YUME|TEC banner, navigation bar, and the slide-down login panel |
index2.php | Post-login landing page; processes the POST from the login form and starts the session |
categorias.php | Lists the three product categories (processors, motherboards, RAM) |
cat_procesadores.php | Fetches and displays all rows from productos where id_cat = 1 |
cat_motherboards.php | Fetches and displays all rows from productos where id_cat = 2 |
cat_rams.php | Fetches and displays all rows from productos where id_cat = 3 |
detalles.php | Shows the full description of a single product |
carrito.php | Reads the cart from $_SESSION and renders the item list with a subtotal |
nuevo_usuario.php | Registration form that inserts a new row into the usuario table |
registro.php | Processes the registration POST |
cerrar_sesion.php | Destroys $_SESSION and redirects to the homepage |
resumenc_compra.php | Order summary page before PayPal handoff |
final.php | Submits the order to PayPal and records the purchase in the compra table |
envio.php | Sends a confirmation email using PHPMailer |
nosotros.php | Static “About us” page |
contacto.php | Contact form |
Connections/tienda.php | Database connection credentials ($hostname_tienda, $database_tienda, etc.) |
BD/bd.sql | Full database dump — tables categorias, productos, compra, and usuario with seed data |
class.phpmailer.php / class.smtp.php | Bundled PHPMailer library files |
css/ | Stylesheet files (estilo.css, slide.css) |
js/ | JavaScript files including the slide panel logic |
img/ / imagenes/ | Site graphics and product images |
index.php (session bootstrap and login), carrito.php (cart state), final.php (checkout), and Connections/tienda.php (database wiring).
Explore the Docs
The sections below cover everything you need to go from a fresh checkout to a running store, and then dig into how each subsystem works. Pick a card to jump directly to the topic most relevant to you.Quickstart
Get the store running on a local PHP 5.6 server in five steps — no prior configuration needed.
Database Setup
Understand the four-table schema, the seed data, and how to import
BD/bd.sql into MySQL.Shopping Cart
See exactly how
carrito.php reads session state, calculates totals, and links to checkout.Session Management
Follow the full auth flow from login form submission through
$_SESSION storage to logout.