Is there a better variable to use for showing this product count? I'll explain:
On a number of my category pages, I show a text link to the subcategories that reads, "See all X# products >>>" The variable I'm using to display the number of products in that sub category is this:
The trouble is that product count includes products that are out of stock. They're active, with inventory tracking on, but none are in stock and therefore hidden. I have a subcategory with about 20 in-stock and active products, and about 220 that are out of stock and hidden. So the text link shows "See all 240 products >>>" when there are really only 20 available for sale.
Is there a better variable to use? I went bonkers scrolling through the Var List for my category page in the admin looking for something that would work.
Thanks,
Mark
On a number of my category pages, I show a text link to the subcategories that reads, "See all X# products >>>" The variable I'm using to display the number of products in that sub category is this:
Code:
&mvt:subcat:pcount;
Is there a better variable to use? I went bonkers scrolling through the Var List for my category page in the admin looking for something that would work.
Thanks,
Mark
Comment