Feature Flags
Check which features are enabled (reviews, affiliates, etc.).
Updated
On this page
Overview
Feature flags in the global data control which storefront features are enabled. Use these to conditionally show/hide features.
Reading Feature Flags
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 sectionsblog_enabled— Show/hide blog navigationaffiliate_program— Enable affiliate programloyalty_program— Enable loyalty points
Next Steps
- Maintenance Mode — Taking the store offline
- getGlobalData() — Full global data