Devdocs: Example missing on how to enter a version - Feedback on page: /extensions/b2b/

Created on 30 Apr 2021  路  4Comments  路  Source: magento/devdocs

General issue

Description:

https://devdocs.magento.com/extensions/b2b/

I try to install the B2B module, it just says that I have to execute this command and enter my version:

composer require magento/extension-b2b:<version>

I looked at this table to figure out the version I need.
Then I tried:

composer require magento/extension-b2b:2.4.2

But I get

[InvalidArgumentException]
Could not find package magento/extension-b2b in a version matching 2.4.2

So this documentation obviously needs a guide, since it misses some important information about the version.

Possible solutions:


Add guide

Additional information:

done

Most helpful comment

Hi @Eddcapone, the risk with that, is that multiple versions can be compatible, and the definition can differ per installation.
For instance, currently you can install B2B 1.1.0 up to 1.3.0 with Magento 2.3.0 to 2.4.1. You might define this as:

composer require "magento/extension-b2b:1.3.0"
composer require "magento/extension-b2b:>=1.1.0 <1.3.0"
composer require "magento/extension-b2b:~1.0"
composer require "magento/extension-b2b:>=1.3"
composer require "magento/extension-b2b:1.3.*

And more.

Currently only B2B version 1.3.1 is compatible with Magento 2.4.2. However, B2B 1.3.2 or 1.4.0 might also be compatible with 2.4.2 in the future. Depending on whether you want composer to automatically install the next B2B major, minor or patch version when it comes out, you can require B2B differently.

If the docs would give an example of installing B2B with Magento 2.4 in a specific way, that would not be right for everyone and it would be outdated as soon as a new B2B version comes out. Also the docs you are referring to are not specific to any Magento version and should provide a generic answer to maintainers of Magento stores in all versions.

All 4 comments

Hi @Eddcapone. Thank you for your report.
To help us process this issue please make sure that you provided sufficient information.

Please, add a comment to assign the issue: @magento I am working on this


Hi @Eddcapone, B2B 1.3.1 is the B2B version that is compatible with Magento 2.4.2.
Screen Shot 2021-04-30 at 13 36 29

I see, thank you. I thought we have to enter the magento version. The documentation should show an example on what to select for magento 2.4.2

Hi @Eddcapone, the risk with that, is that multiple versions can be compatible, and the definition can differ per installation.
For instance, currently you can install B2B 1.1.0 up to 1.3.0 with Magento 2.3.0 to 2.4.1. You might define this as:

composer require "magento/extension-b2b:1.3.0"
composer require "magento/extension-b2b:>=1.1.0 <1.3.0"
composer require "magento/extension-b2b:~1.0"
composer require "magento/extension-b2b:>=1.3"
composer require "magento/extension-b2b:1.3.*

And more.

Currently only B2B version 1.3.1 is compatible with Magento 2.4.2. However, B2B 1.3.2 or 1.4.0 might also be compatible with 2.4.2 in the future. Depending on whether you want composer to automatically install the next B2B major, minor or patch version when it comes out, you can require B2B differently.

If the docs would give an example of installing B2B with Magento 2.4 in a specific way, that would not be right for everyone and it would be outdated as soon as a new B2B version comes out. Also the docs you are referring to are not specific to any Magento version and should provide a generic answer to maintainers of Magento stores in all versions.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ArvidBaa picture ArvidBaa  路  8Comments

lenlorijn picture lenlorijn  路  3Comments

Lewiscowles1986 picture Lewiscowles1986  路  6Comments

astorm picture astorm  路  9Comments

terryx picture terryx  路  6Comments