jolia
August 28, 2023, 9:57pm
1
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.
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é
jolia
August 29, 2023, 8:15am
3
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.
Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est....
Price: $35.00
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.
In this case, we can have complete control over the output.
cheers