Browser: Chrome 133.0.6943.142
OS: Windows
Hi bricks team,
1- I am using this code to display product rating as a round value in the code element.
<?php echo round(floatval("{woo_product_rating:value}"), 1); ?>In the builder, if a product has no rating value, the value 0 is returned, which is as expected. However, in the frontend, the 0 is not displayed and the value is empty.
2- The code element configuration is as shown below.
The svg icon size is smaller than it should be. Because the code element has a width of 100%. However, enabling “Render without wrapper” solves the problem on the front end.
Although this is not a fatal problem, it makes us see a more accurate result in the frontend instead of the builder. Technically, if the default width of the code element is auto, will it be a problem?
Thank you