CodeCanyon Documentation

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, select dropdowns, inch/cm units).
  • 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

ComponentRequirement
PHP VersionPHP 8.0 or higher (8.1 / 8.2 / 8.3 recommended)
DatabaseMySQL 5.7+ / MariaDB 10.3+ OR SQLite 3 (PDO)
PHP Extensionspdo, pdo_mysql or pdo_sqlite, json, mbstring
Folder PermissionsWritable config/, database/, and uploads/ (755/775)

3. 1-Click Installation

  1. Upload all files inside the TailorPro package to your web root (e.g., public_html/tailorpro/ or htdocs/TailorPro/).
  2. Open your browser and visit https://yourdomain.com/install/ (visiting the root URL automatically redirects there if not yet installed).
  3. Verify all green server checks pass.
  4. 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.
  5. Set your Shop Name, Default Theme, Language, Admin Email/Password, and optionally check Install Sample Demo Data.
  6. Click 1-Click Install TailorPro. The installer creates config/config.php and locks itself with config/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 host localhost, port 3306).
  • Localhost (XAMPP / Laragon / WAMP / MAMP): Place the folder inside htdocs/TailorPro or www/TailorPro and visit http://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 to config/ and database/ 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):

RoleEmailPasswordAccess Scope
Adminadmin@tailorpro.comadmin123Full system, Measurement Builder, Settings, Theme Switcher, CSV Reports
Managermanager@tailorpro.commanager123Orders, Customers, POS Payments, Staff Assignment, 80mm Slips, Reports
Staffstaff@tailorpro.comstaff123Dedicated 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:

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):

  1. Filter by Mens, Ladies, or Boutique, or create a new Garment Template with base price and estimated stitch days.
  2. Add any number of dynamic measurement fields: choose Number, Text, or Dropdown Options (comma-separated values like Ban Collar, V-Neck), unit (inch, cm, or none), and required status.
  3. 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:

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.php or /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 crisp aspect-ratio: 3/4 portrait frames with object-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 to appointments; 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