I want to show the name of an attribute at the drop-down-menu when no variation is selected. This is the code:
function wc_dropdown_variation_attribute_options( $args = array() ) {
$args = wp_parse_args( apply_filters( 'woocommerce_dropdown_variation_attribute_options_args', $args ), array(
'options' => false,
'attribute' => false,
'product' => false,
'selected' => false,
'name' => '',
'id' => '',
'class' => '',
'show_option_none' => __( 'Choose:', 'woocommerce' ),
) );
It should be: "Choose: attribute-name" e.g. Color or Size etc.
Can anyone help me?