Settings & Configuration
Per-site settings for payment, email, tracking, social media, and theme.
Site Settings
Site Settings (/admin/settings.php?site_id=X) are stored per-site in the site_settings table. Saving settings automatically regenerates all site pages.
Payment Gateway
| Setting | Description |
|---|---|
| Razorpay Key ID | Your Razorpay live or test key (rzp_live_xxx or rzp_test_xxx) |
| Razorpay Key Secret | Your Razorpay secret key (stored encrypted) |
| Cash on Delivery | Enable COD payment option at checkout |
| Online Payment | Enable Razorpay online payment |
| Currency | Default: INR. Affects price display. |
Email Notifications
| Setting | Description |
|---|---|
| From Name | Sender name for outgoing emails |
| From Email | Sender email address |
| SMTP Host | SMTP server hostname (e.g. smtp.gmail.com) |
| SMTP Port | Usually 587 (TLS) or 465 (SSL) |
| SMTP User/Pass | SMTP authentication credentials |
| Order Notification Email | Email address to receive new order notifications |
WhatsApp Widget
Enable a floating WhatsApp chat button on all pages. Enter your WhatsApp number (with country code, no +) and a pre-filled message.
Social Media Links
Enter full URLs for Facebook, Instagram, Twitter/X, YouTube, LinkedIn, and TikTok. These are used in the site footer and social icons sections.
Theme Colors & Font
Set the primary color, secondary color, and font family for the site. These are saved to sites.theme_color as JSON and applied when pages are regenerated.
Global Settings (.env)
Platform-wide settings are configured in the .env file at the project root:
# Database DB_HOST=localhost DB_PORT=3306 DB_NAME=dsitesai DB_USER=root DB_PASS=yourpassword # AI AI_API_KEY=sk-... AI_API_URL=https://api.openai.com/v1/chat/completions AI_MODEL=gpt-4o-mini GEMINI_API_KEY=... # Payments RAZORPAY_KEY_ID=rzp_live_... RAZORPAY_KEY_SECRET=... # Google OAuth GOOGLE_CLIENT_ID=... GOOGLE_CLIENT_SECRET=... GOOGLE_REDIRECT_URI=https://yourdomain.com/admin/google-callback.php
Never commit your .env file to version control. It's already in .gitignore.