Contact Contact Show All Awards & Recognition
Contact
Show All Awards & Recognition

alpin11/coreshop-advanced-inventory-bundle

not-reviewed

No Category

No author set

Version

v1.0.0

Last updated

Compatible Pimcore Version

-

Contact

-

No  Reviewer

alpin11/coreshop-advanced-inventory-bundle

No Category

Project Summary

Extends the inventory and availability checking with useful patterns and tools


Readme

CoreShop Advanced Inventory Bundle

This Bundle adds some simple but effective changes to the availability checker. It requires the 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

    composer require alpin11/coreshop-advanced-inventory-bundle

2. Activate

Enable the Bundle in Pimcore Extension Manager or via CLI

    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

    AppBundle\CoreShop\Inventory\Checker\MyAvailabilityChecker:
        tags:
            - { name: coreshop.inventory.availability_checker, priority: 200 }

4. Done

The 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.

Review status

not-reviewed

?>

No author set

Version

v1.0.0

Last updated

Compatible Pimcore Version

-

Contact

-

No  Reviewer