title: List product variations using wc_dropdown_variation_attribute_options in Woocommerce
body: <p>I am new to woocommerce and i am trying to display the product variations as a drop-down list in shop page. But the variations are not getting populated in the select option list. below is my code snippet.</p>
  
  <pre><code>&lt;?php foreach ( $product-&gt;get_attributes() as $attribute_name =&gt; $options ) : ?&gt;
                      &lt;tr&gt;
                          &lt;td class="label"&gt;&lt;label for="&lt;?php echo sanitize_title( $attribute_name ); ?&gt;"&gt;&lt;?php echo wc_attribute_label( $attribute_name ); ?&gt;&lt;/label&gt;&lt;/td&gt;
                          &lt;td class="value"&gt;
                              &lt;?php
                                  //$selected = isset( $_REQUEST[ 'attribute_' . sanitize_title( $attribute_name ) ] ) ? wc_clean( urldecode( $_REQUEST[ 'attribute_' . sanitize_title( $attribute_name ) ] ) ) : $product-&gt;get_variation_default_attribute( $attribute_name );
                                  //wc_dropdown_variation_attribute_options( array( 'options' =&gt; $options, 'attribute' =&gt; $attribute_name, 'product' =&gt; $product, 'selected' =&gt; $selected ) );
                                  $args=array();
                                  $result = wc_dropdown_variation_attribute_options($args);
                                  echo end( $attribute_keys ) === $attribute_name ? apply_filters( 'woocommerce_reset_variations_link', '&lt;a class="reset_variations" href="#"&gt;' . __( 'Clear', 'woocommerce' ) . '&lt;/a&gt;' ) : '';
                              ?&gt;
                          &lt;/td&gt;
                      &lt;/tr&gt;
                  &lt;?php endforeach;?&gt;
  </code></pre>