Here is what was in my variable.php:
<table class="variations" cellspacing="0">
<tbody>
<?php foreach ( $attributes as $attribute_name => $options ) : ?>
<tr>
<td class="label"><label for="<?php echo sanitize_title( $attribute_name ); ?>"><?php echo wc_attribute_label( $attribute_name ); ?></label></td>
<td class="value"><select id="<?php echo esc_attr( sanitize_title( $attribute_name ) ); ?>" name="attribute_<?php echo sanitize_title( $attribute_name ); ?>" data-attribute_name="attribute_<?php echo sanitize_title( $attribute_name ); ?>">
<option value="">Choose your <?php echo __( wc_attribute_label( $attribute_name ), 'woocommerce' ) ?>…</option>
<?php
if ( is_array( $options ) ) {
if ( isset( $_REQUEST[ 'attribute_' . sanitize_title( $attribute_name ) ] ) ) {
$selected_value = $_REQUEST[ 'attribute_' . sanitize_title( $attribute_name ) ];
} elseif ( isset( $selected_attributes[ sanitize_title( $attribute_name ) ] ) ) {
$selected_value = $selected_attributes[ sanitize_title( $attribute_name ) ];
} else {
$selected_value = '';
}
// Get terms if this is a taxonomy - ordered
if ( taxonomy_exists( $attribute_name ) ) {
$terms = wc_get_product_terms( $post->ID, $attribute_name, array( 'fields' => 'all' ) );
// ============== BEGIN CUSTOM CODE ===================
$variations = $product->get_available_variations();
foreach ($variations as $variation)
{
$variation_data[$variation['attributes']['attribute_pa_size']] = $variation['variation_id'];
}
ksort( $variation_data ); //Sort by Key (eu-36, etc...)
$variation_data = array_values( $variation_data ); //Removes Array Keys, [leaving variation_id]
$i = 0;
foreach ( $terms as $term ) {
if ( ! in_array( $term->slug, $options ) ) {
continue;
}
$waitlist = '';
$variation_product_id = $variation_data[$i];
$variation_product = new WC_Product_Variation( $variation_product_id );
if ($variation_product->get_stock_quantity() <= 0) {
$waitlist = ' - Out of Stock';
}
$i++;
echo '<option value="' . esc_attr( $term->slug ) . '" ' . selected( sanitize_title( $selected_value ), sanitize_title( $term->slug ), false ) . '>' . apply_filters( 'woocommerce_variation_option_name', $term->name ) . $waitlist . '</option>';
}
} else {
foreach ( $options as $option ) {
echo '<option value="' . esc_attr( sanitize_title( $option ) ) . '" ' . selected( sanitize_title( $selected_value ), sanitize_title( $option ), false ) . '>' . esc_html( apply_filters( 'woocommerce_variation_option_name', $option ) ) . '</option>';
}
}
}
?>
</select> <?php
if ( sizeof( $attributes ) === $loop ) {
echo '<a class="reset_variations" href="#reset">' . __( 'Clear selection', 'woocommerce' ) . '</a>';
}
?></td>
</tr>
<?php endforeach;?>
</tbody>
</table>