I’m trying to figure out how to keep the parent drop-down to always show the attributes no matter what size is chosen via the child drop down. right now if we choose posters and pick size from the child drop down. If the other parent attributes don’t have that size that are hidden. I’m in the variable.php. I’ve already replicated in themes. The parent user option refreshes the dropdown to show all. we’d like for that to always show all so users can always see the attributes and selection.

what do you guys think about this?

====================================================================================

ID; ?>” data-product_variations=””>

$options ) : $loop++; ?>

“>
” name=”attribute_”>

‘name’, ‘hide_empty’ => false, ‘menu_order’ => false );
break;
case ‘id’ :
$args = array( ‘orderby’ => ‘id’, ‘order’ => ‘ASC’, ‘menu_order’ => false, ‘hide_empty’ => false );
break;
case ‘menu_order’ :
$args = array( ‘menu_order’ => ‘ASC’, ‘hide_empty’ => false );
break;
}

$terms = get_terms( $name, $args );

foreach ( $terms as $term ) {
if ( ! in_array( $term->slug, $options ) )
continue;

echo ‘slug ) . ‘” ‘ . selected( sanitize_title( $selected_value ), sanitize_title( $term->slug ), false ) . ‘>’ . apply_filters( ‘woocommerce_variation_option_name’, $term->name ) . ”;
}
} else {

foreach ( $options as $option ) {
echo ” . esc_html( apply_filters( ‘woocommerce_variation_option_name’, $option ) ) . ”;
}

}
}
?>
‘ . __( ‘Clear selection’, ‘woocommerce’ ) . ”;
?>

single_add_to_cart_text(); ?>

id; ?>” />
ID ); ?>” />

Read more here: Variable Parent drop-down stay open showing All Attributes no matter what child is selected.


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Related Wordpress search:

, , , , , , , , ,

Wordpress related questions and answers: