Should check price before adding units
-
It would be nice if wc_uom_render_output() checked if price is non empty (it can be empty)
So
// Check if variable OR UOM text exists.
if ( $woo_uom_output ) :would become
// Check if variable OR UOM text exists.
if ( $price && $woo_uom_output ) :This would prevent outputting just the units of measure when there is no price.
Thanks
- The topic ‘Should check price before adding units’ is closed to new replies.