1

I have a variable product with the following size parameters:

Length
Width
Height
Weight
Diameter

In the product edit page I have Length, Width, Height, Weight

How do I go about adding a Diameter?

On the front end I would like to call it like this

<?php echo $product->get_diameter() . get_option( 'woocommerce_dimension_unit' ); ?>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.