oxid-academy / product-counter-service
Counts all available products in the shop.
Installs: 160
Dependents: 3
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Type:oxideshop-component
Requires
- php: ^8.0
README
This Package is part of the OXID Academy Development Basic Training.
Installation
composer require oxid-academy/product-counter-service
If you encounter any issues after installation, clear your source/tmp
directory.
Description
This OXID eShop Component counts all available products in the currently active shop.
Example
/** @var OxidAcademy\ProductCounterService\Counter $counter */ $container = ContainerFactory::getInstance()->getContainer(); $counter = $container->get(OxidAcademy\ProductCounterService\Counter::class); var_dump($counter->count());