This quickstart walks you from a fresh download of the YUME|TEC repository to a fully working local store where you can log in, browse computer hardware, add items to your cart, and proceed to checkout. By the end you will have Apache serving the PHP pages, a populated MySQLDocumentation 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.
tienda database, and the YUME|TEC homepage loading at http://localhost/tienda/index.php.
Prerequisites
Before you begin, make sure the following software is installed on your machine.
- PHP 5.6 — use XAMPP 5.6.x or a WAMP distribution that bundles PHP 5.6
- MySQL 5.x — included with both XAMPP and WAMP
- Apache — included with both XAMPP and WAMP; must be running before you open the store
Copy the project files
Clone or download the repository, then copy the entire project folder into your Apache web root and rename it For WAMP on Windows, the web root is On Linux/macOS with XAMPP, the web root is:After copying, the folder should contain
tienda so that the URL paths match the links hard-coded in the navigation.For XAMPP on Windows, the web root is htdocs\:www\:index.php, carrito.php, the BD/ and Connections/ subdirectories, and all other project files directly inside tienda/.Import the database
The project ships with a complete database dump at After the import completes you should see four tables:
BD/bd.sql that creates the four tables and inserts all seed data (product listings, categories, and sample user accounts). Follow these steps to import it.- Start MySQL and Apache from your XAMPP or WAMP control panel.
- Open phpMyAdmin in your browser at
http://localhost/phpmyadmin. - Create a new database named
tiendausing the latin1 character set — the dump was exported with that encoding and the product descriptions rely on it. - Select the
tiendadatabase, go to the Import tab, chooseBD/bd.sql, and click Go.
categorias, productos, compra, and usuario. The productos table will contain 31 rows covering processors, motherboards, and RAM modules.Configure the connection
Open The defaults (
Connections/tienda.php in your editor. This is the only file you need to change for a standard local setup. It contains the four variables that wire PHP to your MySQL instance:Connections/tienda.php
root with an empty password connecting to localhost) match a fresh XAMPP or WAMP installation, so you typically do not need to edit this file at all for local development. If your MySQL root account has a password, or if you created a dedicated database user, update $username_tienda and $password_tienda accordingly.
Note: Never deploy these credentials to a public server. The root account with no password is appropriate only for a localhost development environment.
Open the store
With Apache and MySQL running and the files in place, navigate to the store in your browser:You will see the YUME|TEC homepage: a dark-themed page with the store banner, a horizontal navigation bar (Inicio · Nosotros · Productos · Contacto · Carrito), and a slide-down panel at the top of the page. Clicking Entrar in the top panel reveals the members login form where you can enter a username and password. If the page loads without any PHP errors or white-screen output, your environment is configured correctly.
Test the Full Flow
Once the store is running, walk through the complete purchase journey to confirm every subsystem is working.- Register a new account — go to
http://localhost/tienda/nuevo_usuario.phpand fill in the registration form; on success the new row appears in theusuariotable - Browse processors — navigate to
http://localhost/tienda/cat_procesadores.phpto see all 10+ CPU listings pulled live from theproductostable - Add an item to the cart — click any product’s “Agregar al carrito” button; the item is stored in
$_SESSION['carrito'] - View the cart — go to
http://localhost/tienda/carrito.phpto review your selected items, quantities, and the running subtotal - Proceed to checkout — follow the cart through
resumenc_compra.phpandfinal.phpto see the PayPal handoff form