GithubHelp home page GithubHelp logo

stenvdb / craft-out-of-stock Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 2.0 54 KB

Get notified when products are (almost) out of stock.

License: MIT License

PHP 54.20% HTML 45.80%
craftcms craft-plugin craft-commerce-plugin

craft-out-of-stock's People

Contributors

stenvdb avatar

Watchers

 avatar

craft-out-of-stock's Issues

Not compatible with Craft Commerce 3

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.

Not sending notification when multiple recipients specified in settings

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.

Craft 4 Compatibility?

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.

Fix Composer 2 compatibility

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.)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.