https://github.com/silvercommerce/stock
Simple stock keeping for SilverCommerce products
https://github.com/silvercommerce/stock
silverstripe silverstripe-4 silverstripe-module
Last synced: 5 months ago
JSON representation
Simple stock keeping for SilverCommerce products
- Host: GitHub
- URL: https://github.com/silvercommerce/stock
- Owner: silvercommerce
- License: bsd-3-clause
- Created: 2018-11-16T11:42:18.000Z (over 7 years ago)
- Default Branch: 1
- Last Pushed: 2025-07-02T12:50:05.000Z (12 months ago)
- Last Synced: 2025-10-12T16:39:27.892Z (8 months ago)
- Topics: silverstripe, silverstripe-4, silverstripe-module
- Language: PHP
- Homepage:
- Size: 41 KB
- Stars: 0
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: changelog.md
- Contributing: contributing.md
- License: LICENSE
Awesome Lists containing this project
README
# SilverCommerce stock tracking
Simple module for tracking stock levels for SilverCommerce products
## Install
Install this module using composer:
composer require silvercommerce/stock
## Usage
Once installed this module adds some more fields to a `CatalogueProduct` (which can be changed
via a Product's "Settings" tab):
`Stocked`: Is this product stocked (should SilverCommerce track stock levels against it)?
`StockLevel`: What is the current stock level for the current product.
`LowStock`: What is the low stock level for this product? If the stock level gets below this level,
the catalogue admin gridfield will display a notification.
`AvailableOutOfStock`: Can this product be purchased when out of stock?
## Email Notifications
This module allows email notifications to be sent when stock levels get low, are out of stock or
are understocked (less than 0).
To enable email notifications, you have to add the email addresses you want to recieve notifications
to the `StockController` via config.yml, eg:
SilverCommerce\Stock\Helpers\StockController:
send_alerts_to:
- email1@domain.com
- email2@domain.com