login Sign In

Settings & Configuration

Per-site settings for payment, email, tracking, social media, and theme.

schedule 5 min read

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

SettingDescription
Razorpay Key IDYour Razorpay live or test key (rzp_live_xxx or rzp_test_xxx)
Razorpay Key SecretYour Razorpay secret key (stored encrypted)
Cash on DeliveryEnable COD payment option at checkout
Online PaymentEnable Razorpay online payment
CurrencyDefault: INR. Affects price display.

Email Notifications

SettingDescription
From NameSender name for outgoing emails
From EmailSender email address
SMTP HostSMTP server hostname (e.g. smtp.gmail.com)
SMTP PortUsually 587 (TLS) or 465 (SSL)
SMTP User/PassSMTP authentication credentials
Order Notification EmailEmail 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.

WhatsApp Order Messages (Business API)

Automatically notify merchant and/or customer on WhatsApp when an order is placed. Configure in Settings → WhatsApp Order Messages.

SettingDescription
API ProviderMeta Cloud API, Interakt, or Gupshup
Merchant alertsPush to store owner on new order (template vars: order #, total, customer, store)
Customer confirmationPush to buyer's checkout phone (vars: customer, order #, total, store)
Meta credentialsPhone Number ID + permanent access token
Interakt credentialsAPI key from Developer Settings
Gupshup credentialsAPI key, source number, app name; template field uses UUID

Use Send test to merchant after saving. Logs appear in email_log as whatsapp_order_merchant or whatsapp_order_customer.

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
warning
Security

Never commit your .env file to version control. It's already in .gitignore.