YUME|TEC has two main configuration points: the database connection and the email settings. The database connection is centralised in a single file (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.
Connections/tienda.php) that every PHP page includes. Email is handled by PHPMailer, configured separately in registro.php (which sends a welcome email on registration) and final.php (which sends an order confirmation). Both files contain hardcoded values that you must update before the corresponding features will work in your environment.
Database connection
All database credentials live inConnections/tienda.php. Open this file and update the four variables to match your local MySQL setup:
Connections/tienda.php
| Variable | Default value | Description |
|---|---|---|
$hostname_tienda | localhost | Hostname or IP address of the MySQL server. |
$database_tienda | tienda | Name of the database created during the import step. |
$username_tienda | root | MySQL username used to authenticate the connection. |
$password_tienda | (empty) | MySQL password for the above user. Empty by default in XAMPP. |
mysql_pconnect (persistent connect) rather than mysql_connect. On a single-user local stack this makes no practical difference, but on a shared host it means the connection is kept open between requests rather than being closed at the end of each script.
Email configuration (PHPMailer)
Two files in the project send transactional email using PHPMailer. You need to update the sender address, company name, and SMTP host in each file independently.registro.php — sends a welcome email when a new user completes registration:
final.php — sends an order confirmation email after a purchase is completed:
$mail->Host— Set this to your actual SMTP server hostname (e.g.smtp.gmail.comormail.yourdomain.com). The current values are placeholder URLs, not valid SMTP hostnames.$correo_empresa— The From address that recipients will see. Use an address on a domain you control.$empresa— The sender name that appears alongside the From address in email clients.
$mail->SMTPAuth = true, $mail->Username, $mail->Password, and $mail->Port — consult the PHPMailer documentation for your SMTP provider.
PayPal configuration
The checkout page (final.php) submits an order form to PayPal using a hardcoded merchant email:
[email protected] with your own PayPal business account email address. The form also sets the following values that you may want to review:
- Currency — hardcoded as
USD. To accept a different currency, change thecurrency_codehidden field value to the appropriate ISO 4217 code. - Language — the PayPal button and interface are set to
ES(Spanish). Change thelchidden field value to your preferred locale code if needed (e.g.ENfor English).