NO BUG: Bug in displaying the number of stock in the progress bar element

Browser: Chrome 115
OS: Windows

Hi bricks team,

I want to display the stock number of each product on the product page. When I put {woo_product_stock} in the percentage section of the Progress Bar element, it doesn’t work as expected and the element crashes.

Screenshot

Hey @jolia,

thanks for your report.

Please use the :value filter – {woo_product_stock:value} – as described in the academy.

However, I don’t understand the actual use case as the product stock is an absolute value, not a percentage.

Best,

André

Hi @aslotta,

You are right. At first I thought there was a way to not show the % in this element. I wanted to create something like the link below.

The only problem is that you cannot remove the percentage and only display the value in this element (Progress Bar).

I think it would be great if you improve the percentage field in the Progress Bar element like the image below.

Progress Bar

In this case, we can have complete control over the output.

cheers