heimrichhannot / contao-isotope-stock-bundle
Add stock management to Isotope eCommerce Contao extension.
Installs: 84
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 7
Forks: 0
Open Issues: 1
Type:contao-bundle
Requires
- php: ^8.1
- contao/core-bundle: ^4.13
- doctrine/dbal: ^2.12 || ^3.0
- heimrichhannot/contao-utils-bundle: ^2.232.0 || ^3.0.0-beta
- symfony/http-kernel: ^5.4
- symfony/translation-contracts: ^1.0 || ^2.0 || ^3.0
README
Oh no, another isotope stock bundle? Yes, but this is just the stock management part of isotope_plus, istope-bundle and isotope-exstension. 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 Contao CMS 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
-
Install via composer or contao manager:
composer require heimrichhannot/contao-isotope-stock-bundle
-
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.
Twig filter
The twig filter stock_attribute
can be used to check if a product uses a stock attribute.
{% if product|stock_attribute('initialStock') %} {{ (roduct.stock / product.initialStock * 100)|round }}% {% endif %}