Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/elevantiq/coreshop-advanced-inventory-bundle
Advanced availability checking for CoreShop
https://github.com/elevantiq/coreshop-advanced-inventory-bundle
coreshop ecommerce pimcore-bundle
Last synced: 7 days ago
JSON representation
Advanced availability checking for CoreShop
- Host: GitHub
- URL: https://github.com/elevantiq/coreshop-advanced-inventory-bundle
- Owner: elevantiq
- License: other
- Created: 2020-05-08T11:26:31.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-05-08T11:46:53.000Z (over 4 years ago)
- Last Synced: 2024-10-31T13:11:45.668Z (15 days ago)
- Topics: coreshop, ecommerce, pimcore-bundle
- Language: PHP
- Size: 5.86 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# CoreShop Advanced Inventory Bundle
This Bundle adds some simple but effective changes to the availability checker.
It requires the [coreshop/inventory-bundle](https://github.com/coreshop/inventory-bundle) repository which will be installed automatically.## TO DOs
✅ Register custom availability checkers as services
➡️ Add a basic toolkit for cached availability checking (e.g fetching stock levels from API)
## Installation
#### 1. Composer
```bash
composer require alpin11/coreshop-advanced-inventory-bundle
```#### 2. Activate
Enable the Bundle in Pimcore Extension Manager or via CLI```bash
bin/console pimcore:bundle:enable CoreShopAdvancedInventoryBundle
```#### 3. Setup
Add a custom availability checker class with the interface `CoreShop\Bundle\AdvancedInventoryBundle\Checker\AvailabilityCheckerInterface`
Then register your class as a service and tag it with `coreshop.inventory.availability_checker`
```yaml
AppBundle\CoreShop\Inventory\Checker\MyAvailabilityChecker:
tags:
- { name: coreshop.inventory.availability_checker, priority: 200 }
```
#### 4. DoneThe bundle automatically overrides the `coreshop.inventory.availability_checker.default` so you don't have
to update any of your services. It also makes the alias public, so you can directly access it through the container.