Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit 7222ce5

Browse files
authored
Merge pull request #7431 from atwixfirster/issue-7364-storeConfig
#7364: Update the storeConfig query to include the new attributes
2 parents e7424f2 + bae4330 commit 7222ce5

File tree

1 file changed

+49
-19
lines changed

1 file changed

+49
-19
lines changed

src/guides/v2.4/graphql/queries/store-config.md

Lines changed: 49 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The `storeConfig` query defines information about a store's configuration. You c
1313

1414
### Query a store's configuration
1515

16-
The following call returns all details of a store's configuration.
16+
The `storeConfig` query can return `base` and `extended` store configuration setting. The following call returns all `base` details of a store's configuration.
1717

1818
**Request:**
1919

@@ -36,11 +36,6 @@ The following call returns all details of a store's configuration.
3636
secure_base_link_url
3737
secure_base_static_url
3838
secure_base_media_url
39-
store_name
40-
send_friend {
41-
enabled_for_customers
42-
enabled_for_guests
43-
}
4439
}
4540
}
4641
```
@@ -59,19 +54,14 @@ The following call returns all details of a store's configuration.
5954
"default_display_currency_code": "USD",
6055
"timezone": "America/Chicago",
6156
"weight_unit": "lbs",
62-
"base_url": "http://magento2.vagrant193/",
63-
"base_link_url": "http://magento2.vagrant193/",
64-
"base_static_url": "http://magento2.vagrant193/pub/static/version1536249714/",
65-
"base_media_url": "http://magento2.vagrant193/pub/media/",
66-
"secure_base_url": "http://magento2.vagrant193/",
67-
"secure_base_link_url": "http://magento2.vagrant193/",
68-
"secure_base_static_url": "http://magento2.vagrant193/pub/static/version1536249714/",
69-
"secure_base_media_url": "http://magento2.vagrant193/pub/media/",
70-
"store_name": "My Store",
71-
"send_friend": {
72-
"enabled_for_customers": true,
73-
"enabled_for_guests": false
74-
}
57+
"base_url": "http://magentohost.example.com/",
58+
"base_link_url": "http://magentohost.example.com/",
59+
"base_static_url": "http://magentohost.example.com/pub/static/version1536249714/",
60+
"base_media_url": "http://magentohost.example.com/pub/media/",
61+
"secure_base_url": "http://magentohost.example.com/",
62+
"secure_base_link_url": "http://magentohost.example.com/",
63+
"secure_base_static_url": "http://magentohost.example.com/pub/static/version1536249714/",
64+
"secure_base_media_url": "http://magentohost.example.com/pub/media/"
7565
}
7666
}
7767
}
@@ -185,6 +175,36 @@ The following query returns information about the store's catalog configuration.
185175
}
186176
```
187177

178+
### Query a store's customer configuration
179+
180+
The following query returns information about the store's customer configuration.
181+
182+
**Request:**
183+
184+
```graphql
185+
{
186+
storeConfig {
187+
autocomplete_on_storefront
188+
minimum_password_length
189+
required_character_classes_number
190+
}
191+
}
192+
```
193+
194+
**Response:**
195+
196+
```json
197+
{
198+
"data": {
199+
"storeConfig": {
200+
"autocomplete_on_storefront": true,
201+
"minimum_password_length": "6",
202+
"required_character_classes_number": "2"
203+
}
204+
}
205+
}
206+
```
207+
188208
### Query a store's fixed product tax configuration
189209

190210
The following query returns enumeration values that indicate the store's fixed product tax configuration.
@@ -301,6 +321,16 @@ Attribute | Data Type | Description | Example
301321
`root_category_id` | Int | The ID of the root category
302322
`title_separator` | String | Identifies the character that separates the category name and subcategory in the browser title bar | `-`
303323

324+
### Supported catalog attributes
325+
326+
Use the `customer` attributes to retrieve information about the store's customer settings. These attributes are defined in the `CustomerGraphQl` module.
327+
328+
Attribute | Data Type | Description | Configuration path | Default Value
329+
--- | --- | ---
330+
`autocomplete_on_storefront` | Boolean | Enable autocomplete on login and forgot password forms. | customer/password/autocomplete_on_storefront | true
331+
`minimum_password_length` | String | The minimum number of characters required for a valid password. | customer/password/minimum_password_length | 6
332+
`required_character_classes_number` | String | The number of different character classes required in a password (lowercase, uppercase, digits, special characters). | customer/password/required_character_classes_number | 2
333+
304334
### Supported WEEE (fixed product tax) attributes
305335

306336
The **Stores** > Settings > **Configuration** > **Sales** > **Tax** > **Fixed Product Taxes** panel contains several fields that determine how to display fixed product tax (FPT) values and descriptions. Use the following attributes to determine the values of the **Fixed Product Taxes** fields. These attributes are defined in the `WeeeGraphQl` module.

0 commit comments

Comments
 (0)