Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not compatible with Craft Commerce 3 #1

Open
matthisamoto opened this issue Mar 24, 2020 · 3 comments
Open

Not compatible with Craft Commerce 3 #1

matthisamoto opened this issue Mar 24, 2020 · 3 comments

Comments

@matthisamoto
Copy link

Looks like the compatibility ^2.1.0 is only checking against 2.X versions, and will not allow installation alongside Commerce 3. I do not know if there would need to be actual updates to this plugin for version 3, or if this is as simple as changing a number?

"require": {
    ...,
    "craftcms/commerce": "^2.1.0"
},
stenvdb/craft-out-of-stock 1.0.2 requires craftcms/commerce ^2.1.0 -> satisfiable by
craftcms/commerce[2.2.18, 2.2.17, 2.2.16, 2.2.15, 2.2.14, 2.2.13, 2.2.12, 2.2.11, 
2.2.10, 2.2.9, 2.2.8, 2.2.7, 2.2.6, 2.2.5, 2.2.4, 2.2.3, 2.2.2, 2.2.1, 2.2.0, 
2.1.13, 2.1.12.1, 2.1.12, 2.1.11, 2.1.10, 2.1.9, 2.1.0, 2.1.0.1, 2.1.0.2, 2.1.1, 
2.1.1.1, 2.1.2, 2.1.3, 2.1.3.1, 2.1.4, 2.1.5, 2.1.5.1, 2.1.5.2, 2.1.6, 2.1.6.1, 
2.1.7, 2.1.8] but these conflict with your requirements or minimum-stability.
@alexr8
Copy link

alexr8 commented Apr 28, 2020

Also got this issue - it would be great to see this plugin available for commerce 3

@chadcrowell
Copy link

chadcrowell commented Apr 30, 2020

The quick fix for this is to open composer.json inside the plugin and change

"craftcms/commerce": "^2.1.0"

to

"craftcms/commerce": ">=2.1.0"

I've also forked the plugin and put it up on packagist if you want to use it instead, you can uninstall the original plugin, then go to your project in terminal and type

composer require swishdigital/out-of-stock

then install the plugin in the Control Panel. Either way it will work fine in Commerce 3.

@damienbuckley
Copy link

Also got the same issue on install. Will try the above suggestion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants