If we want to display sale/new badges in a way that the code is as follows and if a product is not in sale, it is not rendered in the DOM (without using conditions), what is the solution?
The problem now is that the code is not clean and uses two span. On the other hand, for products that do not have a sale price, there is always an empty span.
its just making one call if else to check status true or false …etc
and trust me when it comes to woocommerce there are tooons more stuff we need to be concerned about for performance bricks conditions are nothing compare to core woo issues
hopefully this year they are going to solve some of these issues woo product team working good lately