@graphcommerce/docs 10.0.0-canary.66 → 10.0.0-canary.67
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -0
- package/framework/config.md +160 -94
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/framework/config.md
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
<!-- Automatically generated from Config.graphqls -->
|
|
2
|
+
|
|
2
3
|
### DatalayerConfig
|
|
3
4
|
|
|
4
5
|
GoogleDatalayerConfig to allow enabling certain aspects of the datalayer
|
|
@@ -9,20 +10,29 @@ Enable core web vitals tracking for GraphCommerce
|
|
|
9
10
|
|
|
10
11
|
# GraphCommerce configuration system
|
|
11
12
|
|
|
12
|
-
Global GraphCommerce configuration can be configured in your
|
|
13
|
-
in the root of your project and are automatically
|
|
13
|
+
Global GraphCommerce configuration can be configured in your
|
|
14
|
+
`graphcommerce.config.js` file in the root of your project and are automatically
|
|
15
|
+
validated on startup.
|
|
14
16
|
|
|
15
17
|
## Configuring with the configuration file.
|
|
16
18
|
|
|
17
|
-
The configuration file is a javascript file that exports a `GraphCommerceConfig`
|
|
19
|
+
The configuration file is a javascript file that exports a `GraphCommerceConfig`
|
|
20
|
+
object. See graphcommerce.config.js.example for an example.
|
|
18
21
|
|
|
19
22
|
## Using configuration
|
|
20
23
|
|
|
21
|
-
Configuration can be accessed in your project with the
|
|
24
|
+
Configuration can be accessed in your project with the
|
|
25
|
+
`import.meta.graphCommerce` object.
|
|
22
26
|
|
|
23
27
|
```tsx
|
|
24
|
-
import { storefrontAll, storefrontConfig, storefrontConfigDefault, useStorefrontConfig } from '@graphcommerce/next-ui'
|
|
25
28
|
import { cartDisplayPricesInclTax } from '@graphcommerce/next-config/config'
|
|
29
|
+
import {
|
|
30
|
+
storefrontAll,
|
|
31
|
+
storefrontConfig,
|
|
32
|
+
storefrontConfigDefault,
|
|
33
|
+
useStorefrontConfig,
|
|
34
|
+
} from '@graphcommerce/next-ui'
|
|
35
|
+
|
|
26
36
|
// Accessing a global value
|
|
27
37
|
const globalConf = cartDisplayPricesInclTax
|
|
28
38
|
|
|
@@ -50,25 +60,28 @@ endpoint: '{graphCommerce.magentoEndpoint}'
|
|
|
50
60
|
|
|
51
61
|
## Environment variables to override configuration
|
|
52
62
|
|
|
53
|
-
Configuration values can be overwriten by environment variables, with the
|
|
63
|
+
Configuration values can be overwriten by environment variables, with the
|
|
64
|
+
following rules:
|
|
65
|
+
|
|
54
66
|
- Convert from camelCase to `SCREAMING_SNAKE_CASE`
|
|
55
67
|
- Prefix with `GC_`
|
|
56
68
|
- Arrays can be indexed with `_0`, `_1`, `_2`, etc.
|
|
57
69
|
- Objects can be accessed with `_<key>`.
|
|
58
70
|
|
|
59
71
|
Examples:
|
|
72
|
+
|
|
60
73
|
- `limitSsg` -> `GC_LIMIT_SSG="1"`
|
|
61
74
|
- `storefront[0].locale` -> `GC_STOREFRONT_0_LOCALE="en"`
|
|
62
75
|
- `debug.pluginStatus` -> `GC_DEBUG_PLUGIN_STATUS="1"`
|
|
63
76
|
|
|
64
|
-
|
|
65
77
|
## Exporting current configuration to environment variables
|
|
66
78
|
|
|
67
79
|
You can export configuration by running `yarn graphcommerce export-config`
|
|
68
80
|
|
|
69
81
|
## Extending the configuration in your project
|
|
70
82
|
|
|
71
|
-
Create a graphql/Config.graphqls file in your project and extend the
|
|
83
|
+
Create a graphql/Config.graphqls file in your project and extend the
|
|
84
|
+
GraphCommerceConfig, GraphCommerceStorefrontConfig inputs to add configuration.
|
|
72
85
|
|
|
73
86
|
```graphql
|
|
74
87
|
extend input GraphCommerceConfig {
|
|
@@ -90,6 +103,7 @@ Below is a list of all possible configurations that can be set by GraphCommerce.
|
|
|
90
103
|
The canonical base URL is used for SEO purposes.
|
|
91
104
|
|
|
92
105
|
Examples:
|
|
106
|
+
|
|
93
107
|
- https://example.com
|
|
94
108
|
- https://example.com/en
|
|
95
109
|
- https://example.com/en-US
|
|
@@ -98,7 +112,8 @@ Examples:
|
|
|
98
112
|
|
|
99
113
|
The Hygraph endpoint.
|
|
100
114
|
|
|
101
|
-
> Read-only endpoint that allows low latency and high read-throughput content
|
|
115
|
+
> Read-only endpoint that allows low latency and high read-throughput content
|
|
116
|
+
> delivery.
|
|
102
117
|
|
|
103
118
|
Project settings -> API Access -> High Performance Read-only Content API
|
|
104
119
|
|
|
@@ -107,6 +122,7 @@ Project settings -> API Access -> High Performance Read-only Content API
|
|
|
107
122
|
GraphQL Magento endpoint.
|
|
108
123
|
|
|
109
124
|
Examples:
|
|
125
|
+
|
|
110
126
|
- https://magento2.test/graphql
|
|
111
127
|
|
|
112
128
|
#### magentoVersion: number (required)
|
|
@@ -125,7 +141,8 @@ Configuration for the SidebarGallery component
|
|
|
125
141
|
|
|
126
142
|
#### cartDisplayPricesInclTax: boolean
|
|
127
143
|
|
|
128
|
-
Due to a limitation of the GraphQL API it is not possible to determine if a cart
|
|
144
|
+
Due to a limitation of the GraphQL API it is not possible to determine if a cart
|
|
145
|
+
should be displayed including or excluding tax.
|
|
129
146
|
|
|
130
147
|
When Magento's StoreConfig adds this value, this can be replaced.
|
|
131
148
|
|
|
@@ -135,25 +152,30 @@ Use compare functionality
|
|
|
135
152
|
|
|
136
153
|
#### compareVariant: CHECKBOX | ICON = `ICON`
|
|
137
154
|
|
|
138
|
-
By default the compare feature is denoted with a 'compare ICON' (2 arrows facing
|
|
139
|
-
This may be fine for experienced users, but for more clarity it's
|
|
155
|
+
By default the compare feature is denoted with a 'compare ICON' (2 arrows facing
|
|
156
|
+
one another). This may be fine for experienced users, but for more clarity it's
|
|
157
|
+
also possible to present the compare feature as a CHECKBOX accompanied by the
|
|
158
|
+
'Compare' label
|
|
140
159
|
|
|
141
160
|
#### configurableVariantForSimple: boolean = `false`
|
|
142
161
|
|
|
143
|
-
If a simple product is part of a Configurable product page, should the simple
|
|
144
|
-
rendered as a configured option of the configurable product page?
|
|
162
|
+
If a simple product is part of a Configurable product page, should the simple
|
|
163
|
+
product be rendered as a configured option of the configurable product page?
|
|
145
164
|
|
|
146
165
|
How does this work:
|
|
147
166
|
|
|
148
|
-
When the `products(filters: { url_key: { eq: 'simple-product' } }) { ... }`
|
|
149
|
-
Magento also returns the Simple product and the Configurable
|
|
167
|
+
When the `products(filters: { url_key: { eq: 'simple-product' } }) { ... }`
|
|
168
|
+
query is ran, Magento also returns the Simple product and the Configurable
|
|
169
|
+
product the simple belongs to.
|
|
150
170
|
|
|
151
|
-
If that is the case we render the configurable product page instead of the
|
|
152
|
-
the options to select the simple product are
|
|
171
|
+
If that is the case we render the configurable product page instead of the
|
|
172
|
+
simple product page but the options to select the simple product are
|
|
173
|
+
pre-selected.
|
|
153
174
|
|
|
154
175
|
#### configurableVariantValues: [MagentoConfigurableVariantValues](#MagentoConfigurableVariantValues) = `{ content: true, url: true }`
|
|
155
176
|
|
|
156
|
-
When a user selects a variant, it will switch the values on the configurable
|
|
177
|
+
When a user selects a variant, it will switch the values on the configurable
|
|
178
|
+
page with the values of the configured variant.
|
|
157
179
|
|
|
158
180
|
Enabling options here will allow switching of those variants.
|
|
159
181
|
|
|
@@ -167,13 +189,16 @@ Configures the max width of the shell (header, footer, overlays, etc.)
|
|
|
167
189
|
|
|
168
190
|
#### crossSellsHideCartItems: boolean = `false`
|
|
169
191
|
|
|
170
|
-
Determines if cross sell items should be shown when the user already has the
|
|
192
|
+
Determines if cross sell items should be shown when the user already has the
|
|
193
|
+
product in their cart. This will result in a product will popping off the screen
|
|
194
|
+
when you add it to the cart.
|
|
171
195
|
|
|
172
196
|
Default: 'false'
|
|
173
197
|
|
|
174
198
|
#### crossSellsRedirectItems: boolean = `false`
|
|
175
199
|
|
|
176
|
-
Determines if, after adding a cross-sell item to the cart, the user should be
|
|
200
|
+
Determines if, after adding a cross-sell item to the cart, the user should be
|
|
201
|
+
redirected to the cross-sell items of the product they just added.
|
|
177
202
|
|
|
178
203
|
Default: 'false'
|
|
179
204
|
|
|
@@ -184,6 +209,7 @@ Enables the shipping notes field in the checkout
|
|
|
184
209
|
#### customerCompanyFieldsEnable: boolean
|
|
185
210
|
|
|
186
211
|
Enables company fields inside the checkout:
|
|
212
|
+
|
|
187
213
|
- Company name
|
|
188
214
|
- VAT ID
|
|
189
215
|
|
|
@@ -193,7 +219,9 @@ Enable customer account deletion through the account section
|
|
|
193
219
|
|
|
194
220
|
#### customerXMagentoCacheIdDisable: boolean
|
|
195
221
|
|
|
196
|
-
X-Magento-Cache-Id allows Varnish to cache requests that are made in the browser
|
|
222
|
+
X-Magento-Cache-Id allows Varnish to cache requests that are made in the browser
|
|
223
|
+
while users are logged in. For example the products query can now be cached for
|
|
224
|
+
logged in users.
|
|
197
225
|
|
|
198
226
|
This can be disabled when Varnish is running out of available memory.
|
|
199
227
|
|
|
@@ -215,11 +243,12 @@ Enables some demo specific code that is probably not useful for a project:
|
|
|
215
243
|
|
|
216
244
|
#### enableGuestCheckoutLogin: boolean
|
|
217
245
|
|
|
218
|
-
Enable Guest Checkout Login:
|
|
219
|
-
|
|
220
|
-
the
|
|
246
|
+
Enable Guest Checkout Login: During customer login, GraphCommerce queries
|
|
247
|
+
Magento to determine whether the customer account already exists or not. If not,
|
|
248
|
+
the sign-up form is shown instead.
|
|
221
249
|
|
|
222
|
-
For Magento versions, 2.4.7, 2.4.6-p1 and up, 2.4.5-p3 and up, 2.4.4-p4 and up,
|
|
250
|
+
For Magento versions, 2.4.7, 2.4.6-p1 and up, 2.4.5-p3 and up, 2.4.4-p4 and up,
|
|
251
|
+
the following setting must be set to Yes
|
|
223
252
|
|
|
224
253
|
`Stores -> Configuration -> Sales -> Checkout -> Checkout Options -> Enable Guest Checkout Login`
|
|
225
254
|
|
|
@@ -237,38 +266,42 @@ To create an assetlinks.json file for the Android app.
|
|
|
237
266
|
|
|
238
267
|
#### googleRecaptchaKey: string
|
|
239
268
|
|
|
240
|
-
Google reCAPTCHA site key.
|
|
241
|
-
|
|
269
|
+
Google reCAPTCHA site key. When using reCAPTCHA, this value is required, even if
|
|
270
|
+
you are configuring different values for each locale.
|
|
242
271
|
|
|
243
|
-
Get a site key and a secret key from
|
|
272
|
+
Get a site key and a secret key from
|
|
273
|
+
https://developers.google.com/recaptcha/docs/v3
|
|
244
274
|
|
|
245
|
-
The secret key should be added in the Magento admin panel (Stores >
|
|
246
|
-
|
|
275
|
+
The secret key should be added in the Magento admin panel (Stores >
|
|
276
|
+
Configuration > Security > Google ReCAPTCHA Storefront > reCAPTCHA v3 Invisible)
|
|
277
|
+
ReCAPTCHA can then be enabled/disabled for the different forms, separately
|
|
278
|
+
(Stores > Configuration > Security > Google ReCAPTCHA Storefront > Storefront)
|
|
247
279
|
|
|
248
280
|
#### googleTagmanagerId: string
|
|
249
281
|
|
|
250
282
|
The Google Tagmanager ID to be used on the site.
|
|
251
283
|
|
|
252
|
-
This value is required even if you are configuring different values for each
|
|
284
|
+
This value is required even if you are configuring different values for each
|
|
285
|
+
locale.
|
|
253
286
|
|
|
254
287
|
#### graphqlMeshEditMode: boolean = `false`
|
|
255
288
|
|
|
256
|
-
The GraphQL Mesh will be loaded once and any modifications to resolvers will be
|
|
257
|
-
new resolvers this should be set to true.
|
|
289
|
+
The GraphQL Mesh will be loaded once and any modifications to resolvers will be
|
|
290
|
+
ignored. When developing new resolvers this should be set to true.
|
|
258
291
|
|
|
259
292
|
#### hygraphManagementApi: string
|
|
260
293
|
|
|
261
294
|
Hygraph Management API. **Only used for migrations.**
|
|
262
295
|
|
|
263
|
-
Optional: If the hygraphEndpoint is configured with the 'High Performance
|
|
264
|
-
API', this field is not required.
|
|
296
|
+
Optional: If the hygraphEndpoint is configured with the 'High Performance
|
|
297
|
+
Content API', this field is not required.
|
|
265
298
|
|
|
266
299
|
#### hygraphProjectId: string
|
|
267
300
|
|
|
268
301
|
Hygraph Project ID. **Only used for migrations.**
|
|
269
302
|
|
|
270
|
-
Optional: If the hygraphEndpoint is configured with the 'High Performance
|
|
271
|
-
API', this field is not required.
|
|
303
|
+
Optional: If the hygraphEndpoint is configured with the 'High Performance
|
|
304
|
+
Content API', this field is not required.
|
|
272
305
|
|
|
273
306
|
#### hygraphWriteAccessToken: string
|
|
274
307
|
|
|
@@ -276,27 +309,30 @@ Hygraph Management SDK Authorization Token. **Only used for migrations.**
|
|
|
276
309
|
|
|
277
310
|
Project settings -> API Access -> Permanent Auth Tokens
|
|
278
311
|
|
|
279
|
-
1. Click
|
|
312
|
+
1. Click 'Add token' and give it a name, something like 'GraphCommerce Write
|
|
313
|
+
Access Token' and keep stage on 'Published'.
|
|
280
314
|
2. Under 'Management API', click 'Yes, Initialize defaults'
|
|
281
|
-
3. Click 'Edit Permissions' and enable: 'Update' and 'Delete' permissions for
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
315
|
+
3. Click 'Edit Permissions' and enable: 'Update' and 'Delete' permissions for
|
|
316
|
+
'models', 'enumerations', 'fields', 'components' and 'sources'
|
|
317
|
+
|
|
318
|
+
- Update existing models
|
|
319
|
+
- Delete existing models
|
|
320
|
+
- Update existing fields
|
|
321
|
+
- Delete existing fields
|
|
322
|
+
- Update existing enumerations
|
|
323
|
+
- Delete existing enumerations
|
|
324
|
+
- Update existing components
|
|
325
|
+
- Delete existing components
|
|
326
|
+
- Update remote sources
|
|
327
|
+
- Delete remote sources
|
|
328
|
+
- Read existing environments
|
|
329
|
+
- Read public content views
|
|
330
|
+
- Create public content views
|
|
331
|
+
- Update public content views
|
|
332
|
+
- Delete public content views
|
|
333
|
+
- Can see schema view
|
|
334
|
+
|
|
335
|
+
```bash
|
|
300
336
|
GC_HYGRAPH_WRITE_ACCESS_TOKEN="AccessTokenFromHygraph"
|
|
301
337
|
yarn graphcommerce hygraph-migrate
|
|
302
338
|
```
|
|
@@ -305,11 +341,14 @@ yarn graphcommerce hygraph-migrate
|
|
|
305
341
|
|
|
306
342
|
Limit the static generation of SSG when building.
|
|
307
343
|
|
|
308
|
-
By default GraphCommerce will statically generate all product and category pages
|
|
344
|
+
By default GraphCommerce will statically generate all product and category pages
|
|
345
|
+
during build. This can take quite a long time, to skip this step set this value
|
|
346
|
+
to true.
|
|
309
347
|
|
|
310
348
|
#### permissions: [GraphCommercePermissions](#GraphCommercePermissions)
|
|
311
349
|
|
|
312
|
-
Allows the option to require login or completely disable certain sections of the
|
|
350
|
+
Allows the option to require login or completely disable certain sections of the
|
|
351
|
+
site, can be overriden per storeview with the storefrontConfig
|
|
313
352
|
|
|
314
353
|
#### previewSecret: string
|
|
315
354
|
|
|
@@ -317,9 +356,9 @@ To enable next.js' preview mode, configure the secret you'd like to use.
|
|
|
317
356
|
|
|
318
357
|
#### productFiltersLayout: DEFAULT | SIDEBAR = `DEFAULT`
|
|
319
358
|
|
|
320
|
-
Layout how the filters are rendered.
|
|
321
|
-
|
|
322
|
-
|
|
359
|
+
Layout how the filters are rendered. DEFAULT: Will be rendered as horzontal
|
|
360
|
+
chips on desktop and mobile SIDEBAR: Will be rendered as a sidebar on desktop
|
|
361
|
+
and horizontal chips on mobile
|
|
323
362
|
|
|
324
363
|
#### productFiltersPro: boolean
|
|
325
364
|
|
|
@@ -329,15 +368,14 @@ Product filters with better UI for mobile and desktop.
|
|
|
329
368
|
|
|
330
369
|
Pagination variant for the product listings.
|
|
331
370
|
|
|
332
|
-
COMPACT means: "< Page X of Y >"
|
|
333
|
-
EXTENDED means: "< 1 2 ... 4 [5] 6 ... 10 11 >"
|
|
371
|
+
COMPACT means: "< Page X of Y >" EXTENDED means: "< 1 2 ... 4 [5] 6 ... 10 11 >"
|
|
334
372
|
|
|
335
373
|
#### productRoute: string
|
|
336
374
|
|
|
337
|
-
By default we route products to /p/[url] but you can change this to
|
|
375
|
+
By default we route products to /p/[url] but you can change this to
|
|
376
|
+
/product/[url] if you wish.
|
|
338
377
|
|
|
339
|
-
Default: '/p/'
|
|
340
|
-
Example: '/product/'
|
|
378
|
+
Default: '/p/' Example: '/product/'
|
|
341
379
|
|
|
342
380
|
#### recentlyViewedProducts: [RecentlyViewedProductsConfig](#RecentlyViewedProductsConfig)
|
|
343
381
|
|
|
@@ -345,8 +383,8 @@ Settings for recently viewed products
|
|
|
345
383
|
|
|
346
384
|
#### robotsAllow: boolean
|
|
347
385
|
|
|
348
|
-
Allow the site to be indexed by search engines.
|
|
349
|
-
|
|
386
|
+
Allow the site to be indexed by search engines. If false, the robots.txt file
|
|
387
|
+
will be set to disallow all.
|
|
350
388
|
|
|
351
389
|
#### sidebarGallery: [SidebarGalleryConfig](#SidebarGalleryConfig)
|
|
352
390
|
|
|
@@ -378,22 +416,27 @@ Enable debugging interface to debug sessions
|
|
|
378
416
|
|
|
379
417
|
#### webpackCircularDependencyPlugin: boolean
|
|
380
418
|
|
|
381
|
-
Cyclic dependencies can cause memory issues and other strange bugs.
|
|
382
|
-
|
|
419
|
+
Cyclic dependencies can cause memory issues and other strange bugs. This plugin
|
|
420
|
+
will warn you when it detects a cyclic dependency.
|
|
383
421
|
|
|
384
422
|
When running into memory issues, it can be useful to enable this plugin.
|
|
385
423
|
|
|
386
424
|
#### webpackDuplicatesPlugin: boolean
|
|
387
425
|
|
|
388
|
-
When updating packages it can happen that the same package is included with
|
|
426
|
+
When updating packages it can happen that the same package is included with
|
|
427
|
+
different versions in the same project.
|
|
389
428
|
|
|
390
429
|
Issues that this can cause are:
|
|
391
|
-
|
|
392
|
-
- The
|
|
430
|
+
|
|
431
|
+
- The same package is included multiple times in the bundle, increasing the
|
|
432
|
+
bundle size.
|
|
433
|
+
- The Typescript types of the package are not compatible with each other,
|
|
434
|
+
causing Typescript errors.
|
|
393
435
|
|
|
394
436
|
### GraphCommerceGooglePlaystoreConfig
|
|
395
437
|
|
|
396
|
-
See
|
|
438
|
+
See
|
|
439
|
+
https://developer.android.com/training/app-links/verify-android-applinks#web-assoc
|
|
397
440
|
|
|
398
441
|
#### packageName: string (required)
|
|
399
442
|
|
|
@@ -407,17 +450,24 @@ The sha256 certificate fingerprint of the Android app.
|
|
|
407
450
|
|
|
408
451
|
Permissions input
|
|
409
452
|
|
|
453
|
+
#### billingAddress: EDITABLE | READONLY
|
|
454
|
+
|
|
455
|
+
Allows customers to change their billing address or locks it down.
|
|
456
|
+
|
|
410
457
|
#### cart: CUSTOMER_ONLY | DISABLED | ENABLED
|
|
411
458
|
|
|
412
|
-
Changes the availability of the add to cart buttons and the cart page to either
|
|
459
|
+
Changes the availability of the add to cart buttons and the cart page to either
|
|
460
|
+
customer only or completely disables it.
|
|
413
461
|
|
|
414
462
|
#### checkout: CUSTOMER_ONLY | DISABLED | ENABLED
|
|
415
463
|
|
|
416
|
-
Changes the availability of the checkout to either customer only or completely
|
|
464
|
+
Changes the availability of the checkout to either customer only or completely
|
|
465
|
+
disables it.
|
|
417
466
|
|
|
418
467
|
#### customerAccount: DISABLED | DISABLE_REGISTRATION | ENABLED
|
|
419
468
|
|
|
420
|
-
Enables / disabled the account section of the website. DISABLE_REGISTRATION will
|
|
469
|
+
Enables / disabled the account section of the website. DISABLE_REGISTRATION will
|
|
470
|
+
only disable the registration page.
|
|
421
471
|
|
|
422
472
|
#### website: ENABLED
|
|
423
473
|
|
|
@@ -429,9 +479,12 @@ All storefront configuration for the project
|
|
|
429
479
|
|
|
430
480
|
#### locale: string (required)
|
|
431
481
|
|
|
432
|
-
Must be a
|
|
482
|
+
Must be a
|
|
483
|
+
[locale string](https://www.unicode.org/reports/tr35/tr35-59/tr35.html#Identifiers)
|
|
484
|
+
for automatic redirects to work.
|
|
433
485
|
|
|
434
|
-
This value can be used as a sub-path identifier only, make sure linguiLocale is
|
|
486
|
+
This value can be used as a sub-path identifier only, make sure linguiLocale is
|
|
487
|
+
configured for each URL.
|
|
435
488
|
|
|
436
489
|
#### magentoStoreCode: string (required)
|
|
437
490
|
|
|
@@ -440,6 +493,7 @@ Magento store code.
|
|
|
440
493
|
Stores => All Stores => [Store View] => Store View Code
|
|
441
494
|
|
|
442
495
|
Examples:
|
|
496
|
+
|
|
443
497
|
- default
|
|
444
498
|
- en-us
|
|
445
499
|
- b2b-us
|
|
@@ -449,23 +503,27 @@ Examples:
|
|
|
449
503
|
The canonical base URL is used for SEO purposes.
|
|
450
504
|
|
|
451
505
|
Examples:
|
|
506
|
+
|
|
452
507
|
- https://example.com
|
|
453
508
|
- https://example.com/en
|
|
454
509
|
- https://example.com/en-US
|
|
455
510
|
|
|
456
511
|
#### cartDisplayPricesInclTax: boolean
|
|
457
512
|
|
|
458
|
-
Due to a limitation of the GraphQL API it is not possible to determine if a cart
|
|
513
|
+
Due to a limitation of the GraphQL API it is not possible to determine if a cart
|
|
514
|
+
should be displayed including or excluding tax.
|
|
459
515
|
|
|
460
516
|
#### customerCompanyFieldsEnable: boolean
|
|
461
517
|
|
|
462
518
|
Enables company fields inside the checkout:
|
|
519
|
+
|
|
463
520
|
- Company name
|
|
464
521
|
- VAT ID
|
|
465
522
|
|
|
466
523
|
#### defaultLocale: boolean
|
|
467
524
|
|
|
468
525
|
There can only be one entry with defaultLocale set to true.
|
|
526
|
+
|
|
469
527
|
- If there are more, the first one is used.
|
|
470
528
|
- If there is none, the first entry is used.
|
|
471
529
|
|
|
@@ -489,37 +547,44 @@ The Google Tagmanager ID to be used per locale.
|
|
|
489
547
|
|
|
490
548
|
#### hygraphLocales: string[]
|
|
491
549
|
|
|
492
|
-
Add a gcms-locales header to make sure queries return in a certain language, can
|
|
550
|
+
Add a gcms-locales header to make sure queries return in a certain language, can
|
|
551
|
+
be an array to define fallbacks.
|
|
493
552
|
|
|
494
553
|
#### linguiLocale: string
|
|
495
554
|
|
|
496
|
-
Custom locale used to load the .po files. Must be a valid locale, also used for
|
|
555
|
+
Custom locale used to load the .po files. Must be a valid locale, also used for
|
|
556
|
+
Intl functions.
|
|
497
557
|
|
|
498
558
|
#### permissions: [GraphCommercePermissions](#GraphCommercePermissions)
|
|
499
559
|
|
|
500
|
-
Allows the option to require login or completely disable certain sections of the
|
|
560
|
+
Allows the option to require login or completely disable certain sections of the
|
|
561
|
+
site on a per store basis
|
|
501
562
|
|
|
502
563
|
#### robotsAllow: boolean
|
|
503
564
|
|
|
504
|
-
Allow the site to be indexed by search engines.
|
|
505
|
-
|
|
565
|
+
Allow the site to be indexed by search engines. If false, the robots.txt file
|
|
566
|
+
will be set to disallow all.
|
|
506
567
|
|
|
507
568
|
### MagentoConfigurableVariantValues
|
|
508
569
|
|
|
509
|
-
Options to configure which values will be replaced when a variant is selected on
|
|
570
|
+
Options to configure which values will be replaced when a variant is selected on
|
|
571
|
+
the product page.
|
|
510
572
|
|
|
511
573
|
#### content: boolean
|
|
512
574
|
|
|
513
|
-
Use the name, description, short description and meta data from the configured
|
|
575
|
+
Use the name, description, short description and meta data from the configured
|
|
576
|
+
variant
|
|
514
577
|
|
|
515
578
|
#### gallery: boolean
|
|
516
579
|
|
|
517
|
-
This option enables the automatic update of product gallery images on the
|
|
518
|
-
|
|
580
|
+
This option enables the automatic update of product gallery images on the
|
|
581
|
+
product page when a variant is selected, provided that the gallery images for
|
|
582
|
+
the selected variant differ from the currently displayed images.
|
|
519
583
|
|
|
520
584
|
#### url: boolean
|
|
521
585
|
|
|
522
|
-
When a variant is selected the URL of the product will be changed in the address
|
|
586
|
+
When a variant is selected the URL of the product will be changed in the address
|
|
587
|
+
bar.
|
|
523
588
|
|
|
524
589
|
This only happens when the actual variant is can be accessed by the URL.
|
|
525
590
|
|
|
@@ -537,8 +602,9 @@ Number of recently viewed products to be stored in localStorage
|
|
|
537
602
|
|
|
538
603
|
### SidebarGalleryConfig
|
|
539
604
|
|
|
540
|
-
SidebarGalleryConfig will contain all configuration values for the Sidebar
|
|
605
|
+
SidebarGalleryConfig will contain all configuration values for the Sidebar
|
|
606
|
+
Gallery component.
|
|
541
607
|
|
|
542
608
|
#### paginationVariant: DOTS | THUMBNAILS_BOTTOM
|
|
543
609
|
|
|
544
|
-
Variant used for the pagination
|
|
610
|
+
Variant used for the pagination
|
package/package.json
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"name": "@graphcommerce/docs",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/docs",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce/docs",
|
|
5
|
-
"version": "10.0.0-canary.
|
|
5
|
+
"version": "10.0.0-canary.67",
|
|
6
6
|
"sideEffects": true,
|
|
7
7
|
"peerDependencies": {
|
|
8
|
-
"@graphcommerce/prettier-config-pwa": "^10.0.0-canary.
|
|
8
|
+
"@graphcommerce/prettier-config-pwa": "^10.0.0-canary.67"
|
|
9
9
|
},
|
|
10
10
|
"prettier": "@graphcommerce/prettier-config-pwa"
|
|
11
11
|
}
|