cancel
Showing results for 
Search instead for 
Did you mean: 

How to install Magento Amazon Sales Channel module using composer?

SOLVED

How to install Magento Amazon Sales Channel module using composer?

I would like to install the Magento Amazon Sales Channel module using composer in Magento 2.3.4

Here is the Amazon Sales Channel product page. The installation instructions I found are here.

First some basic questions.

  1. When installing via composer, do I need to download and extract the package contents? The instructions indicate I need to manually download the package. Is that correct?

  2. Where should I place the contents of the downloaded package? The instructions say:

  1. Export the contents to your Magento root.

However, that makes little sense to me. The content are:

Api
Block
Comm
composer.json
Configuration
Console
Controller
Cron
Domain
etc
Logger
__MACOSX
Model
Msi
Plugin
registration.php
Setup
Ui
view

I definitely do not want all those files and folders in my Magento root. So where should they go?

  1. Follow all instructions for Extension Installation. Step 1 there is:

Navigate to your Magento project directory and update your composer.json file.

$ composer require <component-name>:<version>

The phrase "update your composer.json file" makes it sound like you are supposed to get out a text editor and make an edit. But that can't be correct. This is a CLI command. I assume it does not mean I should manually edit the main composer.json file in Magento root. So I tried running this command as the Magento filesystem owner:

$ composer require magento/module-amazon:4.3.0

That gives this error:

[InvalidArgumentException]
Could not find a matching version of package magento/module-amazon. Check the package spelling, your version constraint and that the package is available in a stability which matches your minimum-stability (stable).

As far as I can see, everything matches. I have magento/module-amazon in my command, and that is the exact name in the module's own composer.json file. The version numbers match too.

less /var/www/magento/vendor/magento/module-amazon/composer.json

{
    "name": "magento/module-amazon",
    "description": "Provides Amazon Integration.",
    "type": "magento2-module",
    "version": "4.3.0",
    "license": [
    "OSL-3.0",
    "AFL-3.0"
    ],
    "require": {
    "php": "~7.0.13 || ~7.1.0 || ~7.2.0 || ~7.3.0",
    "ext-json": "*",
    "magento/module-backend": "^100.2 || ^101.0",
    "magento/module-catalog": "^102.0 || ^103.0",
    "magento/module-catalog-import-export": "^100.2 || ^101.0",
    "magento/module-catalog-inventory": "^100.2",
    "magento/module-catalog-rule": "^101.0",
    "magento/module-customer": "^101.0 || ^102.0",
    "magento/module-directory": "^100.2",
    "magento/module-eav": "^101.0 || ^102.0",
    "magento/module-payment": "^100.2",
    "magento/module-quote": "^101.0",
    "magento/module-rule": "^100.2",
    "magento/module-sales": "^101.0 || ^102.0",
    "magento/module-shipping": "^100.2",
    "magento/module-store": "^100.2 || ^101.0",
    "magento/module-tax": "^100.2",
    "magento/module-ui": "^101.0",
    "magento/framework": "^101.0 || ^102.0",
    "magento/services-connector": "^1.0"
    },
    "suggest": {
    "magento/inventory-composer-metapackage": "To support Multi-source Inventory"
    },
    "autoload": {
        "files": [
            "registration.php"
        ],
        "psr-4": {
            "Magento\\Amazon\\": ""
        }
    }
}

What am I missing?

 

Does anyone have a link to video that walks through the process?

1 ACCEPTED SOLUTION

Accepted Solutions

Re: How to install Magento Amazon Sales Channel module using composer?

I was able to successfully install Amazon Sales Channel. Create a new folder under /vendor/magento called module-amazon. Unzip the contents of the module that you downloaded into this folder. make sure the permissions on this folder match the permissions of all the other subfolders there. For me it was 2755.

Then run

composer require magento/module-amazon:4.3.0.

After that, run

composer require magento/services-connector:~1.0.3

And finally

bin/magento setup:upgrade

 

Make sure you run all of these commands as sudo or root user.

 

That worked for me. I tested this on a non-production install of magento first just to be sure.

 

View solution in original post

5 REPLIES 5

Re: How to install Magento Amazon Sales Channel module using composer?

@awesomecowboy ,

to install Amazon Sales Channel you need to follow these steps mentioned: 

 

https://devdocs.magento.com/extensions/amazon-sales/

 

 

Re: How to install Magento Amazon Sales Channel module using composer?

My questions are based on the ambiguous and incomplete information provided
in the link you are suggesting. Please read through the specific points.

Please type your reply above this line -##

Re: How to install Magento Amazon Sales Channel module using composer?

I am looking for the same answer. When looking at the folder structure in the zip file, it doesn't seem like it belongs in my Magento root folder. The install instructions are incomplete. If anyone has detailed instructions or a video, that would help a great deal.

Re: How to install Magento Amazon Sales Channel module using composer?

I was able to successfully install Amazon Sales Channel. Create a new folder under /vendor/magento called module-amazon. Unzip the contents of the module that you downloaded into this folder. make sure the permissions on this folder match the permissions of all the other subfolders there. For me it was 2755.

Then run

composer require magento/module-amazon:4.3.0.

After that, run

composer require magento/services-connector:~1.0.3

And finally

bin/magento setup:upgrade

 

Make sure you run all of these commands as sudo or root user.

 

That worked for me. I tested this on a non-production install of magento first just to be sure.

 

View solution in original post

Re: How to install Magento Amazon Sales Channel module using composer?

The Amazon Sales Channel extension installs and adds features to integrate your Magento catalog with Amazon Seller Accounts to sell through the Amazon Marketplace. To review additional information, see the Amazon Sales Channel Marketplace page.

Requirements
Magento Instance: Amazon Sales Channel can be installed on instances with Magento Open Source, Adobe Commerce, and Cloud for Adobe Commerce versions 2.3.x. We no longer support the extension on Magento 2.1, Magento 2.2, or Magento 1.
Magento Web Account: You should have a Magento web account, which is used to create and track an API key.
API Key: Get a Amazon Sales Channel API key through your Magento web account. The following instructions include these steps. Before Start my question is what is gtin in amazon Install
Amazon Sales Channel install is a .zip file available from the Magento Marketplace. It includes a composer.json which provides the name magento/amazon-sales-channel and the available version.

Log in with your Magento web account.

Click the Marketplace tab, then click My Purchases.

Locate and select Amazon Sales Channel.

On the extension page, select the version.

For the component name and version, click Technical Details.

Click Download.
Export the contents to your Magento root.

Follow all instructions for Extension Installation.

Update the services connector entry in your composer.json file.

Add the extension’s name and version to your composer.json file.

Navigate to your Magento project directory and update your composer.json file.

composer require magento/services-connector:~1.0.3
Enter your authentication keys. Your public key is your username; your private key is your password.

Wait for Composer to finish updating your project dependencies and make sure there aren’t any errors.

After installing, enter an API Key to complete configuration.