Skip to content

Commit

Permalink
Merge pull request #45 from AdobeDocs/kh_add-link
Browse files Browse the repository at this point in the history
Add links to repo
  • Loading branch information
keharper authored Jun 23, 2023
2 parents 34a55f5 + 1e617a3 commit aa88840
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
2 changes: 2 additions & 0 deletions src/pages/amazon-sales-channel/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ Amazon Sales Channel on App Builder is based on an existing PHP extension (Amazo

This app is not intended or supported for production use. While the provided capabilities are robust, they are only to be used as a reference to build your own applications. Merchants looking to connect and synchronize their Amazon store with Commerce should use the existing [Amazon Sales Channel PHP extension](https://marketplace.magento.com/magento-module-amazon.html), which can be acquired through Commerce Marketplace, or implement another integration.

To install this app, clone the [aio-amazon-sales-channel](https://github.com/adobe/amazon-sales-channel-app-builder) repo and follow the procedures described in [Prequisites](prerequisites.md) and [Install the Amazon Sales Channel app](installation.md).

## Application functionality

Amazon Sales Channel on App Builder connects Adobe Commerce and Amazon to unify and synchronize your selling platforms. This type of integration allows merchants to manage their product and order data from a single, up-to-date experience. The sample app functionality represents only a subset of the original PHP extension's capabilities. We chose this subset of functionality based on the value provided to partners and developers looking to understand and use our next generation extensibility capabilities.
Expand Down
24 changes: 11 additions & 13 deletions src/pages/amazon-sales-channel/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Review the [Prerequisites](prerequisites.md) before you attempt to install the A

## Clone application source code

Clone the `amazon-sales-channel-app-builder` repo to your working directory:
Clone the [`amazon-sales-channel-app-builder` repo](https://github.com/adobe/amazon-sales-channel-app-builder) to your working directory:

```bash
git clone git@github.com:adobe/amazon-sales-channel-app-builder.git <custom-directory>
Expand Down Expand Up @@ -138,17 +138,16 @@ See [I/O Events for Adobe Commerce](https://developer.adobe.com/commerce/events/
### Subscribe to Adobe Commerce events
1. Ensure that your Adobe Commerce instance is registered as an event provider as described in [Subscribe and register events
](https://developer.adobe.com/commerce/events/get-started/configure-commerce/#subscribe-and-register-events).
1. Ensure that your Adobe Commerce instance is registered as an event provider as described in [Subscribe and register events](https://developer.adobe.com/commerce/events/get-started/configure-commerce/#subscribe-and-register-events).
1. Register the `observer.catalog_product_save_after` event in your project in [developer console](https://developer.adobe.com/console/).
* Add a new service of type `Event`.
* Select your event provider.
* Choose the `observer.catalog_product_save_after` event subscription.
* Select the JWT credential.
* Set a name for your event registration.
* Select your Runtime action, which should be similar to `amazon-app/__secured_catalog-product-save-after-listener - <your project>-<your workspace>`, then save the event.
* Add a new service of type `Event`.
* Select your event provider.
* Choose the `observer.catalog_product_save_after` event subscription.
* Select the JWT credential.
* Set a name for your event registration.
* Select your Runtime action, which should be similar to `amazon-app/__secured_catalog-product-save-after-listener - <your project>-<your workspace>`, then save the event.
At this point, if you go to the `Debug tracing` area in your new event created inside the [developer console](https://developer.adobe.com/console/), you should be able to see any incoming events from your Adobe Commerce instance.
Expand Down Expand Up @@ -188,14 +187,13 @@ aio app test #runs UI and actions tests
aio app test --e2e #runs end-to-end tests
```

#### Adding additional action dependencies
### Adding additional action dependencies

You have two options to resolve your action's dependencies:
* **Packaged action file**: Add your actions dependencies to the root `package.json` and install them using `npm install`. Then set the `function`
field in `ext.config.yaml` to point to the **entry file** of your action folder. `webpack` is used to package your code and dependencies into a single minified `js` file. The action will then be deployed as a single file. Use this method if you want to reduce the size of your actions.
* **Packaged action file**: Add your actions dependencies to the root `package.json` and install them using `npm install`. Then set the `function` field in `ext.config.yaml` to point to the **entry file** of your action folder. `webpack` is used to package your code and dependencies into a single minified `js` file. The action will then be deployed as a single file. Use this method if you want to reduce the size of your actions.
* **Zipped action folder**: In the folder containing the action code, add a `package.json` with the action dependencies. Then set the `function` field in `ext.config.yaml` to point to the **folder** of that action. The required dependencies are installed within that directory. In addition, the process zips the folder before deploying it as a zipped action. Use this method if you want to keep your action's dependencies separated.
* **Zipped action folder**: In the folder containing the action code, add a `package.json` with the action dependencies. Then set the `function` field in `ext.config.yaml` to point to the **folder** of that action. The required dependencies are installed within that directory. In addition, the process zips the folder before deploying it as a zipped action. Use this method if you want to keep your action's dependencies separated.

### Debugging in VS Code

Expand Down

0 comments on commit aa88840

Please sign in to comment.