I am displaying a custom meta field on the single product page:
function my_custom_field() {
global $product;
$value = get_post_meta( $product->id, 'color', true );
if ( ! empty( $value ) ) {
echo $value;
}
add_action('woocommerce_single_product_summary', 'my_custom_field', 30 );
Now I have several more custom fields that need to be displayed (just the values, not the labels).
How can I add these onto the code?