DashForDevsDocs
DocsNewsAPI v1
dashfordevs.comSign in

© 2026 DashForDevs

DocsNewsdashfordevs.comLegalStatus
DocsGlobal DataFeature Flags
Introduction
Getting Started
Authentication
Products
Categories
Cart
Checkout
Blog
Reviews
Webhooks
Customers
Orders
Inventory
Shipping
Discounts
Affiliates
Email
Media & Files
Analytics & Tracking
Locations
Tax
Global Data
getGlobalData()Currency & PricingFeature FlagsMaintenance Mode
SEO
Error Handling
Geography
Finance
Automations
Page Types
Surveys
Billing & Subscriptions
Storefront Payments
SDK Reference
REST API
Storefront Architecture
Notifications
Security
Team & Permissions
Migrations & Import
Calendar & Appointments
Contact Forms
AI Bots
Dashboard API
Deployment
Changelog
Troubleshooting
Recipes
CLI & Deployment
Image Pipeline
White-label Platforms
Records Engine
Platform Modules
Platform Security
Site Keys & Client Sites
Use Cases
Operations

Feature Flags

Check which features are enabled (reviews, affiliates, etc.).

Updated March 29, 2026

On this page
  • Overview
  • Reading Feature Flags
  • Common Flags
  • Next Steps

Overview

Feature flags in the global data control which storefront features are enabled. Use these to conditionally show/hide features.

Reading Feature Flags

typescript
import dash from "@/lib/dash"

const { global } = await dash.getGlobalData()

// Feature flags are in custom_fields or dedicated fields
if (global.custom_fields?.reviews_enabled === "true") {
  // Show review section
}

if (global.custom_fields?.affiliate_program === "true") {
  // Show affiliate link
}

Common Flags

Configure these in the dashboard under Settings → Custom Fields:

  • reviews_enabled — Show/hide review sections
  • blog_enabled — Show/hide blog navigation
  • affiliate_program — Enable affiliate program
  • loyalty_program — Enable loyalty points

Next Steps

  • Maintenance Mode — Taking the store offline
  • getGlobalData() — Full global data
PreviousCurrency & PricingNextMaintenance Mode

On this page

  • Overview
  • Reading Feature Flags
  • Common Flags
  • Next Steps