Attributes values Products count
-
Hi, we need to add an attribute values product count on front end, as a simple line of text, dynamically changing.
Example: for attribute “Color” and value “White” – there is a 5 product in the store.
This counting already exists in the backend (see the screenshot), is there any way to put this counting as HTML/PHP/shortcode in frontend somehow? As a line with number, see example attached as screenshot. We basically need this count as a part of Nested Carousel, as an element that can be added there.
Attachments:
You must be
logged in to view attached files.
Hello,
The product counts for attribute terms are available in WooCommerce, but they are not output by default on the front-end in custom elements like the Nested Carousel.
As an alternative, you can use the WoodMart Layered Nav widget in the shop sidebar widget area and enable “Show product count”. This will display the product counts for each attribute value directly in the shop filters.
Best Regards,