parent
e19505c6ab
commit
30475c31af
|
@ -139,7 +139,7 @@ function variable_product_type_options() {
|
|||
if ($attribute['is_taxonomy']) :
|
||||
$post_terms = wp_get_post_terms( $post->ID, $attribute['name'] );
|
||||
foreach ($post_terms as $term) :
|
||||
echo '<option '.selected($variation_selected_value, $term->slug, false).' value="'.$term->slug.'">' . apply_filters( 'woocommerce_variation_option_name', $term->name ) . '</option>';
|
||||
echo '<option '.selected($variation_selected_value, $term->slug, false).' value="'.$term->slug.'">'.$term->name.'</option>';
|
||||
endforeach;
|
||||
else :
|
||||
$options = explode('|', $attribute['value']);
|
||||
|
|
Loading…
Reference in New Issue