TailorPro — Bespoke Tailoring & Boutique Suite
Thank you for purchasing TailorPro. This all-in-one PHP 8+ management platform is crafted for Mens, Ladies, and Boutique ateliers — built with zero external build steps for effortless deployment on cPanel, Apache, Nginx, XAMPP, or Laragon.
1. Overview & Highlights
- All-in-One Categories: Mens, Ladies, and Boutique with 12 pre-configured garment templates.
- Dynamic Measurement Builder: Add unlimited garment templates and custom fields (
number,text,selectdropdowns,inch/cmunits). - Dual Luxury Themes: Switch between Luxury Dark & Gold and Classic Light / Ivory directly from Admin Settings.
- Staff-First Terminology & Portal: Dedicated Staff Workbench login where tailoring Staff view assigned garments, measurements, and update production status.
- 80mm Thermal Slip Printing: Dedicated POS receipt (Customer Copy) & Workshop Production Slip (Staff Copy).
- 4 UTF-8 CSV Reports: Orders, Payments, Staff Workload, and Customers.
- Multi-Language + RTL: English, Urdu (RTL), Arabic (RTL), Spanish, and French out of the box.
- 1-Click Installer & Demo Mode: Supports MySQL/MariaDB and zero-config SQLite.
2. Server Requirements
| Component | Requirement |
|---|---|
| PHP Version | PHP 8.0 or higher (8.1 / 8.2 / 8.3 recommended) |
| Database | MySQL 5.7+ / MariaDB 10.3+ OR SQLite 3 (PDO) |
| PHP Extensions | pdo, pdo_mysql or pdo_sqlite, json, mbstring |
| Folder Permissions | Writable config/, database/, and uploads/ (755/775) |
3. 1-Click Installation
- Upload all files inside the
TailorPropackage to your web root (e.g.,public_html/tailorpro/orhtdocs/TailorPro/). - Open your browser and visit
https://yourdomain.com/install/(visiting the root URL automatically redirects there if not yet installed). - Verify all green server checks pass.
- Choose MySQL / MariaDB (enter host, database name, user, password — the installer creates the database automatically if permitted) or choose SQLite for instant zero-config setup.
- Set your Shop Name, Default Theme, Language, Admin Email/Password, and optionally check Install Sample Demo Data.
- Click 1-Click Install TailorPro. The installer creates
config/config.phpand locks itself withconfig/installed.lock.
Hosting Compatibility Notes (cPanel, Hostinger, Plesk, VPS/Nginx, Localhost)
- cPanel / Hostinger / DirectAdmin / Plesk: Create a MySQL database & user first in your hosting panel, assign full privileges to the database, then enter those credentials in
/install/(usually hostlocalhost, port3306). - Localhost (XAMPP / Laragon / WAMP / MAMP): Place the folder inside
htdocs/TailorProorwww/TailorProand visithttp://localhost/TailorPro/install/. The installer creates the local MySQL database automatically (or choose SQLite for zero-DB setup). - VPS with Nginx: Ensure PHP-FPM 8.0+ is active, grant write permissions (
chown -R www-data:www-data config database uploads), and block direct HTTP access toconfig/anddatabase/in your Nginx server block:location ~ ^/(config|database)/ { deny all; return 403; } location ~ \.(sql|sqlite|db|lock)$ { deny all; return 403; }
4. Demo Mode & Default Logins
When Demo Data is seeded, you can sign in with the following role accounts (or click the One-Click Demo Access buttons on login.php when Demo Mode is enabled):
| Role | Password | Access Scope | |
|---|---|---|---|
| Admin | admin@tailorpro.com | admin123 | Full system, Measurement Builder, Settings, Theme Switcher, CSV Reports |
| Manager | manager@tailorpro.com | manager123 | Orders, Customers, POS Payments, Staff Assignment, 80mm Slips, Reports |
| Staff | staff@tailorpro.com | staff123 | Dedicated Staff Workbench: assigned garments, measurements, status updates |
You can toggle Demo Mode on/off anytime inside Settings → Demo Mode, or click Reset Demo Data to restore clean sample records.
5. Dual Themes (Admin Switchable)
Navigate to Settings → Theme Switcher and select either:
- Luxury Dark & Gold (
luxury-dark) — Deep obsidian surface with champagne gold highlights. - Classic Light / Ivory (
classic-ivory) — Warm parchment ivory surface with antique brass accents.
In Demo Mode, visitors can also preview both themes live using the ribbon button at the top of the screen.
6. Dynamic Measurement Builder
Go to Measurement Builder (Admin role):
- Filter by Mens, Ladies, or Boutique, or create a new Garment Template with base price and estimated stitch days.
- Add any number of dynamic measurement fields: choose
Number,Text, orDropdown Options(comma-separated values likeBan Collar, V-Neck), unit (inch,cm, ornone), and required status. - When creating an order in New Order, selecting the Category & Garment immediately renders those exact fields, supports loading saved customer profiles, and lets you save updated measurements back to the customer's profile.
7. Staff Role Login & Workbench
Create accounts under Staff → + Add Staff Account and choose role Staff. When a Staff member signs in, they are routed to staff_portal.php, showing only garments assigned to them, urgent badges, fabric/style instructions, full dynamic measurements, 80mm Workshop Slip printing, and status progression (Pending → Cutting → Stitching → Finishing → Ready).
8. 80mm Thermal Slip Setup
Every order includes two 80mm print views at print_slip.php?id=ORDER_ID:
- Customer Receipt (80mm): Shop header, order & delivery dates, item pricing, tax, paid advance, balance due, barcode lookup box, and customizable footer.
- Staff Workshop Slip (80mm): Category, garment, assigned Staff, urgent badge, fabric & style notes, and full dynamic measurements grid (hides customer pricing).
Printer Tip: In Chrome/Edge Print Dialog, select your 80mm thermal printer, set Margins to None or Minimum, and Paper Size to 80mm.
9. CSV Reports & Exports
Open CSV Reports (reports.php) to filter by date range, category, and status, and download UTF-8 BOM CSV files ready for Microsoft Excel and Google Sheets: Orders CSV, Payments Ledger CSV, Staff Workload CSV, and Customers Summary CSV.
10. Multi-Language & RTL Support
Built-in language packs live in lang/: en.php (English), ur.php (Urdu RTL), ar.php (Arabic RTL), es.php (Spanish), and fr.php (French). To add another language, duplicate lang/en.php, translate the array values, and register the code in includes/i18n.php.
11. Public Website, 3:4 Portrait Catalog, Tracking & Online Booking
- Root Public Website (
/): Opens your luxury showcase website on the root domain (index.php), while Admin/Staff sign in at/login.phpor/admin/(linked from the public footer). - Public Website Theme Switcher: Under Settings → Public Website Theme Switcher, switch independently between Luxury Dark & Gold and Classic Light & Ivory, and configure Hero Headline, Subtitle, About text, Working Hours, WhatsApp number, Google Map link, and SEO Meta tags.
- 3:4 Portrait Design Catalog (
/designs,/designs/mens,/design/{slug}): Enforces crispaspect-ratio: 3/4portrait frames withobject-fit: cover& top-aligned framing, category tabs, search, pagination, multiple gallery photos, "Book This Design", and pre-filled WhatsApp inquiry links. - Admin Design CRUD (
designs_admin.php): Upload primary & multiple gallery photos (with automatic GD compression), set SEO Meta Title/Description, Image Alt Text, Slug, Featured & Active flags. - Services (
/services): Showcases active Mens, Ladies, and Boutique services with starting prices and turnaround days. - Live Order Tracking (
/track): Customers look up live 6-stage progress, trial/delivery date, balance due, and workshop logs via Order # + Phone number. - Online Appointment Booking (
/book&appointments.php): Public booking form saves toappointments; Admins/Managers can change status, reply via WhatsApp, or Convert to Order in 1 click.
12. SEO, Sitemap, Robots & Clean URLs
TailorPro ships with .htaccess rewrite rules plus dynamic sitemap.xml (sitemap.php), robots.txt (robots.php), Canonical/OpenGraph tags, and JSON-LD Schema (LocalBusiness sitewide + Product on each /design/{slug}).
Nginx VPS Note: If running Nginx instead of Apache/OpenLiteSpeed, add these rewrite rules in your server block:
rewrite ^/sitemap\.xml$ /sitemap.php last; rewrite ^/robots\.txt$ /robots.php last; rewrite ^/designs/?$ /designs.php last; rewrite ^/designs/(mens|ladies|boutique)/?$ /designs.php?category=$1 last; rewrite ^/design/([a-zA-Z0-9\-_]+)/?$ /design.php?slug=$1 last; rewrite ^/services/?$ /services.php last; rewrite ^/track/?$ /track.php last; rewrite ^/book/?$ /book.php last; rewrite ^/admin/?$ /login.php last;
13. Folder Structure
TailorPro/ ├── assets/css/app.css # Admin Dual-Theme CSS (Luxury Dark & Gold + Classic Ivory) ├── assets/css/public.css # Public Showcase & 3:4 Portrait Catalog CSS ├── assets/js/app.js # Frontend utilities & toasts ├── admin/index.php # /admin/ entry redirect to login/dashboard ├── config/ # Generated config.php & installed.lock (protected) ├── database/ # Optional SQLite database file (protected) ├── documentation/index.html # This documentation ├── includes/ # bootstrap.php, i18n.php, header/footer, public_header/public_footer ├── install/ # 1-Click Installer & unified MySQL/SQLite schema ├── lang/ # en.php, ur.php, ar.php, es.php, fr.php ├── uploads/designs/ # 3:4 Portrait design gallery images ├── uploads/references/ # Order garment reference images ├── index.php # Public Website Homepage (/) ├── designs.php & design.php # 3:4 Portrait Design Catalog & Detail page ├── services.php # Services & Starting Rates (/services) ├── track.php # Live Order Tracking (/track) ├── book.php # Online Appointment Booking (/book) ├── sitemap.php & robots.php # Dynamic sitemap.xml & robots.txt ├── designs_admin.php # Admin Design Catalog CRUD ├── appointments.php # Admin Online Bookings & Convert to Order ├── api.php # JSON endpoints for dynamic fields & customer profiles ├── dashboard.php # Admin/Manager dashboard ├── order_form.php # Dynamic order & measurement creator ├── orders.php & order_view.php ├── measurement_builder.php # Dynamic Measurement Builder (Mens/Ladies/Boutique) ├── customers.php & customer_view.php ├── staff.php & staff_portal.php ├── payments.php ├── print_slip.php # 80mm Thermal Slip ├── reports.php # CSV Export Center └── settings.php # Admin & Public Theme Switcher, SEO, Demo Mode