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.

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.

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 $_SESSION store 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.php that queries the usuario table, stores the result in $_SESSION, and redirects on success
  • Shopping cart mechanics — accumulating items in $_SESSION['carrito'] across page loads and rendering the totals on carrito.php
  • Category-filtered product listings — separate pages (cat_procesadores.php, cat_motherboards.php, cat_rams.php) that query the productos table filtered by id_cat
  • PayPal checkout integrationfinal.php and resumenc_compra.php hand off the order to PayPal’s payment form
  • Transactional email with PHPMailerenvio.php uses the bundled class.phpmailer.php to send order confirmation messages
  • User registrationnuevo_usuario.php inserts a new row into the usuario table

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.
LayerTechnology
LanguagePHP 5.x (tested on PHP 5.2.17)
DatabaseMySQL 5.x (tested on MySQL 5.1.57)
FrontendHTML/CSS + jQuery 1.7.1 & 1.3.2
EmailPHPMailer (bundled class.phpmailer.php)
IDEAdobe 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 / FolderPurpose
index.phpPublic homepage — renders the YUME|TEC banner, navigation bar, and the slide-down login panel
index2.phpPost-login landing page; processes the POST from the login form and starts the session
categorias.phpLists the three product categories (processors, motherboards, RAM)
cat_procesadores.phpFetches and displays all rows from productos where id_cat = 1
cat_motherboards.phpFetches and displays all rows from productos where id_cat = 2
cat_rams.phpFetches and displays all rows from productos where id_cat = 3
detalles.phpShows the full description of a single product
carrito.phpReads the cart from $_SESSION and renders the item list with a subtotal
nuevo_usuario.phpRegistration form that inserts a new row into the usuario table
registro.phpProcesses the registration POST
cerrar_sesion.phpDestroys $_SESSION and redirects to the homepage
resumenc_compra.phpOrder summary page before PayPal handoff
final.phpSubmits the order to PayPal and records the purchase in the compra table
envio.phpSends a confirmation email using PHPMailer
nosotros.phpStatic “About us” page
contacto.phpContact form
Connections/tienda.phpDatabase connection credentials ($hostname_tienda, $database_tienda, etc.)
BD/bd.sqlFull database dump — tables categorias, productos, compra, and usuario with seed data
class.phpmailer.php / class.smtp.phpBundled 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
The pages you will spend the most time studying are 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.

Build docs developers (and LLMs) love