stenvdb / craft-out-of-stock Goto Github PK
View Code? Open in Web Editor NEWGet notified when products are (almost) out of stock.
License: MIT License
Get notified when products are (almost) out of stock.
License: MIT License
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.
With 1 email address in the settings, the notifications send. With more than 1, comma separated, the queue job fails. I have tried multiple combinations of email addresses and it keeps failing.
Adding
if(!is_array($recipient)) {
$recipient = explode(',',$recipient);
}
before $mail = new Message();
in the sendMail service fixed the issue.
Firstly - thanks for this super handy Craft plugin. Appreciate your work.
Secondly - wondering if it will be upgraded to be compatible with Craft 4 in the near future and if so, what the timeline would be? If not, then we'll need to figure out an alternative method to achieve the same functionality.
When installing this plugin with Composer 1, the following deprecation notice is output:
Deprecation Notice: Class
stenvdb\outofstock\assetbundles\OutOfStock\OutOfStockAsset
located in./vendor/stenvdb/craft-out-of-stock/src/assetbundles/outofstock/OutOfStockAsset.php
does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0.
Composer 2 was released on October 24, and is now the default version that will be installed, so itβs critical that this gets resolved ASAP, or people will start getting Class not found
errors.
To fix, run the following command:
> git mv src/assetbundles/outofstock src/assetbundles/OutOfStock
Then commit your change and tag a new release.
(Note that you must use the git mv
command, as Git tends to not notice case-sensitive file renames otherwise.)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.