Support Forums - Classified Ads Script Osclass

General osclass questions => Themes => Topic started by: Mebus on November 01, 2024, 10:24:50 AM

Title: osc_category_total_items() -> wrong number?
Post by: Mebus on November 01, 2024, 10:24:50 AM
Hallo,

we are using the function osc_category_total_items() to preview the number of items in a sub-category. Unfortunately osc_category_total_items() counts all items in the sub-category. I want it to count only the active items that will later be visible to the user.

How can I display the count of only the active classifieds in a category?

Thanks!

Mebus
Title: Re: osc_category_total_items() -> wrong number?
Post by: MB Themes on November 03, 2024, 12:29:03 PM
Function should count only suncategory active items, number is stored in category stats table.
Daily cron must also be enabled to have up-to-date statistics.