Skip to content

Commit 37b85d8

Browse files
committed
Update prerequisites
1 parent 0875cab commit 37b85d8

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

src/pages/amazon-sales-channel/prerequisites.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,31 @@ You must install [nodeJS 16.13+](https://nodejs.org/en/download) as your JavaScr
1212
## Adobe Commerce
1313

1414
* (Required) Adobe Commerce 2.4.5+
15-
* (Optional) [Adobe Commerce Admin UI SDK](https://developer-stage.adobe.com/commerce/extensibility/admin-ui-sdk/) enables you to attach the App Builder application to the Adobe Commerce Admin.
15+
* (Optional) [Adobe Commerce Admin UI SDK](https://developer.adobe.com/commerce/extensibility/admin-ui-sdk/) enables you to attach the App Builder application to the Adobe Commerce Admin.
1616

1717
In addition to these software requirements, you must have access to the Commerce environment from an external network. You must also have the ability to add API integrations.
1818

19+
### Create custom attributes
20+
21+
To subscribe to catalog update events from Adobe Commerce, you must create the following custom attributes in **Stores** > **Attributes** > **Product** > **Add New Attribute**:
22+
23+
| Default label | Attribute Code | Scope | Notes |
24+
| --- | --- | --- | --- |
25+
| ASIN | `asin` | Global | |
26+
| Amazon Condition | `amazon_condition` | Global | Condition of the listing item. The [Amazon docs](https://developer-docs.amazon.com/sp-api/docs/listings-items-api-v2021-08-01-reference#conditiontype) list the possible values. |
27+
28+
### Subscribe to catalog update events
29+
30+
Use the following steps to configure Commerce and subscribe to catalog update events. The [_Getting started with Adobe I/O Events for Adobe Commerce_](https://developer.adobe.com/commerce/events/get-started/configure-commerce/) guide provides additional context.
31+
32+
1. Register your Commerce instance as an event provider. See [Configure Adobe Commerce](https://developer.adobe.com/commerce/events/get-started/configure-commerce/) for details.
33+
34+
1. After you have configured your instance is configured and the event provider is created, use the following command to subscribe to the `observer.catalog_product_save_after` event:
35+
36+
```bash
37+
bin/magento events:subscribe observer.catalog_product_save_after --fields=sku --fields=price --fields=stock_data.qty --fields=asin --fields=amazon_condition --fields=name
38+
```
39+
1940
## Adobe Developer Console
2041

2142
The [Adobe Developer Console](https://developer.adobe.com/developer-console/docs/guides/getting-started/) allows you to create projects and begin your development journey. Create a project and make sure that you have access to the following:

0 commit comments

Comments
 (0)