Free UK Mainland Pallet Delivery on orders over £500 ex VAT • Trade & Multi-Store Fit-Out Discounts Available
Kaaalshelf UK Precision Retail Shelving & Bespoke Shopfitting
Developer & Operations Document

Kaaalshelf — Complete System Documentation

Architecture, HTML/PHP/MySQLi/JS/CSS file map, PayPal & Gmail SMTP setup, and Warehouse-to-Invoice rules.

Open Admin Dashboard

1. File Architecture (HTML, PHP, MySQLi, JS, CSS)

  • config.php, database.sql, setup.php — MySQLi configuration, 16-table relational schema, and one-click installer.
  • includes/bootstrap.php, includes/mailer.php — Prepared MySQLi helpers, CSRF security, cart, upload handler, and Gmail SMTP TLS mailer.
  • index.php, shop.php, product.php, custom-quote.php, about.php, contact.php, cart.php, checkout.php, order-success.php — Dedicated multi-page customer storefront with distinct page animations, Parallax & Glassmorphism UI.
  • admin-login.php, admin.php, print-document.php — Admin-only login (with Gmail intrusion alerts) & mobile-first command dashboard.
  • api/cart.php, api/paypal.php, api/realtime.php, api/admin-api.php — AJAX PayPal v2, real-time sync, and inventory transactions.

2. Warehouse, Quotation & Invoice Rules

  1. Warehouses & Low-Stock Gmail Alerts: Add items with vendor, purchase price, selling price, quantity & alert threshold. Any manual Take Out or invoice deduction dropping stock to <= threshold triggers an instant Gmail + Dashboard alert.
  2. Quotations & Floor Plans: Upload external tool floor plans, combine Own Warehouse items with External Bought items, override prices up/down, and apply discounts. Quotations never deduct stock.
  3. Invoice Conversion: Clicking Issue Invoice & Deduct Stock deducts only warehouse-sourced items inside a MySQLi transaction and tracks Unpaid / Partial / Paid balances.

3. PayPal & Gmail SMTP Setup

Sign in to Admin → Site, Logo & Keys to customize the website name, upload your round logo, change color codes, paste your PayPal REST Client ID & Secret, and enter your Gmail + 16-character Google App Password. Use the Send Test Gmail Alert button to verify live email delivery.