Home Forums WoodMart support forum Attributes values Products count

Attributes values Products count

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #705119

    swamlabroma
    Participant

    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.
    #705213

    Aizaz Imtiaz Awan
    Keymaster
    Xtemos team

    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,

Viewing 2 posts - 1 through 2 (of 2 total)