Configuration
Post-install configuration. Most settings live in admin panel (no code edits). The .env file holds only infrastructure config (DB, mail, caching).
.env reference
Located at kode/.env. Edit via FTP/SSH only โ never via admin panel.
App identity
APP_NAME="CartUser"
APP_URL=https://yourdomain.com
APP_ENV=production
APP_DEBUG=false
APP_KEY=base64:... # auto-generated by installer
APP_TIMEZONE=UTC
Database
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=cartuser
DB_USERNAME=cartuser
DB_PASSWORD=...
Mail (for order notifications)
MAIL_MAILER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
[email protected]
MAIL_PASSWORD=...
MAIL_ENCRYPTION=tls
[email protected]
MAIL_FROM_NAME="${APP_NAME}"
Cache + sessions (recommended)
CACHE_DRIVER=file
SESSION_DRIVER=file
QUEUE_CONNECTION=database
For high-traffic stores, switch to Redis:
CACHE_DRIVER=redis
SESSION_DRIVER=redis
QUEUE_CONNECTION=redis
REDIS_HOST=127.0.0.1
REDIS_PORT=6379
File storage
FILESYSTEM_DRIVER=public # local storage
# OR for S3:
FILESYSTEM_DRIVER=s3
AWS_ACCESS_KEY_ID=...
AWS_SECRET_ACCESS_KEY=...
AWS_DEFAULT_REGION=us-east-1
AWS_BUCKET=your-bucket
Admin โ Settings โ General
| Setting | Purpose |
|---|---|
| Site Name | Storefront title, emails, page titles |
| Site Logo / Admin Logo | Header branding |
| Favicon | Browser tab icon |
| Default Currency | Display currency for prices |
| Currency Position | Before or after amount ($10 vs 10$) |
| Decimal Digits | 2 for USD, 0 for IDR, etc. |
| Country | Default country for new addresses |
| Timezone | For order timestamps |
| Date Format | e.g. d M Y, Y-m-d, M d Y |
| Multi-Vendor Mode | Toggle marketplace vs single-store |
| Default Commission | Platform cut on seller orders |
| Cash on Delivery | Toggle COD payment method |
| Customer Wallet | Toggle wallet feature |
| Club Point System | Toggle reward points |
| Minimum Order Amount | Enforce minimum cart value |
| Email Verification | Require email verify before login |
| SMS OTP | OTP verification for phone-based login |
| Pagination Number | Items per page in admin lists |
Branding
- Admin โ Settings โ General โ Logo settings
- Upload: Site Logo (header), Admin Logo (admin panel), Favicon (browser tab)
- Recommended sizes:
- Site Logo: 200ร50 px PNG (transparent background)
- Admin Logo: 200ร50 px
- Favicon: 32ร32 px ICO or PNG
- Save
Tax setup
- Admin โ Catalog โ Tax โ Create
- Name (e.g. "VAT 20%"), Status = Active
- Attach to products: Admin โ Products โ Edit โ Tax tab
- For per-product variable rates: set rate when attaching
Multi-language
- Admin โ Settings โ Language โ Add Language
- Choose code (e.g. "es" for Spanish), name
- Toggle RTL if applicable (Arabic, Hebrew)
- Save
- Click Translate next to the language
- Translate strings one-by-one (or auto-translate via AI Assistant)
- Save
- Frontend language switcher auto-includes the new language
Multi-currency
- Admin โ Settings โ Currency โ Add Currency
- Set: name, code (USD/EUR/INR), symbol ($/โฌ/โน), rate (relative to default)
- Set as Default if needed
- Frontend shows currency switcher
- Prices auto-convert based on rate
SMS gateway setup
- Admin โ Settings โ SMS Gateway โ choose provider
- Supported: Twilio, Vonage (Nexmo), MessageBird, TextMagic, Infobip, SendGrid SMS, Custom
- Enter API credentials
- Set Status = Active
- Test SMS from same page
Email templates
- Admin โ Settings โ Email Template
- Edit templates: Welcome, Order Placed, Order Shipped, Order Delivered, Password Reset, etc.
- Use merge tags:
{{name}},{{order_number}},{{amount}} - Save
Social login
- Admin โ Settings โ Social Login
- Google: Get Client ID + Secret from console.cloud.google.com
- Facebook: Get App ID + Secret from developers.facebook.com
- Copy the callback URL shown on edit page โ paste into Google/Facebook OAuth config
- Toggle status to Active
- Save