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 follows the flat layout typical of projects generated with Adobe Dreamweaver’s server behaviors. Almost every PHP page lives directly in the project root alongside the main jQuery file, with supporting CSS, JavaScript, and image assets organized into their own subdirectories. There is no MVC framework, autoloader, or build step — a web server pointed at the root is all that is needed to run the application.
Root PHP files
These are the files a visitor or server actually executes. They handle rendering, form processing, session management, and third-party library inclusion.
| File | Purpose |
|---|
index.php | Homepage with sliding login panel — the guest entry point to the store |
index2.php | Authenticated homepage; the target of a successful login redirect |
categorias.php | Product category index that links to all three category listing pages |
cat_procesadores.php | Processors listing page (id_cat=1), paginated at 9 products per page |
cat_motherboards.php | Motherboards listing page (id_cat=2), paginated at 9 products per page |
cat_rams.php | RAM listing page (id_cat=3), paginated at 9 products per page |
detalles.php | Product detail view; reads the product ID from $_GET['id_producto'] |
carrito.php | Shopping cart page; session-based storage with POST handlers for add, update, and remove operations |
resumenc_compra.php | Order summary step; collects buyer name and email before checkout |
final.php | Generates the PayPal redirect form and sends the order confirmation email via PHPMailer |
nuevo_usuario.php | Combined registration and login page for new visitors |
registro.php | Registration POST handler; inserts a new row into the usuario table |
ingreso.php | Login POST handler; validates credentials and sets $_SESSION['usuario'] |
cerrar_sesion.php | Logout handler; destroys the session and redirects to index2.php |
contacto.php | Contact form page; submits to envio.php |
envio.php | Contact form POST handler; processes and sends the contact message |
nosotros.php | About page describing the store |
class.phpmailer.php | Bundled PHPMailer library for sending transactional email |
class.smtp.php | Bundled PHPMailer SMTP transport layer |
JavaScript files
jQuery is loaded in two places at different versions because different Dreamweaver behaviors and plugins declared dependencies on specific releases. Custom scripts are kept in the js/ subdirectory.
| File | Purpose |
|---|
jquery-1.7.1.min.js | jQuery 1.7.1 loaded from the project root; the primary jQuery instance used by most pages |
js/jquery-1.3.2.min.js | jQuery 1.3.2; an older version also loaded by most pages for plugin compatibility |
js/jquery-1.4.2.min.js | jQuery 1.4.2; available in the js/ directory and used where needed |
js/jquery.v1.4.2.js | Unminified jQuery 1.4.2 development copy |
js/slide.js | Sliding login panel — toggles #panel open and closed using slideDown/slideUp |
js/superfish.js | Superfish dropdown navigation menu jQuery plugin |
js/validacion.js | jQuery-based form validation for the contact form; shows inline accept/error icons on blur |
js/jquery.lightbox-0.5.js | Lightbox image viewer plugin for enlarged product image display |
funciones.js | jQuery login panel toggle helper (#login click handler for #login-form) |
CSS files
| File | Purpose |
|---|
css/estilo.css | Main stylesheet covering the CSS reset, body background, navigation bar, product grid, cart table, contact form, and footer |
css/slide.css | Styles specific to the sliding top login panel (#toppanel, #panel, .tab) |
Directories
| Directory | Contents |
|---|
BD/ | SQL dump file (bd.sql) used to create and seed the database |
Connections/ | Database connection file (tienda.php) — defines $hostname_tienda, $database_tienda, and opens the $tienda connection |
imagenes/ | UI icon images: carrito.gif, comprar.gif, eliminar.gif, actualizar.gif, miembro.gif, miembro_registrado.gif, and validation icons |
imagenes/productos/ | Product thumbnail images; each filename matches the imagen column in the productos table |
imagenes/productos/detalle/ | Full-size product images displayed on the detail page at 200×200 px |
img/ | Layout and navigation images: banner, category landing images, navigation bar graphic, separators, footer graphic, and background tile |
js/ | JavaScript libraries and custom scripts (see table above) |
js/pngfix/ | IE PNG transparency fix (supersleight-min.js and x.gif) |
js/swfobject/ | SWF object embed helper (swfobject.js) |
css/ | Stylesheets |
_mmServerScripts/ | Dreamweaver server-side utility scripts (MMHTTPDB.php, mysql.php) |
_notes/ | Dreamweaver design notes (.mno metadata files) |
The _mmServerScripts/ and _notes/ directories are Dreamweaver IDE artifacts used by the visual design environment. They are not required for the application to run and can be excluded from a production deployment.