@graphcommerce/docs 7.1.0-canary.8 → 8.0.0-canary.40
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 +76 -0
- package/contributing.md +1 -1
- package/framework/config.md +84 -48
- package/framework/plugins-react.md +1 -1
- package/magento/known-issues.md +54 -0
- package/magento/patches/cart-error-category.patch +46 -0
- package/magento/readme.md +7 -10
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,81 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 8.0.0-canary.40
|
|
4
|
+
|
|
5
|
+
## 7.1.0-canary.39
|
|
6
|
+
|
|
7
|
+
## 7.1.0-canary.38
|
|
8
|
+
|
|
9
|
+
## 7.1.0-canary.37
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#2112](https://github.com/graphcommerce-org/graphcommerce/pull/2112) [`15a203737`](https://github.com/graphcommerce-org/graphcommerce/commit/15a2037372cd615602d3e2f3deedba9766fc172c) - Make the "Search" string translatable and fix typo. ([@carlocarels90](https://github.com/carlocarels90))
|
|
14
|
+
|
|
15
|
+
## 7.1.0-canary.36
|
|
16
|
+
|
|
17
|
+
## 7.1.0-canary.35
|
|
18
|
+
|
|
19
|
+
## 7.1.0-canary.34
|
|
20
|
+
|
|
21
|
+
## 7.1.0-canary.33
|
|
22
|
+
|
|
23
|
+
## 7.1.0-canary.32
|
|
24
|
+
|
|
25
|
+
## 7.1.0-canary.31
|
|
26
|
+
|
|
27
|
+
### Minor Changes
|
|
28
|
+
|
|
29
|
+
- [#2106](https://github.com/graphcommerce-org/graphcommerce/pull/2106) [`9f8c3cac2`](https://github.com/graphcommerce-org/graphcommerce/commit/9f8c3cac214006315055f37cf8d4a783eb99a7ec) - Split off Magento known issues to separate page ([@hnsr](https://github.com/hnsr))
|
|
30
|
+
|
|
31
|
+
## 7.1.0-canary.30
|
|
32
|
+
|
|
33
|
+
## 7.1.0-canary.29
|
|
34
|
+
|
|
35
|
+
### Patch Changes
|
|
36
|
+
|
|
37
|
+
- [#2104](https://github.com/graphcommerce-org/graphcommerce/pull/2104) [`d0f1f5a2d`](https://github.com/graphcommerce-org/graphcommerce/commit/d0f1f5a2d1380d1c3931e23218924d5e8b1fc60d) - Document workaround/patch for broken cart error handling with Magento 2.4.6. ([@hnsr](https://github.com/hnsr))
|
|
38
|
+
|
|
39
|
+
## 7.1.0-canary.28
|
|
40
|
+
|
|
41
|
+
## 7.1.0-canary.27
|
|
42
|
+
|
|
43
|
+
## 7.1.0-canary.26
|
|
44
|
+
|
|
45
|
+
## 7.1.0-canary.25
|
|
46
|
+
|
|
47
|
+
## 7.1.0-canary.24
|
|
48
|
+
|
|
49
|
+
## 7.1.0-canary.23
|
|
50
|
+
|
|
51
|
+
## 7.1.0-canary.22
|
|
52
|
+
|
|
53
|
+
## 7.1.0-canary.21
|
|
54
|
+
|
|
55
|
+
## 7.1.0-canary.20
|
|
56
|
+
|
|
57
|
+
## 7.1.0-canary.19
|
|
58
|
+
|
|
59
|
+
## 7.1.0-canary.18
|
|
60
|
+
|
|
61
|
+
## 7.1.0-canary.17
|
|
62
|
+
|
|
63
|
+
## 7.1.0-canary.16
|
|
64
|
+
|
|
65
|
+
## 7.1.0-canary.15
|
|
66
|
+
|
|
67
|
+
## 7.1.0-canary.14
|
|
68
|
+
|
|
69
|
+
## 7.1.0-canary.13
|
|
70
|
+
|
|
71
|
+
## 7.1.0-canary.12
|
|
72
|
+
|
|
73
|
+
## 7.1.0-canary.11
|
|
74
|
+
|
|
75
|
+
## 7.1.0-canary.10
|
|
76
|
+
|
|
77
|
+
## 7.1.0-canary.9
|
|
78
|
+
|
|
3
79
|
## 7.1.0-canary.8
|
|
4
80
|
|
|
5
81
|
## 7.0.2-canary.7
|
package/contributing.md
CHANGED
|
@@ -7,7 +7,7 @@ process easy and effective for everyone involved.
|
|
|
7
7
|
|
|
8
8
|
### Bug reports
|
|
9
9
|
|
|
10
|
-
Well-written,
|
|
10
|
+
Well-written, through bug reports are a great way to contribute to the project.
|
|
11
11
|
Before raising a new issue, please check our
|
|
12
12
|
[issues list ↗](https://github.com/graphcommerce-org/graphcommerce/issues) to
|
|
13
13
|
determine whether the issue you encountered has already been reported.
|
package/framework/config.md
CHANGED
|
@@ -77,7 +77,7 @@ Below is a list of all possible configurations that can be set by GraphCommerce.
|
|
|
77
77
|
|
|
78
78
|
### GraphCommerceConfig
|
|
79
79
|
|
|
80
|
-
####
|
|
80
|
+
#### canonicalBaseUrl: string (required)
|
|
81
81
|
|
|
82
82
|
The canonical base URL is used for SEO purposes.
|
|
83
83
|
|
|
@@ -86,7 +86,7 @@ Examples:
|
|
|
86
86
|
- https://example.com/en
|
|
87
87
|
- https://example.com/en-US
|
|
88
88
|
|
|
89
|
-
####
|
|
89
|
+
#### hygraphEndpoint: string (required)
|
|
90
90
|
|
|
91
91
|
The HyGraph endpoint.
|
|
92
92
|
|
|
@@ -94,33 +94,33 @@ The HyGraph endpoint.
|
|
|
94
94
|
|
|
95
95
|
Project settings -> API Access -> High Performance Read-only Content API
|
|
96
96
|
|
|
97
|
-
####
|
|
97
|
+
#### magentoEndpoint: string (required)
|
|
98
98
|
|
|
99
99
|
GraphQL Magento endpoint.
|
|
100
100
|
|
|
101
101
|
Examples:
|
|
102
102
|
- https://magento2.test/graphql
|
|
103
103
|
|
|
104
|
-
####
|
|
104
|
+
#### storefront: [GraphCommerceStorefrontConfig](#GraphCommerceStorefrontConfig)[] (required)
|
|
105
105
|
|
|
106
106
|
All storefront configuration for the project
|
|
107
107
|
|
|
108
|
-
####
|
|
108
|
+
#### cartDisplayPricesInclTax: boolean
|
|
109
109
|
|
|
110
110
|
Due to a limitation of the GraphQL API it is not possible to determine if a cart should be displayed including or excluding tax.
|
|
111
111
|
|
|
112
112
|
When Magento's StoreConfig adds this value, this can be replaced.
|
|
113
113
|
|
|
114
|
-
####
|
|
114
|
+
#### compare: boolean
|
|
115
115
|
|
|
116
116
|
Use compare functionality
|
|
117
117
|
|
|
118
|
-
####
|
|
118
|
+
#### compareVariant: 'CHECKBOX' | 'ICON' = 'ICON'
|
|
119
119
|
|
|
120
120
|
By default the compare feature is denoted with a 'compare ICON' (2 arrows facing one another).
|
|
121
121
|
This may be fine for experienced users, but for more clarity it's also possible to present the compare feature as a CHECKBOX accompanied by the 'Compare' label
|
|
122
122
|
|
|
123
|
-
####
|
|
123
|
+
#### configurableVariantForSimple: boolean = false
|
|
124
124
|
|
|
125
125
|
If a simple product is part of a Configurable product page, should the simple product be
|
|
126
126
|
rendered as a configured option of the configurable product page?
|
|
@@ -133,13 +133,25 @@ Magento also returns the Simple product and the Configurable product the simple
|
|
|
133
133
|
If that is the case we render the configurable product page instead of the simple product page but
|
|
134
134
|
the options to select the simple product are pre-selected.
|
|
135
135
|
|
|
136
|
-
####
|
|
136
|
+
#### configurableVariantValues: [MagentoConfigurableVariantValues](#MagentoConfigurableVariantValues) = { content: true, url: true }
|
|
137
137
|
|
|
138
138
|
When a user selects a variant, it will switch the values on the configurable page with the values of the configured variant.
|
|
139
139
|
|
|
140
140
|
Enabling options here will allow switching of those variants.
|
|
141
141
|
|
|
142
|
-
####
|
|
142
|
+
#### crossSellsHideCartItems: boolean = false
|
|
143
|
+
|
|
144
|
+
Determines if cross sell items should be shown when the user already has the product in their cart. This will result in a product will popping off the screen when you add it to the cart.
|
|
145
|
+
|
|
146
|
+
Default: 'false'
|
|
147
|
+
|
|
148
|
+
#### crossSellsRedirectItems: boolean = false
|
|
149
|
+
|
|
150
|
+
Determines if, after adding a cross-sell item to the cart, the user should be redirected to the cross-sell items of the product they just added.
|
|
151
|
+
|
|
152
|
+
Default: 'false'
|
|
153
|
+
|
|
154
|
+
#### customerRequireEmailConfirmation: boolean
|
|
143
155
|
|
|
144
156
|
Due to a limitation in the GraphQL API of Magento 2, we need to know if the
|
|
145
157
|
customer requires email confirmation.
|
|
@@ -147,11 +159,11 @@ customer requires email confirmation.
|
|
|
147
159
|
This value should match Magento 2's configuration value for
|
|
148
160
|
`customer/create_account/confirm` and should be removed once we can query
|
|
149
161
|
|
|
150
|
-
####
|
|
162
|
+
#### debug: [GraphCommerceDebugConfig](#GraphCommerceDebugConfig)
|
|
151
163
|
|
|
152
164
|
Debug configuration for GraphCommerce
|
|
153
165
|
|
|
154
|
-
####
|
|
166
|
+
#### demoMode: boolean = true
|
|
155
167
|
|
|
156
168
|
Enables some demo specific code that is probably not useful for a project:
|
|
157
169
|
|
|
@@ -159,7 +171,7 @@ Enables some demo specific code that is probably not useful for a project:
|
|
|
159
171
|
- Adds "dominant_color" attribute swatches to the product list items.
|
|
160
172
|
- Creates a big list items in the product list.
|
|
161
173
|
|
|
162
|
-
####
|
|
174
|
+
#### googleAnalyticsId: string
|
|
163
175
|
|
|
164
176
|
See https://support.google.com/analytics/answer/9539598?hl=en
|
|
165
177
|
|
|
@@ -167,7 +179,7 @@ Provide a value to enable Google Analytics for your store.
|
|
|
167
179
|
|
|
168
180
|
To override the value for a specific locale, configure in i18n config.
|
|
169
181
|
|
|
170
|
-
####
|
|
182
|
+
#### googleRecaptchaKey: string
|
|
171
183
|
|
|
172
184
|
Google reCAPTCHA site key.
|
|
173
185
|
When using reCAPTCHA, this value is required, even if you are configuring different values for each locale.
|
|
@@ -177,17 +189,17 @@ Get a site key and a secret key from https://developers.google.com/recaptcha/doc
|
|
|
177
189
|
The secret key should be added in the Magento admin panel (Stores > Configuration > Security > Google ReCAPTCHA Storefront > reCAPTCHA v3 Invisible)
|
|
178
190
|
ReCAPTCHA can then be enabled/disabled for the different forms, separately (Stores > Configuration > Security > Google ReCAPTCHA Storefront > Storefront)
|
|
179
191
|
|
|
180
|
-
####
|
|
192
|
+
#### googleTagmanagerId: string
|
|
181
193
|
|
|
182
194
|
The Google Tagmanager ID to be used on the site.
|
|
183
195
|
|
|
184
196
|
This value is required even if you are configuring different values for each locale.
|
|
185
197
|
|
|
186
|
-
####
|
|
198
|
+
#### hygraphProjectId: string
|
|
187
199
|
|
|
188
200
|
Hygraph Project ID. **Only used for migrations.**
|
|
189
201
|
|
|
190
|
-
####
|
|
202
|
+
#### hygraphWriteAccessEndpoint: string
|
|
191
203
|
|
|
192
204
|
Content API. **Only used for migrations.**
|
|
193
205
|
|
|
@@ -195,7 +207,7 @@ Content API. **Only used for migrations.**
|
|
|
195
207
|
|
|
196
208
|
Project settings -> API Access -> Content API
|
|
197
209
|
|
|
198
|
-
####
|
|
210
|
+
#### hygraphWriteAccessToken: string
|
|
199
211
|
|
|
200
212
|
Hygraph Management SDK Authorization Token. **Only used for migrations.**
|
|
201
213
|
|
|
@@ -227,7 +239,7 @@ GC_HYGRAPH_WRITE_ACCESS_TOKEN="AccessTokenFromHygraph"
|
|
|
227
239
|
yarn graphcommerce hygraph-migrate
|
|
228
240
|
```
|
|
229
241
|
|
|
230
|
-
####
|
|
242
|
+
#### legacyProductRoute: boolean
|
|
231
243
|
|
|
232
244
|
On older versions of GraphCommerce products would use a product type specific route.
|
|
233
245
|
|
|
@@ -235,45 +247,49 @@ This should only be set to true if you use the /product/[url] AND /product/confi
|
|
|
235
247
|
|
|
236
248
|
@deprecated Will be removed in a future version. [migration](../upgrading/graphcommerce-5-to-6.md#product-routing-changes)
|
|
237
249
|
|
|
238
|
-
####
|
|
250
|
+
#### limitSsg: boolean
|
|
239
251
|
|
|
240
252
|
Limit the static generation of SSG when building
|
|
241
253
|
|
|
242
|
-
####
|
|
254
|
+
#### previewSecret: string
|
|
243
255
|
|
|
244
256
|
To enable next.js' preview mode, configure the secret you'd like to use.
|
|
245
257
|
|
|
246
|
-
####
|
|
258
|
+
#### productFiltersLayout: 'DEFAULT' | 'SIDEBAR' = 'DEFAULT'
|
|
247
259
|
|
|
248
260
|
Layout how the filters are rendered.
|
|
249
261
|
DEFAULT: Will be rendered as horzontal chips on desktop and mobile
|
|
250
262
|
SIDEBAR: Will be rendered as a sidebar on desktop and horizontal chips on mobile
|
|
251
263
|
|
|
252
|
-
####
|
|
264
|
+
#### productFiltersPro: boolean
|
|
253
265
|
|
|
254
266
|
Product filters with better UI for mobile and desktop.
|
|
255
267
|
|
|
256
|
-
####
|
|
268
|
+
#### productRoute: string
|
|
257
269
|
|
|
258
270
|
By default we route products to /p/[url] but you can change this to /product/[url] if you wish.
|
|
259
271
|
|
|
260
272
|
Default: '/p/'
|
|
261
273
|
Example: '/product/'
|
|
262
274
|
|
|
263
|
-
####
|
|
275
|
+
#### recentlyViewedProducts: [RecentlyViewedProductsConfig](#RecentlyViewedProductsConfig)
|
|
276
|
+
|
|
277
|
+
Settings for recently viewed products
|
|
278
|
+
|
|
279
|
+
#### robotsAllow: boolean
|
|
264
280
|
|
|
265
281
|
Allow the site to be indexed by search engines.
|
|
266
282
|
If false, the robots.txt file will be set to disallow all.
|
|
267
283
|
|
|
268
|
-
####
|
|
284
|
+
#### sidebarGallery: [SidebarGalleryConfig](#SidebarGalleryConfig)
|
|
269
285
|
|
|
270
|
-
|
|
286
|
+
Configuration for the SidebarGallery component
|
|
271
287
|
|
|
272
|
-
####
|
|
288
|
+
#### wishlistHideForGuests: boolean
|
|
273
289
|
|
|
274
|
-
|
|
290
|
+
Hide the wishlist functionality for guests.
|
|
275
291
|
|
|
276
|
-
####
|
|
292
|
+
#### wishlistShowFeedbackMessage: boolean
|
|
277
293
|
|
|
278
294
|
Show a message when the product is added to the wishlist.
|
|
279
295
|
|
|
@@ -281,18 +297,18 @@ Show a message when the product is added to the wishlist.
|
|
|
281
297
|
|
|
282
298
|
Debug configuration for GraphCommerce
|
|
283
299
|
|
|
284
|
-
####
|
|
300
|
+
#### pluginStatus: boolean
|
|
285
301
|
|
|
286
302
|
Reports which plugins are enabled or disabled.
|
|
287
303
|
|
|
288
|
-
####
|
|
304
|
+
#### webpackCircularDependencyPlugin: boolean
|
|
289
305
|
|
|
290
306
|
Cyclic dependencies can cause memory issues and other strange bugs.
|
|
291
307
|
This plugin will warn you when it detects a cyclic dependency.
|
|
292
308
|
|
|
293
309
|
When running into memory issues, it can be useful to enable this plugin.
|
|
294
310
|
|
|
295
|
-
####
|
|
311
|
+
#### webpackDuplicatesPlugin: boolean
|
|
296
312
|
|
|
297
313
|
When updating packages it can happen that the same package is included with different versions in the same project.
|
|
298
314
|
|
|
@@ -304,11 +320,11 @@ Issues that this can cause are:
|
|
|
304
320
|
|
|
305
321
|
All storefront configuration for the project
|
|
306
322
|
|
|
307
|
-
####
|
|
323
|
+
#### locale: string (required)
|
|
308
324
|
|
|
309
325
|
Must be a locale string https://www.unicode.org/reports/tr35/tr35-59/tr35.html#Identifiers
|
|
310
326
|
|
|
311
|
-
####
|
|
327
|
+
#### magentoStoreCode: string (required)
|
|
312
328
|
|
|
313
329
|
Magento store code.
|
|
314
330
|
|
|
@@ -319,7 +335,7 @@ Examples:
|
|
|
319
335
|
- en-us
|
|
320
336
|
- b2b-us
|
|
321
337
|
|
|
322
|
-
####
|
|
338
|
+
#### canonicalBaseUrl: string
|
|
323
339
|
|
|
324
340
|
The canonical base URL is used for SEO purposes.
|
|
325
341
|
|
|
@@ -328,39 +344,39 @@ Examples:
|
|
|
328
344
|
- https://example.com/en
|
|
329
345
|
- https://example.com/en-US
|
|
330
346
|
|
|
331
|
-
####
|
|
347
|
+
#### cartDisplayPricesInclTax: boolean
|
|
332
348
|
|
|
333
349
|
Due to a limitation of the GraphQL API it is not possible to determine if a cart should be displayed including or excluding tax.
|
|
334
350
|
|
|
335
|
-
####
|
|
351
|
+
#### defaultLocale: boolean
|
|
336
352
|
|
|
337
353
|
There can only be one entry with defaultLocale set to true.
|
|
338
354
|
- If there are more, the first one is used.
|
|
339
355
|
- If there is none, the first entry is used.
|
|
340
356
|
|
|
341
|
-
####
|
|
357
|
+
#### domain: string
|
|
342
358
|
|
|
343
359
|
Domain configuration, must be a domain https://tools.ietf.org/html/rfc3986
|
|
344
360
|
|
|
345
|
-
####
|
|
361
|
+
#### googleAnalyticsId: string
|
|
346
362
|
|
|
347
363
|
Configure different Google Analytics IDs for different locales.
|
|
348
364
|
|
|
349
365
|
To disable for a specific locale, set the value to null.
|
|
350
366
|
|
|
351
|
-
####
|
|
367
|
+
#### googleRecaptchaKey: string
|
|
352
368
|
|
|
353
369
|
Locale specific google reCAPTCHA key.
|
|
354
370
|
|
|
355
|
-
####
|
|
371
|
+
#### googleTagmanagerId: string
|
|
356
372
|
|
|
357
373
|
The Google Tagmanager ID to be used per locale.
|
|
358
374
|
|
|
359
|
-
####
|
|
375
|
+
#### hygraphLocales: string[]
|
|
360
376
|
|
|
361
377
|
Add a gcms-locales header to make sure queries return in a certain language, can be an array to define fallbacks.
|
|
362
378
|
|
|
363
|
-
####
|
|
379
|
+
#### linguiLocale: string
|
|
364
380
|
|
|
365
381
|
Specify a custom locale for to load translations.
|
|
366
382
|
|
|
@@ -368,17 +384,37 @@ Specify a custom locale for to load translations.
|
|
|
368
384
|
|
|
369
385
|
Options to configure which values will be replaced when a variant is selected on the product page.
|
|
370
386
|
|
|
371
|
-
####
|
|
387
|
+
#### content: boolean
|
|
372
388
|
|
|
373
389
|
Use the name, description, short description and meta data from the configured variant
|
|
374
390
|
|
|
375
|
-
####
|
|
391
|
+
#### gallery: boolean
|
|
376
392
|
|
|
377
393
|
This option enables the automatic update of product gallery images on the product page when a variant is selected,
|
|
378
394
|
provided that the gallery images for the selected variant differ from the currently displayed images.
|
|
379
395
|
|
|
380
|
-
####
|
|
396
|
+
#### url: boolean
|
|
381
397
|
|
|
382
398
|
When a variant is selected the URL of the product will be changed in the address bar.
|
|
383
399
|
|
|
384
|
-
This only happens when the actual variant is can be accessed by the URL.
|
|
400
|
+
This only happens when the actual variant is can be accessed by the URL.
|
|
401
|
+
|
|
402
|
+
### RecentlyViewedProductsConfig
|
|
403
|
+
|
|
404
|
+
Settings for recently viewed products
|
|
405
|
+
|
|
406
|
+
#### enabled: boolean
|
|
407
|
+
|
|
408
|
+
Enable/disable recently viewed products
|
|
409
|
+
|
|
410
|
+
#### maxCount: number
|
|
411
|
+
|
|
412
|
+
Number of recently viewed products to be stored in localStorage
|
|
413
|
+
|
|
414
|
+
### SidebarGalleryConfig
|
|
415
|
+
|
|
416
|
+
SidebarGalleryConfig will contain all configuration values for the Sidebar Gallery component.
|
|
417
|
+
|
|
418
|
+
#### paginationVariant: 'DOTS' | 'THUMBNAILS_BOTTOM'
|
|
419
|
+
|
|
420
|
+
Variant used for the pagination
|
|
@@ -37,7 +37,7 @@ Function plugins, which can be used to:
|
|
|
37
37
|
|
|
38
38
|
In this example we're going to add some text to list items, just like the text
|
|
39
39
|
‘BY GC’ that can seen in the demo on
|
|
40
|
-
[category pages](https://graphcommerce.vercel.app/
|
|
40
|
+
[category pages](https://graphcommerce.vercel.app/en/women/business).
|
|
41
41
|
|
|
42
42
|
1. Create a new file in `/plugins/ProductListItemByGC.tsx` with the following
|
|
43
43
|
contents:
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
---
|
|
2
|
+
menu: Known issues
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Known issues
|
|
6
|
+
|
|
7
|
+
An overview of bugs and limitations you may run into with Magento's GraphQL API:
|
|
8
|
+
|
|
9
|
+
## Cart-related mutations result in `Can not find cart with ID` or `Cart isn't active` errors
|
|
10
|
+
|
|
11
|
+
Affected Magento versions:
|
|
12
|
+
|
|
13
|
+
- `2.4.7`: only `2.4.7-beta1`
|
|
14
|
+
- `2.4.6`: all versions
|
|
15
|
+
|
|
16
|
+
This is caused by a regression which results in some GraphQL errors no longer
|
|
17
|
+
getting a category extension string (such as `graphql-no-such-entity`).
|
|
18
|
+
Normally, these errors are handling by automatically creating a new cart, but
|
|
19
|
+
without the proper error category this error-handling logic is nog triggered.
|
|
20
|
+
|
|
21
|
+
As a workaround, you can apply
|
|
22
|
+
[cart-error-category.patch](./patches/cart-error-category.patch).
|
|
23
|
+
|
|
24
|
+
See also
|
|
25
|
+
https://github.com/magento/magento2/commit/49cbe774020d3dfa6ee2b8702376a947801c9971
|
|
26
|
+
|
|
27
|
+
## Customer is forced to sign up, even if already registered
|
|
28
|
+
|
|
29
|
+
Affected Magento versions:
|
|
30
|
+
|
|
31
|
+
- `2.4.7` and all future release series
|
|
32
|
+
- `2.4.6`: `2.4.6-p1` and up
|
|
33
|
+
- `2.4.5`: `2.4.5-p3` and up
|
|
34
|
+
- `2.4.4`: `2.4.4-p4` and up
|
|
35
|
+
|
|
36
|
+
During customer login, GraphCommerce queries Magento to determine whether the
|
|
37
|
+
customer account already exists or not. If not, the sign-up form is shown
|
|
38
|
+
instead.
|
|
39
|
+
|
|
40
|
+
In affected Magento versions, the behavior of the `isEmailAvailable` query that
|
|
41
|
+
is used to do this was made dependent on the `Enable Guest Checkout Login`
|
|
42
|
+
configuration setting. If disabled, this query will always return `true`,
|
|
43
|
+
resulting in the sign-up form always being shown, even if the customer already
|
|
44
|
+
exists.
|
|
45
|
+
|
|
46
|
+
To solve this, the following setting must be set to `Yes`:
|
|
47
|
+
`Stores -> Configuration -> Sales -> Checkout -> Checkout Options -> Enable Guest Checkout Login`
|
|
48
|
+
|
|
49
|
+
See also
|
|
50
|
+
https://developer.adobe.com/commerce/php/development/backward-incompatible-changes/highlights/#isemailavailable-api
|
|
51
|
+
|
|
52
|
+
## Next steps
|
|
53
|
+
|
|
54
|
+
- [Overview](./readme)
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
Fix inactive/non-existent cart handling by re-adding GraphQL error category extension
|
|
2
|
+
|
|
3
|
+
@package magento/framework
|
|
4
|
+
|
|
5
|
+
Index: GraphQl/Exception/GraphQlNoSuchEntityException.php
|
|
6
|
+
IDEA additional info:
|
|
7
|
+
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
|
|
8
|
+
<+>UTF-8
|
|
9
|
+
===================================================================
|
|
10
|
+
diff --git a/GraphQl/Exception/GraphQlNoSuchEntityException.php b/GraphQl/Exception/GraphQlNoSuchEntityException.php
|
|
11
|
+
--- a/GraphQl/Exception/GraphQlNoSuchEntityException.php
|
|
12
|
+
+++ b/GraphQl/Exception/GraphQlNoSuchEntityException.php (date 1698390008711)
|
|
13
|
+
@@ -7,6 +7,8 @@
|
|
14
|
+
|
|
15
|
+
namespace Magento\Framework\GraphQl\Exception;
|
|
16
|
+
|
|
17
|
+
+use GraphQL\Error\ClientAware;
|
|
18
|
+
+use GraphQL\Error\ProvidesExtensions;
|
|
19
|
+
use Magento\Framework\Exception\NoSuchEntityException;
|
|
20
|
+
use Magento\Framework\Phrase;
|
|
21
|
+
|
|
22
|
+
@@ -15,7 +17,7 @@
|
|
23
|
+
*
|
|
24
|
+
* @api
|
|
25
|
+
*/
|
|
26
|
+
-class GraphQlNoSuchEntityException extends NoSuchEntityException implements \GraphQL\Error\ClientAware
|
|
27
|
+
+class GraphQlNoSuchEntityException extends NoSuchEntityException implements ClientAware, ProvidesExtensions
|
|
28
|
+
{
|
|
29
|
+
const EXCEPTION_CATEGORY = 'graphql-no-such-entity';
|
|
30
|
+
|
|
31
|
+
@@ -53,4 +55,15 @@
|
|
32
|
+
{
|
|
33
|
+
return self::EXCEPTION_CATEGORY;
|
|
34
|
+
}
|
|
35
|
+
+
|
|
36
|
+
+ /**
|
|
37
|
+
+ * Get error category
|
|
38
|
+
+ *
|
|
39
|
+
+ * @return array
|
|
40
|
+
+ */
|
|
41
|
+
+ public function getExtensions(): array
|
|
42
|
+
+ {
|
|
43
|
+
+ $exceptionCategory['category'] = $this->getCategory();
|
|
44
|
+
+ return $exceptionCategory;
|
|
45
|
+
+ }
|
|
46
|
+
}
|
package/magento/readme.md
CHANGED
|
@@ -7,6 +7,12 @@ menu: Overview
|
|
|
7
7
|
To integrate with Magento, most of the functionality should work out-of-the box
|
|
8
8
|
if Magento exposes a working GraphQL API.
|
|
9
9
|
|
|
10
|
+
Some additional configuration may be required, which is documented below.
|
|
11
|
+
|
|
12
|
+
Currently, the GraphQL API also has some bugs and limitations which in some
|
|
13
|
+
cases requires a patch to work around, please see
|
|
14
|
+
[Known issues](./known-issues.md)
|
|
15
|
+
|
|
10
16
|
## Magento configuration
|
|
11
17
|
|
|
12
18
|
### Configure Base Link Url to get emails working
|
|
@@ -64,16 +70,6 @@ Remove the URL suffixes from products and categories. (default is `.html`)
|
|
|
64
70
|
`Stores -> Configuration -> Catalog -> Catalog -> Search Engine Optimization -> Product URL Suffix`
|
|
65
71
|
`Stores -> Configuration -> Catalog -> Catalog -> Search Engine Optimization -> Category URL Suffix`
|
|
66
72
|
|
|
67
|
-
### Enable guest checkout login
|
|
68
|
-
|
|
69
|
-
During customer login, GraphCommerce queries Magento to determine whether the
|
|
70
|
-
customer account already exists. To do this the following setting must be set to
|
|
71
|
-
Yes:
|
|
72
|
-
`Stores -> Configuration -> Sales -> Checkout -> Checkout Options -> Enable Guest Checkout Login`
|
|
73
|
-
|
|
74
|
-
If this is not set correctly, customers will not be able to log in, since they
|
|
75
|
-
will always be prompted to create a new account.
|
|
76
|
-
|
|
77
73
|
## Optional packages
|
|
78
74
|
|
|
79
75
|
- [Store Pickup / MSI](https://github.com/graphcommerce-org/graphcommerce/tree/main/packages/magento-cart-pickup)
|
|
@@ -92,3 +88,4 @@ will always be prompted to create a new account.
|
|
|
92
88
|
|
|
93
89
|
- [Full feature list](../feature-list.md)
|
|
94
90
|
- [SEO Migration](./seo-migration.md)
|
|
91
|
+
- [Known issues](./known-issues.md)
|
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": "
|
|
5
|
+
"version": "8.0.0-canary.40",
|
|
6
6
|
"sideEffects": true,
|
|
7
|
-
"
|
|
8
|
-
"@graphcommerce/prettier-config-pwa": "
|
|
7
|
+
"peerDependencies": {
|
|
8
|
+
"@graphcommerce/prettier-config-pwa": "8.0.0-canary.40"
|
|
9
9
|
},
|
|
10
10
|
"prettier": "@graphcommerce/prettier-config-pwa"
|
|
11
11
|
}
|