Annyzbeauty

Annyzbeauty Beauty Shop ๐ŸŒธ

A complete PHP/MySQL e-commerce website for Annyzbeauty


๐Ÿ“ Project Structure

annyzbeauty/
โ”œโ”€โ”€ index.php                  โ† Homepage
โ”œโ”€โ”€ products.php               โ† Product catalog with filters
โ”œโ”€โ”€ product.php                โ† Single product detail
โ”œโ”€โ”€ cart.php                   โ† Shopping cart
โ”œโ”€โ”€ checkout.php               โ† Checkout & order placement
โ”œโ”€โ”€ orders.php                 โ† Customer order history
โ”œโ”€โ”€ profile.php                โ† Customer profile management
โ”œโ”€โ”€ register.php               โ† Customer registration
โ”œโ”€โ”€ login.php                  โ† Customer login
โ”œโ”€โ”€ logout.php                 โ† Session logout
โ”œโ”€โ”€ .htaccess                  โ† Apache security config
โ”‚
โ”œโ”€โ”€ ajax/
โ”‚   โ”œโ”€โ”€ cart_add.php           โ† AJAX: Add to cart
โ”‚   โ””โ”€โ”€ cart_update.php        โ† AJAX: Update cart quantity
โ”‚
โ”œโ”€โ”€ admin/
โ”‚   โ”œโ”€โ”€ login.php              โ† Admin login
โ”‚   โ”œโ”€โ”€ logout.php             โ† Admin logout
โ”‚   โ”œโ”€โ”€ dashboard.php          โ† Admin dashboard + stats
โ”‚   โ”œโ”€โ”€ products.php           โ† Product list & delete
โ”‚   โ”œโ”€โ”€ product_add.php        โ† Add new product
โ”‚   โ”œโ”€โ”€ product_edit.php       โ† Edit existing product
โ”‚   โ”œโ”€โ”€ categories.php         โ† Category CRUD
โ”‚   โ”œโ”€โ”€ orders.php             โ† Order management
โ”‚   โ”œโ”€โ”€ customers.php          โ† Customer management
โ”‚   โ””โ”€โ”€ includes/
โ”‚       โ”œโ”€โ”€ admin_header.php
โ”‚       โ””โ”€โ”€ admin_footer.php
โ”‚
โ”œโ”€โ”€ includes/
โ”‚   โ”œโ”€โ”€ config.php             โ† DB config + utility functions
โ”‚   โ”œโ”€โ”€ header.php             โ† Site header + navbar
โ”‚   โ”œโ”€โ”€ footer.php             โ† Site footer
โ”‚   โ””โ”€โ”€ product_card.php       โ† Reusable product card
โ”‚
โ”œโ”€โ”€ assets/
โ”‚   โ”œโ”€โ”€ css/
โ”‚   โ”‚   โ””โ”€โ”€ style.css          โ† Main stylesheet (pink/white/black)
โ”‚   โ”œโ”€โ”€ js/
โ”‚   โ”‚   โ””โ”€โ”€ main.js            โ† Main JavaScript
โ”‚   โ””โ”€โ”€ images/
โ”‚       โ”œโ”€โ”€ products/          โ† Product image uploads go here
โ”‚       โ””โ”€โ”€ hero-beauty.jpg    โ† Hero background image
โ”‚
โ””โ”€โ”€ database/
    โ””โ”€โ”€ annyzbeauty.sql        โ† Complete MySQL schema + sample data

๐Ÿš€ Deployment to InfinityFree Hosting

Step 1: Create InfinityFree Account

  1. Sign up at infinityfree.com
  2. Create a new hosting account
  3. Note your subdomain (e.g. annyzbeauty.rf.gd) or connect a custom domain

Step 2: Create the MySQL Database

  1. Log in to VistaPanel (InfinityFree control panel)
  2. Click MySQL Databases
  3. Create a new database โ€” note the full name (e.g. epiz_12345678_annyzbeauty)
  4. Create a DB user with a strong password
  5. Assign the user to the database with All Privileges
  6. Click phpMyAdmin โ†’ select your database โ†’ click Import
  7. Upload database/annyzbeauty.sql โ†’ click Go

Step 3: Configure Database Connection

Open includes/config.php and update:

define('DB_HOST', 'sql200.infinityfree.com'); // check your VistaPanel for exact host
define('DB_USER', 'epiz_12345678');            // your DB username
define('DB_PASS', 'your_db_password');
define('DB_NAME', 'epiz_12345678_annyzbeauty');

define('SITE_URL', 'https://annyzbeauty.rf.gd'); // your InfinityFree domain

Step 4: Upload Files via FTP

  1. In VistaPanel, note your FTP hostname, username, and password
  2. Use FileZilla (free): File โ†’ Site Manager โ†’ New Site
    • Host: your FTP host
    • User/Pass: your FTP credentials
  3. Upload the entire annyzbeauty/ contents to /htdocs/ on the server
    • Upload all files and folders into /htdocs/ (not inside a subdirectory)

Step 5: Create the Products Upload Folder

After uploading, ensure /htdocs/assets/images/products/ exists and is writable. In FileZilla: right-click the folder โ†’ File Permissions โ†’ set to 755.

Step 6: Test Your Site


๐Ÿ”‘ Default Login Credentials

Role Email Password
Admin admin@annyzbeauty.com Admin@1234
Customer jane@example.com Admin@1234

โš ๏ธ Change all passwords immediately after first login!


๐ŸŽจ Branding Colors

Name Hex
Primary Pink #E91E8C
Dark Pink #C2176F
Soft Pink #FFF0F7
Black #1A1A1A
White #FFFFFF

๐Ÿ’ณ Payment Setup

The site uses a manual payment confirmation system:

  1. Customer selects M-Pesa, PayPal, or Cash on Delivery at checkout
  2. Order is placed with status Pending / Unpaid
  3. Admin receives order notification (check /admin/orders.php)
  4. Share payment details with customer via email/WhatsApp:
    • M-Pesa: Send to +254 758 556 523 (Paybill/Till)
    • PayPal: masilavincent32@gmail.com
  5. Customer pays and sends proof via WhatsApp
  6. Admin updates order status to Processing and payment to Paid

๐Ÿ›ก๏ธ Security Features


๐Ÿ“ฆ Adding Product Images

Upload your product images to:
/assets/images/products/

Image names should match the image column in the products table.
Supported formats: JPG, PNG, WebP, GIF (max 2MB each).

You can also upload images directly through the admin panel:
/admin/product_add.php or /admin/product_edit.php


โš™๏ธ Customization Tips


๐Ÿ“ž Support

Built for Annyzbeauty ยท Nairobi, Kenya
WhatsApp: +254 758 556 523
Email: hello@annyzbeauty.com