Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/heimrichhannot/contao-isotope-stock-bundle
A stock extension for isotope compatible with our legacy isotope extensions.
https://github.com/heimrichhannot/contao-isotope-stock-bundle
Last synced: about 1 month ago
JSON representation
A stock extension for isotope compatible with our legacy isotope extensions.
- Host: GitHub
- URL: https://github.com/heimrichhannot/contao-isotope-stock-bundle
- Owner: heimrichhannot
- License: lgpl-3.0
- Created: 2023-11-06T07:30:44.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-16T12:53:23.000Z (3 months ago)
- Last Synced: 2024-09-16T14:57:41.490Z (3 months ago)
- Language: PHP
- Size: 53.7 KB
- Stars: 0
- Watchers: 7
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Contao Isotope Stock Bundle
> Oh no, another isotope stock bundle? Yes, but this is just the stock management part of [isotope_plus](https://github.com/heimrichhannot/contao-isotope_plus), [istope-bundle](https://github.com/heimrichhannot/contao-isotope-bundle) and [isotope-exstension](https://github.com/heimrichhannot/contao-isotope-extension-bundle).
> It is a standalone bundle, so you can just migrate from the old extensions to this one if you only need the stock part.
> Or maybe this make it easier to migrate to another bundle. Or you need a stock management extension and you like this one. Your choice :)This bundle add stock management to [Isotope eCommerce](https://github.com/isotope/core#isotope-ecommerce) [Contao CMS](https://contao.org/de/) extension.
## Features
- add a stock management to Isoptope eCommerce
- set stock (and optional initial stock) on products
- evaluate stock on order process
- set max order size per product
- stock report frontend module
- twig filter## Usage
### Installation
1. Install via composer or contao manager:
```bash
composer require heimrichhannot/contao-isotope-stock-bundle
```1. Update your database.
### Setup
To activate stock management, the initial stock field or the max order size feature,
just activate these attributes in your product type configuration.### Stock report frontend module
The stock report frontend module shows all products with stock management and their stock.
![screenshot_stock_report.png](docs%2Fscreenshot_stock_report.png)
### Twig filter
The twig filter `stock_attribute` can be used to check if a product uses a stock attribute.
```twig
{% if product|stock_attribute('initialStock') %}
{{ (roduct.stock / product.initialStock * 100)|round }}%
{% endif %}
```