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

Commit

Permalink
#7364: Update the storeConfig query to include the new attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
atwixfirster committed Jun 19, 2020
1 parent 7769f34 commit e9dc84a
Showing 1 changed file with 42 additions and 12 deletions.
54 changes: 42 additions & 12 deletions src/guides/v2.4/graphql/queries/store-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ The `storeConfig` query defines information about a store's configuration. You c

### Query a store's configuration

The following call returns all details of a store's configuration.
There are `base` and `extended` store configuration settings which `storeConfig` query may return. The following call returns all `base` details of a store's configuration.

**Request:**

Expand All @@ -36,11 +36,6 @@ The following call returns all details of a store's configuration.
secure_base_link_url
secure_base_static_url
secure_base_media_url
store_name
send_friend {
enabled_for_customers
enabled_for_guests
}
}
}
```
Expand All @@ -66,12 +61,7 @@ The following call returns all details of a store's configuration.
"secure_base_url": "http://magento2.vagrant193/",
"secure_base_link_url": "http://magento2.vagrant193/",
"secure_base_static_url": "http://magento2.vagrant193/pub/static/version1536249714/",
"secure_base_media_url": "http://magento2.vagrant193/pub/media/",
"store_name": "My Store",
"send_friend": {
"enabled_for_customers": true,
"enabled_for_guests": false
}
"secure_base_media_url": "http://magento2.vagrant193/pub/media/"
}
}
}
Expand Down Expand Up @@ -185,6 +175,36 @@ The following query returns information about the store's catalog configuration.
}
```

### Query a store's Customer configuration

The following query returns information about the store's customer configuration.

**Request:**

```graphql
{
storeConfig {
autocomplete_on_storefront,
minimum_password_length,
required_character_classes_number,
}
}
```

**Response:**

```json
{
"data": {
"storeConfig": {
"autocomplete_on_storefront": true,
"minimum_password_length": "6",
"required_character_classes_number": "2"
}
}
}
```

### Query a store's fixed product tax configuration

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

### Supported Catalog attributes

Use the `customer` attributes to retrieve information about the store's customer settings. These attributes are defined in the `CustomerGraphQl` module.

Attribute | Data Type | Description | Configuration path | Example
--- | --- | ---
`autocomplete_on_storefront` | Boolean | Enable autocomplete on login and forgot password forms. | customer/password/autocomplete_on_storefront | true
`minimum_password_length` | String | The minimum number of characters required for a valid password. | customer/password/minimum_password_length | 6
`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

### Supported WEEE (fixed product tax) attributes

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.
Expand Down

0 comments on commit e9dc84a

Please sign in to comment.