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

oxid-academy/product-counter-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Counts all available products in the shop.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages