Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Latest commit

 

History

History
21 lines (16 loc) · 633 Bytes

README.md

File metadata and controls

21 lines (16 loc) · 633 Bytes

OXID Academy Product Counter Service

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