[TYPO3-commerce] number of products
Simon Berg
druzil69 at gmx.de
Mon Aug 27 11:49:38 CEST 2007
"Ingo Schmitt" <mailinglisten at i-schmitt.de> schrieb im Newsbeitrag
news:mailman.1.1188203866.22574.typo3-project-commerce at lists.netfielders.de...
> Hi,
>
>> hi!
>> how is it possible to indicate the number of products that are in one
>> category, like books (24)?
>>
>
> so a count of active products?
>
> You could use
> tx_commerce_category::get_subproducts ( )
> and ocunt the entries. You could easily add this by woud own marker hook.
>
> Regards
>
> ingo
>
ok, my idea is to call this function in class.tx_commerce_navigation.php and
to put this function in init($content,$conf), like
$result = count ( this->category->get_subproducts() );
then print the result.
best regards, simon
>
>
>> best regards, simon
>>
>>
>
>
> Mit freundlichen Gruessen
> --
> Ingo Schmitt mailto:is at marketing-factory.de
> Marketing Factory Consulting GmbH http://typo3.marketing-factory.de/
> Content Management mit Typo3: Beratung - Schulung - Realisierung
More information about the TYPO3-project-commerce
mailing list