You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* MAGENTO-URL (This should be your Adobe Commerce system's base URL.)
26
-
* MAGENTO-TOKEN
27
-
28
-
You can obtain the token by following these [steps](https://experienceleague.adobe.com/en/docs/commerce-admin/systems/integrations). Copy the Access Token value once generated. Additionally, you need to enable the "[Integration Token](https://experienceleague.adobe.com/en/docs/commerce-admin/systems/integrations)" functionality if it is not enabled yet. The generated token does not expire, but it can be updated if necessary.
25
+
* AC-URL (This should be your Adobe Commerce system's base URL to GQL Endpoint)
29
26
30
27
3. Provision Mesh by using this file with `aio api-mesh create adobe-api/mesh/mesh.json`.
AC_DEFAULT_STORE_CODE= // Default Adobe Commerce Store Code
41
+
AC_ENVIRONMENT_ID= // Your Environment ID for Catalog Service if used (optional)
42
+
```
43
+
44
+
6. Configure Adobe Commerce Authorization
45
+
46
+
In env.dist file you will find set of Auth parameters.
47
+
48
+
**For Adobe Commerce PaaS:**
49
+
50
+
These values can be copied from the Integration Details under System > Integrations in your Adobe Commerce backend
51
+
52
+
```
53
+
COMMERCE_CONSUMER_KEY=
54
+
COMMERCE_CONSUMER_SECRET=
55
+
COMMERCE_ACCESS_TOKEN=
56
+
COMMERCE_ACCESS_TOKEN_SECRET=
57
+
```
58
+
59
+
**For Adobe Commerce SaaS:**
60
+
61
+
Documentation how to get these values is available here: https://developer.adobe.com/developer-console/docs/guides/authentication/ServerToServerAuthentication/implementation
6. Create Event Provider for Feed Generator. Run `aio event provider create` and define name. Copy `id` from output.
72
+
7. Create Event Provider for Feed Generator. Run `aio event provider create` and define name. Copy `id` from output.
48
73
Add to `.env` line `FEED_GENERATOR_PROVIDER_ID=<id>`
49
74
50
-
7. Create Event Metadata for Feed Generator. Run `aio event eventmetadata create PROVIDERID`. Define event code as `feed.generate` and define description as `Generate Feed`.
75
+
8. Create Event Metadata for Feed Generator. Run `aio event eventmetadata create PROVIDERID`. Define event code as `feed.generate` and define description as `Generate Feed`.
51
76
52
-
8. Run `aio app deploy` to deploy the app.
77
+
9. Run `aio app deploy` to deploy the app.
53
78
54
-
9. Go To your application environment via Browser. Click on "Add Service" -> Event -> 3rd Party Custom Events -> And select your provider and event subscription. In Receiver define "Runtime action" as `processGeneration` action.
79
+
10. Go To your application environment via Browser. Click on "Add Service" -> Event -> 3rd Party Custom Events -> And select your provider and event subscription. In Receiver define "Runtime action" as `processGeneration` action.
55
80
56
-
10. The app is ready to use. Please save the link to your application environment. Additionally, you can replicate all steps in your production environment and publish the application, so it will be available on your exchange dashboard.
81
+
11. The app is ready to use. Please save the link to your application environment. Additionally, you can replicate all steps in your production environment and publish the application, so it will be available on your exchange dashboard.
SimpleProduct||** definition will be decoded like:
105
+
106
+
```graphql
107
+
products(search: "Motiv") {
108
+
items {
109
+
...onSimpleProduct {
110
+
weight
111
+
}
112
+
}
113
+
}
114
+
```
100
115
101
-
… and so on depends on a schema used
116
+
… and so on depends on a schema used.
117
+
118
+
[!NOTE]
119
+
In case you do not see some fields in autocompletion, it may be because your Schema has some custom or complex attributes. You can always enter them manually, and we would be happy to hear from you to add them to a future release.
102
120
103
121
### Filtering
104
122
@@ -179,7 +197,7 @@ Header and Footer currently have a support to variables (Only 1 actualy)
179
197
180
198
### Dynamic variables
181
199
182
-
Variables are defined using double curly braces (`{{ }}`) and correspond to fields in the Magento GraphQL product output. For example, `{{sku}}` will be replaced with the product's SKU.
200
+
Variables are defined using double curly braces (`{{ }}`) and correspond to fields in the Adobe Commerce GraphQL product output. For example, `{{sku}}` will be replaced with the product's SKU.
183
201
184
202
##### Additonal parameters
185
203
@@ -188,17 +206,26 @@ Variables are defined using double curly braces (`{{ }}`) and correspond to fiel
188
206
When a variable corresponds to an array, you can use the `count` property to repeat the XML tag for each element in the array. For instance, using `count=5` will generate up to 5 tags, each containing a different value from the array.
189
207
190
208
```xml
191
-
<g:brandcount=5>{{manufacturer}}</g:brand>
209
+
<g:brand>{{manufacturer count="5"}}</g:brand>
192
210
```
193
211
194
212
##### Selecting Specific Array Elements with `index`
195
213
196
214
To select a specific element from an array, use the `index` property. This will generate a single tag with the value of the specified element from the array.
Add attributes.value is an Array of attributes, to get specific attribute, you can use "code" parameter and define attribute with which code you want to use.
227
+
228
+
202
229
#### Example
203
230
204
231
```xml
@@ -254,12 +281,14 @@ Regenerate Feed - will trigger the event “generate.feed” for a particular fe
254
281
255
282
Action will be invoked when `feed.generate` event added.
256
283
257
-
*`getGqlSchema` - retrieve graphql schema from target magento app.
284
+
*`getGqlSchema` - retrieve graphql schema from target Adobe Commerce.
258
285
259
-
*`getAllStores` - get all Magento stores by API
286
+
*`getAllStores` - get all Adobe Commerce Stores by API
260
287
261
288
*`generateByCron` - trigger feed generation by OpenWisk alarms.
262
289
290
+
*`getConfig` - receive public module configs. Currently only return type of authorization (ims vs oauth).
291
+
263
292
Action is running every 30 minutes and checking by feed settings if it have to be regenerate. Process regeneration if necessary.
264
293
265
294
### Web elements
@@ -281,7 +310,7 @@ Action is running every 30 minutes and checking by feed settings if it have to b
281
310
* Feed Item: Big text field to have XML | JSON there with feed item body
282
311
* Feed Header
283
312
* Feed Footer
284
-
* Store View - select with list of available store views on Magento (websites also have to be there, but it is not possible to select them)
313
+
* Store View - select with list of available store views on Adobe Commerce (websites also have to be there, but it is not possible to select them)
285
314
286
315
After saving the form, it saved into key/value storage and user have to be redirected to dashboard. Success message have to be shown there.
0 commit comments