@graphcommerce/docs 7.1.0-canary.8 → 8.0.0-canary.100
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 +206 -8
- package/contributing.md +1 -1
- package/feature-list.md +13 -10
- package/framework/config.md +103 -55
- package/framework/plugins-react.md +1 -1
- package/framework/static-generation.md +22 -29
- package/getting-started/graphcms-component.md +1 -1
- package/getting-started/pages.md +149 -70
- package/getting-started/start-building.md +6 -11
- package/hygraph/cli.md +10 -6
- package/hygraph/property-picker.md +45 -0
- package/magento/implementing-payment-gateways.md +16 -15
- package/magento/known-issues.md +29 -0
- package/magento/patches/cart-error-category.patch +46 -0
- package/magento/readme.md +7 -10
- package/package.json +3 -3
- package/roadmap.md +51 -26
- package/upgrading/graphcommerce-5-to-6.md +2 -3
- package/upgrading/graphcommerce-7-to-8.md +18 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,203 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 8.0.0-canary.100
|
|
4
|
+
|
|
5
|
+
## 8.0.0-canary.99
|
|
6
|
+
|
|
7
|
+
## 8.0.0-canary.98
|
|
8
|
+
|
|
9
|
+
## 8.0.0-canary.97
|
|
10
|
+
|
|
11
|
+
## 8.0.0-canary.96
|
|
12
|
+
|
|
13
|
+
## 8.0.0-canary.95
|
|
14
|
+
|
|
15
|
+
## 8.0.0-canary.94
|
|
16
|
+
|
|
17
|
+
## 8.0.0-canary.93
|
|
18
|
+
|
|
19
|
+
## 8.0.0-canary.92
|
|
20
|
+
|
|
21
|
+
## 8.0.0-canary.91
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- [#2172](https://github.com/graphcommerce-org/graphcommerce/pull/2172) [`279599e`](https://github.com/graphcommerce-org/graphcommerce/commit/279599e7a86bd96ea9e36065af3c367df9e02a63) - Updated documentation to reflect recent code changes
|
|
26
|
+
([@paales](https://github.com/paales))
|
|
27
|
+
|
|
28
|
+
## 8.0.0-canary.90
|
|
29
|
+
|
|
30
|
+
## 8.0.0-canary.89
|
|
31
|
+
|
|
32
|
+
### Patch Changes
|
|
33
|
+
|
|
34
|
+
- [`b850ab0`](https://github.com/graphcommerce-org/graphcommerce/commit/b850ab06e3fff1cd274651d8082557ed2c308f55) - Updated roadmap and feature-list
|
|
35
|
+
([@paales](https://github.com/paales))
|
|
36
|
+
|
|
37
|
+
## 8.0.0-canary.88
|
|
38
|
+
|
|
39
|
+
## 8.0.0-canary.87
|
|
40
|
+
|
|
41
|
+
## 8.0.0-canary.86
|
|
42
|
+
|
|
43
|
+
## 8.0.0-canary.85
|
|
44
|
+
|
|
45
|
+
## 8.0.0-canary.84
|
|
46
|
+
|
|
47
|
+
## 8.0.0-canary.83
|
|
48
|
+
|
|
49
|
+
## 8.0.0-canary.82
|
|
50
|
+
|
|
51
|
+
## 8.0.0-canary.81
|
|
52
|
+
|
|
53
|
+
## 8.0.0-canary.80
|
|
54
|
+
|
|
55
|
+
## 8.0.0-canary.79
|
|
56
|
+
|
|
57
|
+
## 8.0.0-canary.78
|
|
58
|
+
|
|
59
|
+
## 8.0.0-canary.77
|
|
60
|
+
|
|
61
|
+
## 8.0.0-canary.76
|
|
62
|
+
|
|
63
|
+
## 8.0.0-canary.75
|
|
64
|
+
|
|
65
|
+
## 8.0.0-canary.74
|
|
66
|
+
|
|
67
|
+
## 8.0.0-canary.73
|
|
68
|
+
|
|
69
|
+
## 8.0.0-canary.72
|
|
70
|
+
|
|
71
|
+
## 8.0.0-canary.71
|
|
72
|
+
|
|
73
|
+
## 8.0.0-canary.70
|
|
74
|
+
|
|
75
|
+
## 8.0.0-canary.69
|
|
76
|
+
|
|
77
|
+
## 7.1.0-canary.68
|
|
78
|
+
|
|
79
|
+
## 7.1.0-canary.67
|
|
80
|
+
|
|
81
|
+
## 7.1.0-canary.66
|
|
82
|
+
|
|
83
|
+
## 7.1.0-canary.65
|
|
84
|
+
|
|
85
|
+
## 7.1.0-canary.64
|
|
86
|
+
|
|
87
|
+
## 7.1.0-canary.63
|
|
88
|
+
|
|
89
|
+
## 7.1.0-canary.62
|
|
90
|
+
|
|
91
|
+
## 7.1.0-canary.61
|
|
92
|
+
|
|
93
|
+
## 7.1.0-canary.60
|
|
94
|
+
|
|
95
|
+
## 7.1.0-canary.59
|
|
96
|
+
|
|
97
|
+
## 7.1.0-canary.58
|
|
98
|
+
|
|
99
|
+
## 7.1.0-canary.57
|
|
100
|
+
|
|
101
|
+
## 7.1.0-canary.56
|
|
102
|
+
|
|
103
|
+
## 7.1.0-canary.55
|
|
104
|
+
|
|
105
|
+
## 7.1.0-canary.54
|
|
106
|
+
|
|
107
|
+
## 7.1.0-canary.53
|
|
108
|
+
|
|
109
|
+
### Patch Changes
|
|
110
|
+
|
|
111
|
+
- [#2119](https://github.com/graphcommerce-org/graphcommerce/pull/2119) [`6adb2e72e`](https://github.com/graphcommerce-org/graphcommerce/commit/6adb2e72ece8210757ced178779dfba11b1bcf55) - Clarify texts by adding formatting and correcting spelling. ([@carlocarels90](https://github.com/carlocarels90))
|
|
112
|
+
|
|
113
|
+
## 7.1.0-canary.52
|
|
114
|
+
|
|
115
|
+
## 7.1.0-canary.51
|
|
116
|
+
|
|
117
|
+
## 7.1.0-canary.50
|
|
118
|
+
|
|
119
|
+
## 7.1.0-canary.49
|
|
120
|
+
|
|
121
|
+
## 7.1.0-canary.48
|
|
122
|
+
|
|
123
|
+
## 7.1.0-canary.47
|
|
124
|
+
|
|
125
|
+
## 7.1.0-canary.46
|
|
126
|
+
|
|
127
|
+
## 7.1.0-canary.45
|
|
128
|
+
|
|
129
|
+
## 7.1.0-canary.38
|
|
130
|
+
|
|
131
|
+
## 7.1.0-canary.37
|
|
132
|
+
|
|
133
|
+
### Patch Changes
|
|
134
|
+
|
|
135
|
+
- [#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))
|
|
136
|
+
|
|
137
|
+
## 7.1.0-canary.36
|
|
138
|
+
|
|
139
|
+
## 7.1.0-canary.35
|
|
140
|
+
|
|
141
|
+
## 7.1.0-canary.34
|
|
142
|
+
|
|
143
|
+
## 7.1.0-canary.33
|
|
144
|
+
|
|
145
|
+
## 7.1.0-canary.32
|
|
146
|
+
|
|
147
|
+
## 7.1.0-canary.31
|
|
148
|
+
|
|
149
|
+
### Minor Changes
|
|
150
|
+
|
|
151
|
+
- [#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))
|
|
152
|
+
|
|
153
|
+
## 7.1.0-canary.30
|
|
154
|
+
|
|
155
|
+
## 7.1.0-canary.29
|
|
156
|
+
|
|
157
|
+
### Patch Changes
|
|
158
|
+
|
|
159
|
+
- [#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))
|
|
160
|
+
|
|
161
|
+
## 7.1.0-canary.28
|
|
162
|
+
|
|
163
|
+
## 7.1.0-canary.27
|
|
164
|
+
|
|
165
|
+
## 7.1.0-canary.26
|
|
166
|
+
|
|
167
|
+
## 7.1.0-canary.25
|
|
168
|
+
|
|
169
|
+
## 7.1.0-canary.24
|
|
170
|
+
|
|
171
|
+
## 7.1.0-canary.23
|
|
172
|
+
|
|
173
|
+
## 7.1.0-canary.22
|
|
174
|
+
|
|
175
|
+
## 7.1.0-canary.21
|
|
176
|
+
|
|
177
|
+
## 7.1.0-canary.20
|
|
178
|
+
|
|
179
|
+
## 7.1.0-canary.19
|
|
180
|
+
|
|
181
|
+
## 7.1.0-canary.18
|
|
182
|
+
|
|
183
|
+
## 7.1.0-canary.17
|
|
184
|
+
|
|
185
|
+
## 7.1.0-canary.16
|
|
186
|
+
|
|
187
|
+
## 7.1.0-canary.15
|
|
188
|
+
|
|
189
|
+
## 7.1.0-canary.14
|
|
190
|
+
|
|
191
|
+
## 7.1.0-canary.13
|
|
192
|
+
|
|
193
|
+
## 7.1.0-canary.12
|
|
194
|
+
|
|
195
|
+
## 7.1.0-canary.11
|
|
196
|
+
|
|
197
|
+
## 7.1.0-canary.10
|
|
198
|
+
|
|
199
|
+
## 7.1.0-canary.9
|
|
200
|
+
|
|
3
201
|
## 7.1.0-canary.8
|
|
4
202
|
|
|
5
203
|
## 7.0.2-canary.7
|
|
@@ -823,31 +1021,31 @@
|
|
|
823
1021
|
All occurences of `<Trans>` and `t` need to be replaced:
|
|
824
1022
|
|
|
825
1023
|
```tsx
|
|
826
|
-
import { Trans, t } from
|
|
1024
|
+
import { Trans, t } from "@lingui/macro";
|
|
827
1025
|
|
|
828
1026
|
function MyComponent() {
|
|
829
|
-
const foo =
|
|
1027
|
+
const foo = "bar";
|
|
830
1028
|
return (
|
|
831
1029
|
<div aria-label={t`Account ${foo}`}>
|
|
832
1030
|
<Trans>My Translation {foo}</Trans>
|
|
833
1031
|
</div>
|
|
834
|
-
)
|
|
1032
|
+
);
|
|
835
1033
|
}
|
|
836
1034
|
```
|
|
837
1035
|
|
|
838
1036
|
Needs to be replaced with:
|
|
839
1037
|
|
|
840
1038
|
```tsx
|
|
841
|
-
import { Trans } from
|
|
842
|
-
import { i18n } from
|
|
1039
|
+
import { Trans } from "@lingui/react";
|
|
1040
|
+
import { i18n } from "@lingui/core";
|
|
843
1041
|
|
|
844
1042
|
function MyComponent() {
|
|
845
|
-
const foo =
|
|
1043
|
+
const foo = "bar";
|
|
846
1044
|
return (
|
|
847
1045
|
<div aria-label={i18n._(/* i18n */ `Account {foo}`, { foo })}>
|
|
848
|
-
<Trans key=
|
|
1046
|
+
<Trans key="My Translation {foo}" values={{ foo }}></Trans>
|
|
849
1047
|
</div>
|
|
850
|
-
)
|
|
1048
|
+
);
|
|
851
1049
|
}
|
|
852
1050
|
```
|
|
853
1051
|
|
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/feature-list.md
CHANGED
|
@@ -125,8 +125,8 @@ Features taken from the Magento Commerce 2 Feature List
|
|
|
125
125
|
grouped products.
|
|
126
126
|
- [x] Offer virtual products like memberships, services and warranties.
|
|
127
127
|
- [x] Include downloadable/digital products with samples.
|
|
128
|
-
- [
|
|
129
|
-
monogramming). —
|
|
128
|
+
- [x] Allow customer-personalized products (e.g., upload images and text for
|
|
129
|
+
monogramming). — (No upload support yet)
|
|
130
130
|
- [x] Manage inventory across multiple locations
|
|
131
131
|
- [x] Create new products through a guided online process.
|
|
132
132
|
- [x] Define unlimited product attributes.
|
|
@@ -153,12 +153,13 @@ Features taken from the Magento Commerce 2 Feature List
|
|
|
153
153
|
- [ ] Present product category items in grid or list format. — [Todo]
|
|
154
154
|
- [x] Customize the look and feel of categories and assigned product pages. —
|
|
155
155
|
[Enhanced]
|
|
156
|
-
- [
|
|
156
|
+
- [x] Arrange products on category pages with drag-and-drop merchandising and
|
|
157
157
|
automated sorting rules. — [Commerce]
|
|
158
158
|
- [ ] Control which products and categories can be viewed by each customer
|
|
159
159
|
group. — [Commerce]
|
|
160
|
-
- [
|
|
161
|
-
|
|
160
|
+
- [x] Show side-by-side product comparisons with two or more products. —
|
|
161
|
+
[Enhanced]
|
|
162
|
+
- [x] Display recently viewed products. — [Enhanced]
|
|
162
163
|
- [x] Compare products. — [Enhanced]
|
|
163
164
|
- [x] Increase search relevancy and scalability with Elasticsearch technology.
|
|
164
165
|
- [x] Set stop words, attribute weightings, and search synonyms for higher
|
|
@@ -214,8 +215,8 @@ Features taken from the Magento Commerce 2 Feature List
|
|
|
214
215
|
|
|
215
216
|
- [x] Include a mini cart on store pages to summarize products in the cart.
|
|
216
217
|
- [x] Display an order summary with product images in checkout.
|
|
217
|
-
- [
|
|
218
|
-
automatically recognized when they enter their email addresses.
|
|
218
|
+
- [x] Offer guest and registered user checkout. Registered customers are
|
|
219
|
+
automatically recognized when they enter their email addresses.
|
|
219
220
|
- [ ] Boost conversion rates with an Instant Purchase option that uses saved
|
|
220
221
|
payment and shipping information to speed checkout. — [Todo]
|
|
221
222
|
- [x] Enable shoppers to create a customer account with one click on the
|
|
@@ -234,7 +235,8 @@ Features taken from the Magento Commerce 2 Feature List
|
|
|
234
235
|
### Payments
|
|
235
236
|
|
|
236
237
|
- [ ] Download and work with your preferred payment gateway through the Magento
|
|
237
|
-
Marketplace.
|
|
238
|
+
Marketplace. —
|
|
239
|
+
[Supported Payment Methods](https://www.graphcommerce.org/docs/magento#payment-gateways)
|
|
238
240
|
- [x] Securely pass credit card information directly from the client browser to
|
|
239
241
|
the payment gateway, bypassing the Adobe Commerce application.
|
|
240
242
|
- [x] Qualify for the easiest level of PCI compliance (SAQ-A or SAQ A-EP),
|
|
@@ -378,8 +380,9 @@ Features taken from the Magento Commerce 2 Feature List
|
|
|
378
380
|
easier and durable over multiple releases. — [Enhanced]
|
|
379
381
|
- [x] Integrate Adobe Commerce with third-party applications using efficient web
|
|
380
382
|
APIs with REST and GraphQL support. — [Enhanced]
|
|
381
|
-
- [
|
|
382
|
-
dependency injection software design patterns.
|
|
383
|
+
- [x] Smoothly manage interactions between extensions using plug-ins and
|
|
384
|
+
dependency injection software design patterns. —
|
|
385
|
+
[Plugins](https://www.graphcommerce.org/docs/framework/plugins-react_)
|
|
383
386
|
- [ ] Accelerate time-to-market and improve code quality with a fully-automated
|
|
384
387
|
testing framework.
|
|
385
388
|
- [ ] Update code with a standalone installer that checks for prerequisites
|
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,17 @@ 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
|
+
#### enableGuestCheckoutLogin: boolean
|
|
175
|
+
|
|
176
|
+
Enable Guest Checkout Login:
|
|
177
|
+
During customer login, GraphCommerce queries Magento to determine whether
|
|
178
|
+
the customer account already exists or not. If not, the sign-up form is shown instead.
|
|
179
|
+
|
|
180
|
+
For Magento versions, 2.4.7, 2.4.6-p1 and up, 2.4.5-p3 and up, 2.4.4-p4 and up, the following setting must be set to Yes
|
|
181
|
+
|
|
182
|
+
`Stores -> Configuration -> Sales -> Checkout -> Checkout Options -> Enable Guest Checkout Login`
|
|
183
|
+
|
|
184
|
+
#### googleAnalyticsId: string
|
|
163
185
|
|
|
164
186
|
See https://support.google.com/analytics/answer/9539598?hl=en
|
|
165
187
|
|
|
@@ -167,7 +189,7 @@ Provide a value to enable Google Analytics for your store.
|
|
|
167
189
|
|
|
168
190
|
To override the value for a specific locale, configure in i18n config.
|
|
169
191
|
|
|
170
|
-
####
|
|
192
|
+
#### googleRecaptchaKey: string
|
|
171
193
|
|
|
172
194
|
Google reCAPTCHA site key.
|
|
173
195
|
When using reCAPTCHA, this value is required, even if you are configuring different values for each locale.
|
|
@@ -177,17 +199,21 @@ Get a site key and a secret key from https://developers.google.com/recaptcha/doc
|
|
|
177
199
|
The secret key should be added in the Magento admin panel (Stores > Configuration > Security > Google ReCAPTCHA Storefront > reCAPTCHA v3 Invisible)
|
|
178
200
|
ReCAPTCHA can then be enabled/disabled for the different forms, separately (Stores > Configuration > Security > Google ReCAPTCHA Storefront > Storefront)
|
|
179
201
|
|
|
180
|
-
####
|
|
202
|
+
#### googleTagmanagerId: string
|
|
181
203
|
|
|
182
204
|
The Google Tagmanager ID to be used on the site.
|
|
183
205
|
|
|
184
206
|
This value is required even if you are configuring different values for each locale.
|
|
185
207
|
|
|
186
|
-
####
|
|
208
|
+
#### hygraphManagementApi: string
|
|
209
|
+
|
|
210
|
+
Hygraph Management API. **Only used for migrations.**
|
|
211
|
+
|
|
212
|
+
#### hygraphProjectId: string
|
|
187
213
|
|
|
188
214
|
Hygraph Project ID. **Only used for migrations.**
|
|
189
215
|
|
|
190
|
-
####
|
|
216
|
+
#### hygraphWriteAccessEndpoint: string
|
|
191
217
|
|
|
192
218
|
Content API. **Only used for migrations.**
|
|
193
219
|
|
|
@@ -195,7 +221,7 @@ Content API. **Only used for migrations.**
|
|
|
195
221
|
|
|
196
222
|
Project settings -> API Access -> Content API
|
|
197
223
|
|
|
198
|
-
####
|
|
224
|
+
#### hygraphWriteAccessToken: string
|
|
199
225
|
|
|
200
226
|
Hygraph Management SDK Authorization Token. **Only used for migrations.**
|
|
201
227
|
|
|
@@ -227,53 +253,51 @@ GC_HYGRAPH_WRITE_ACCESS_TOKEN="AccessTokenFromHygraph"
|
|
|
227
253
|
yarn graphcommerce hygraph-migrate
|
|
228
254
|
```
|
|
229
255
|
|
|
230
|
-
####
|
|
256
|
+
#### limitSsg: boolean
|
|
231
257
|
|
|
232
|
-
|
|
258
|
+
Limit the static generation of SSG when building.
|
|
233
259
|
|
|
234
|
-
This
|
|
260
|
+
By default GraphCommerce will statically generate all product and category pages during build. This can take quite a long time, to skip this step set this value to true.
|
|
235
261
|
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
#### `limitSsg: Boolean`
|
|
239
|
-
|
|
240
|
-
Limit the static generation of SSG when building
|
|
241
|
-
|
|
242
|
-
#### `previewSecret: String`
|
|
262
|
+
#### previewSecret: string
|
|
243
263
|
|
|
244
264
|
To enable next.js' preview mode, configure the secret you'd like to use.
|
|
245
265
|
|
|
246
|
-
####
|
|
266
|
+
#### productFiltersLayout: 'DEFAULT' | 'SIDEBAR' = 'DEFAULT'
|
|
247
267
|
|
|
248
268
|
Layout how the filters are rendered.
|
|
249
269
|
DEFAULT: Will be rendered as horzontal chips on desktop and mobile
|
|
250
270
|
SIDEBAR: Will be rendered as a sidebar on desktop and horizontal chips on mobile
|
|
251
271
|
|
|
252
|
-
####
|
|
272
|
+
#### productFiltersPro: boolean
|
|
253
273
|
|
|
254
274
|
Product filters with better UI for mobile and desktop.
|
|
255
275
|
|
|
256
|
-
####
|
|
276
|
+
#### productRoute: string
|
|
257
277
|
|
|
258
278
|
By default we route products to /p/[url] but you can change this to /product/[url] if you wish.
|
|
259
279
|
|
|
260
280
|
Default: '/p/'
|
|
261
281
|
Example: '/product/'
|
|
262
282
|
|
|
263
|
-
####
|
|
283
|
+
#### recentlyViewedProducts: [RecentlyViewedProductsConfig](#RecentlyViewedProductsConfig)
|
|
284
|
+
|
|
285
|
+
Settings for recently viewed products
|
|
286
|
+
|
|
287
|
+
#### robotsAllow: boolean
|
|
264
288
|
|
|
265
289
|
Allow the site to be indexed by search engines.
|
|
266
290
|
If false, the robots.txt file will be set to disallow all.
|
|
267
291
|
|
|
268
|
-
####
|
|
292
|
+
#### sidebarGallery: [SidebarGalleryConfig](#SidebarGalleryConfig)
|
|
269
293
|
|
|
270
|
-
|
|
294
|
+
Configuration for the SidebarGallery component
|
|
271
295
|
|
|
272
|
-
####
|
|
296
|
+
#### wishlistHideForGuests: boolean
|
|
273
297
|
|
|
274
|
-
|
|
298
|
+
Hide the wishlist functionality for guests.
|
|
275
299
|
|
|
276
|
-
####
|
|
300
|
+
#### wishlistShowFeedbackMessage: boolean
|
|
277
301
|
|
|
278
302
|
Show a message when the product is added to the wishlist.
|
|
279
303
|
|
|
@@ -281,18 +305,22 @@ Show a message when the product is added to the wishlist.
|
|
|
281
305
|
|
|
282
306
|
Debug configuration for GraphCommerce
|
|
283
307
|
|
|
284
|
-
####
|
|
308
|
+
#### pluginStatus: boolean
|
|
285
309
|
|
|
286
310
|
Reports which plugins are enabled or disabled.
|
|
287
311
|
|
|
288
|
-
####
|
|
312
|
+
#### sessions: boolean
|
|
313
|
+
|
|
314
|
+
Enable debugging interface to debug sessions
|
|
315
|
+
|
|
316
|
+
#### webpackCircularDependencyPlugin: boolean
|
|
289
317
|
|
|
290
318
|
Cyclic dependencies can cause memory issues and other strange bugs.
|
|
291
319
|
This plugin will warn you when it detects a cyclic dependency.
|
|
292
320
|
|
|
293
321
|
When running into memory issues, it can be useful to enable this plugin.
|
|
294
322
|
|
|
295
|
-
####
|
|
323
|
+
#### webpackDuplicatesPlugin: boolean
|
|
296
324
|
|
|
297
325
|
When updating packages it can happen that the same package is included with different versions in the same project.
|
|
298
326
|
|
|
@@ -304,11 +332,11 @@ Issues that this can cause are:
|
|
|
304
332
|
|
|
305
333
|
All storefront configuration for the project
|
|
306
334
|
|
|
307
|
-
####
|
|
335
|
+
#### locale: string (required)
|
|
308
336
|
|
|
309
337
|
Must be a locale string https://www.unicode.org/reports/tr35/tr35-59/tr35.html#Identifiers
|
|
310
338
|
|
|
311
|
-
####
|
|
339
|
+
#### magentoStoreCode: string (required)
|
|
312
340
|
|
|
313
341
|
Magento store code.
|
|
314
342
|
|
|
@@ -319,7 +347,7 @@ Examples:
|
|
|
319
347
|
- en-us
|
|
320
348
|
- b2b-us
|
|
321
349
|
|
|
322
|
-
####
|
|
350
|
+
#### canonicalBaseUrl: string
|
|
323
351
|
|
|
324
352
|
The canonical base URL is used for SEO purposes.
|
|
325
353
|
|
|
@@ -328,39 +356,39 @@ Examples:
|
|
|
328
356
|
- https://example.com/en
|
|
329
357
|
- https://example.com/en-US
|
|
330
358
|
|
|
331
|
-
####
|
|
359
|
+
#### cartDisplayPricesInclTax: boolean
|
|
332
360
|
|
|
333
361
|
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
362
|
|
|
335
|
-
####
|
|
363
|
+
#### defaultLocale: boolean
|
|
336
364
|
|
|
337
365
|
There can only be one entry with defaultLocale set to true.
|
|
338
366
|
- If there are more, the first one is used.
|
|
339
367
|
- If there is none, the first entry is used.
|
|
340
368
|
|
|
341
|
-
####
|
|
369
|
+
#### domain: string
|
|
342
370
|
|
|
343
371
|
Domain configuration, must be a domain https://tools.ietf.org/html/rfc3986
|
|
344
372
|
|
|
345
|
-
####
|
|
373
|
+
#### googleAnalyticsId: string
|
|
346
374
|
|
|
347
375
|
Configure different Google Analytics IDs for different locales.
|
|
348
376
|
|
|
349
377
|
To disable for a specific locale, set the value to null.
|
|
350
378
|
|
|
351
|
-
####
|
|
379
|
+
#### googleRecaptchaKey: string
|
|
352
380
|
|
|
353
381
|
Locale specific google reCAPTCHA key.
|
|
354
382
|
|
|
355
|
-
####
|
|
383
|
+
#### googleTagmanagerId: string
|
|
356
384
|
|
|
357
385
|
The Google Tagmanager ID to be used per locale.
|
|
358
386
|
|
|
359
|
-
####
|
|
387
|
+
#### hygraphLocales: string[]
|
|
360
388
|
|
|
361
389
|
Add a gcms-locales header to make sure queries return in a certain language, can be an array to define fallbacks.
|
|
362
390
|
|
|
363
|
-
####
|
|
391
|
+
#### linguiLocale: string
|
|
364
392
|
|
|
365
393
|
Specify a custom locale for to load translations.
|
|
366
394
|
|
|
@@ -368,17 +396,37 @@ Specify a custom locale for to load translations.
|
|
|
368
396
|
|
|
369
397
|
Options to configure which values will be replaced when a variant is selected on the product page.
|
|
370
398
|
|
|
371
|
-
####
|
|
399
|
+
#### content: boolean
|
|
372
400
|
|
|
373
401
|
Use the name, description, short description and meta data from the configured variant
|
|
374
402
|
|
|
375
|
-
####
|
|
403
|
+
#### gallery: boolean
|
|
376
404
|
|
|
377
405
|
This option enables the automatic update of product gallery images on the product page when a variant is selected,
|
|
378
406
|
provided that the gallery images for the selected variant differ from the currently displayed images.
|
|
379
407
|
|
|
380
|
-
####
|
|
408
|
+
#### url: boolean
|
|
381
409
|
|
|
382
410
|
When a variant is selected the URL of the product will be changed in the address bar.
|
|
383
411
|
|
|
384
|
-
This only happens when the actual variant is can be accessed by the URL.
|
|
412
|
+
This only happens when the actual variant is can be accessed by the URL.
|
|
413
|
+
|
|
414
|
+
### RecentlyViewedProductsConfig
|
|
415
|
+
|
|
416
|
+
Settings for recently viewed products
|
|
417
|
+
|
|
418
|
+
#### enabled: boolean
|
|
419
|
+
|
|
420
|
+
Enable/disable recently viewed products
|
|
421
|
+
|
|
422
|
+
#### maxCount: number
|
|
423
|
+
|
|
424
|
+
Number of recently viewed products to be stored in localStorage
|
|
425
|
+
|
|
426
|
+
### SidebarGalleryConfig
|
|
427
|
+
|
|
428
|
+
SidebarGalleryConfig will contain all configuration values for the Sidebar Gallery component.
|
|
429
|
+
|
|
430
|
+
#### paginationVariant: 'DOTS' | 'THUMBNAILS_BOTTOM'
|
|
431
|
+
|
|
432
|
+
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:
|