siteSettings
The store's settings: which page answers each recurring purpose, such as the contact or the returns page. Null where the store has no settings entry.
Arguments
| Argument | Type | Description |
|---|---|---|
version | ContentVersionType | |
previewId | String |
Returns
| Field | Type | Description |
|---|---|---|
contactPage | ContentPage | The page to contact the store. |
termsPage | ContentPage | The terms and conditions. |
privacyPage | ContentPage | The privacy statement. |
cookiePage | ContentPage | The cookie statement. |
returnsPage | ContentPage | How returns work. |
shippingPage | ContentPage | How shipping works, its costs and delivery times. |
Example
query SiteSettings($version: ContentVersionType, $previewId: String) { siteSettings(version: $version, previewId: $previewId) { contactPage { id name heading headingVisible path intro } termsPage { id name heading headingVisible path intro } privacyPage { id name heading headingVisible path intro } cookiePage { id name heading headingVisible path intro } returnsPage { id name heading headingVisible path intro } shippingPage { id name heading headingVisible path intro } }}{ "version": "DRAFT", "previewId": "Example"}{ "data": { "siteSettings": { "contactPage": { "id": "id-1", "name": "Example", "heading": "Example", "headingVisible": true, "path": "/example", "intro": "Example" }, "termsPage": { "id": "id-1", "name": "Example", "heading": "Example", "headingVisible": true, "path": "/example", "intro": "Example" }, "privacyPage": { "id": "id-1", "name": "Example", "heading": "Example", "headingVisible": true, "path": "/example", "intro": "Example" }, "cookiePage": { "id": "id-1", "name": "Example", "heading": "Example", "headingVisible": true, "path": "/example", "intro": "Example" }, "returnsPage": { "id": "id-1", "name": "Example", "heading": "Example", "headingVisible": true, "path": "/example", "intro": "Example" }, "shippingPage": { "id": "id-1", "name": "Example", "heading": "Example", "headingVisible": true, "path": "/example", "intro": "Example" } } }}The query selects the return type's fields two levels deep; pick the ones you need. The response shows its shape with placeholder values.
Used by
The storefront packages that send it, in these GraphQL documents:
- @evolve-storefront/feature-content-blocks:
ContentBlocksGetSiteSettings

