PHPackages                             thelia/stock-alert-module - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. thelia/stock-alert-module

ActiveThelia-module

thelia/stock-alert-module
=========================

2.0.2(1y ago)3797↓50%11[2 issues](https://github.com/thelia-modules/StockAlert/issues)[2 PRs](https://github.com/thelia-modules/StockAlert/pulls)LGPL-3.0+PHP

Since Feb 26Pushed 10mo ago6 watchersCompare

[ Source](https://github.com/thelia-modules/StockAlert)[ Packagist](https://packagist.org/packages/thelia/stock-alert-module)[ RSS](/packages/thelia-stock-alert-module/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (19)Used By (0)

Stock Alert

This module has two different features :

- send email notifications when the quantity in stock is under a certain limit.
- allow customers to subscribe to an unavailable product to be notified when it will be available again.

Installation
------------

[](#installation)

### Manually

[](#manually)

This module requires Thelia in version 2.1

It must be placed into your modules/ directory (local/modules/).

You can download the .zip file of this module or create a git submodule into your project like this :

cd /path-to-thelia git submodule add  local/modules/StockAlert

Next, go to your Thelia admin panel for module activation.

### Composer

[](#composer)

Add it in your main thelia composer.json file

```
composer require thelia/stock-alert-module ~2.0

```

Configuration
-------------

[](#configuration)

You can activate or not the admin notifications on the configuration page of the module. You can also define a threshold for product quantity and a list of emails.

For the customer, the display is managed by hooks. So if you deactivate the hook `product.details-bottom` and `product.javascript-initialization` this feature will be deactivated for customers.
You can also customize the display in redefining the html templates in your frontOffice template. You have to copy the files inside `templates/frontOffice/default/` in your template, in directory `modules/StockAlert/`. Files should have the same names.

You can also customize emails sent by the module. You have to copy files from `templates/email/default/`in your email template directory, edit them, and select this template in the **Mailing templates** configuration page.

Hooks
-----

[](#hooks)

This module adds a new hook:

```
product.stock-alert

```

You can place it anywhere in your template and use it instead of the `product.details-bottom` hook if you don't want to use it.

It calls the same function as the `product.details-bottom` hook and renders the ```product-details-bottom.html`` template`

**Important:** don't forget to disable the hook you don't want to use (`product.details-bottom` for example).

###  Health Score

40

—

FairBetter than 87% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~229 days

Recently: every ~146 days

Total

16

Last Release

653d ago

Major Versions

1.2.6 → 2.0.02022-11-28

1.2.11 → 2.0.12023-03-24

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2196919?v=4)[thelia](/maintainers/thelia)[@thelia](https://github.com/thelia)

---

Top Contributors

[![lopes-vincent](https://avatars.githubusercontent.com/u/6057206?v=4)](https://github.com/lopes-vincent "lopes-vincent (6 commits)")[![bibich](https://avatars.githubusercontent.com/u/1215555?v=4)](https://github.com/bibich "bibich (5 commits)")[![julescournut](https://avatars.githubusercontent.com/u/26310511?v=4)](https://github.com/julescournut "julescournut (4 commits)")[![zawaze](https://avatars.githubusercontent.com/u/37273643?v=4)](https://github.com/zawaze "zawaze (2 commits)")[![lunika](https://avatars.githubusercontent.com/u/767834?v=4)](https://github.com/lunika "lunika (1 commits)")[![NicolasBarbey](https://avatars.githubusercontent.com/u/26166378?v=4)](https://github.com/NicolasBarbey "NicolasBarbey (1 commits)")[![roadster31](https://avatars.githubusercontent.com/u/2197734?v=4)](https://github.com/roadster31 "roadster31 (1 commits)")[![Lucanis](https://avatars.githubusercontent.com/u/6052481?v=4)](https://github.com/Lucanis "Lucanis (1 commits)")

### Embed Badge

![Health badge](/badges/thelia-stock-alert-module/health.svg)

```
[![Health](https://phpackages.com/badges/thelia-stock-alert-module/health.svg)](https://phpackages.com/packages/thelia-stock-alert-module)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
