oxid-academy/product-counter-service

Counts all available products in the shop.

1.0.2 2022-02-14 11:00 UTC

This package is auto-updated.

Last update: 2024-04-14 15:43:22 UTC


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());