Hi guys,
For a client we made a small adjustment in CS-Cart. We show in the subcategories overview the number of products from the category. See our code:
- {assign var="item_url" value="categories.view&category_id=`$item.category_id`"|fn_url} {$item.category_id|fn_get_category_product_count}{$item.$name} {if $addons.category_count.show_product_count} {/if}
Unfortunately now he shows the number of all products in the category. We also have products that are disabled. Is there a simple check for this?
Many Thanks!