ePages 6.15.1 - DE_EPAGES/RemoteSearch/API/TLE/CategoryHandler.pm

Package DE_EPAGES::RemoteSearch::API::TLE::CategoryHandler

Count visiable products directly mapped to current category.

Functions

HasVisibleProduct

HasVisibleProduct

Calculates if Category and it's SubCategories have at least one visible Product. To cut down computational costs we return 1 (true), if a Category has more than 128 SubCategories.

Syntax
my $NoVisibleProducts = HasVisibleProduct($CategoryID );
Input
$CategoryID (interger)
id of category
Return
$NoVisibleProducts (integer/boolean)
number of visible products