getGlobalData()
Retrieve store name, logo, contact info, and settings.
Updated
On this page
Overview
Fetch store-wide settings including name, logo, currency, social links, and contact information. This is essential for building layouts, headers, and footers.
SDK Usage
import dash from "@/lib/dash"
const data = await dash.getGlobalData()
// data.global = {
// store_name: "My Store",
// store_description: "The best store around",
// logo: "https://cdn.dashfordevs.com/logo.png",
// logo_dark: "https://cdn.dashfordevs.com/logo-dark.png",
// favicon: "https://cdn.dashfordevs.com/favicon.ico",
// contact_email: "hello@mystore.com",
// contact_phone: "555-0123",
// address: "123 Main St, Austin TX 78701",
// social_media: {
// instagram: "https://instagram.com/mystore",
// facebook: "https://facebook.com/mystore",
// twitter: "https://twitter.com/mystore",
// },
// currency: "USD",
// timezone: "America/New_York",
// custom_fields: {},
// }