Variable product hooks. Closes #1201.

This commit is contained in:
Mike Jolley 2012-06-29 19:52:06 +01:00
parent 3cc8f41b90
commit d85de187f9
1 changed files with 3 additions and 3 deletions

View File

@ -34,11 +34,11 @@ global $woocommerce, $product, $post;
foreach ( $terms as $term ) {
if ( ! in_array( $term->slug, $options ) ) continue;
echo '<option value="' . $term->slug . '" ' . selected( $selected_value, $term->slug ) . '>' . $term->name . '</option>';
echo '<option value="' . $term->slug . '" ' . selected( $selected_value, $term->slug ) . '>' . apply_filters( 'woocommerce_variation_option_name', $term->name ) . '</option>';
}
} else {
foreach ($options as $option)
echo '<option value="' . $option . '" ' . selected( $selected_value, $option ) . '>' . $option . '</option>';
foreach ( $options as $option )
echo '<option value="' . $option . '" ' . selected( $selected_value, $option ) . '>' . apply_filters( 'woocommerce_variation_option_name', $option ) . '</option>';
}
}
?>