title: Wordpress Woocommerce Custom Drop Down Issues
body: <p>I am trying to add a dynamic drop down select list on a variable product but the foreach loop is not working. The select box appears but it empty. Printing the array shows the proper info. I seem to be missing a state issue or something. </p>
  
  <p>Desired Functionality: Each user has a unique list of characters that they need to be able to select on this variable product page. (Single product with several options.) </p>
  
  <p>This code works perfectly on a theme template page. (childtheme)/testpage.php</p>
  
  <p>It does not work on the custom woocommerce template file. Location: (childtheme)/woocommerce/variable/single-product/add-to-cart/variable.php</p>
  
  <p>Here is the code:</p>
  
  <pre><code>&lt;?php 
  $clickedChar = $_GET['cc'];
  $myChars = fyxt_myCharList ($fyxtAccountID); 
  ?&gt;
  
  &lt;html&gt;
  &lt;select name="char_list" required&gt;
    &lt;option value=""&gt;Select...&lt;/option&gt;
  &lt;/html&gt;
  
  &lt;?php
      foreach($myChars as $clist){
          echo '&lt;option value="'.$clist-&gt;idfyxt_character.'"'.(($clickedChar == $clist-&gt;idfyxt_character) ? ' selected="selected"&gt;' : '&gt;' ).$clist-&gt;character_name.'&lt;/option&gt;'; 
      }
  ?&gt;
  &lt;html&gt;
  &lt;/select&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Like I said this code works perfectly on the testpage.php theme template page. But not on the woocommerce template page. It is not looping through the foreach. </p>
  
  <p>I also had issues calling the Wordpress User ID and was forced to include </p>
  
  <pre><code>$current_user = wp_get_current_user();
  </code></pre>
  
  <p>Specifically which is not normally needed on template pages. I suspect there is a similar issue here. Or at least a clue to what the issue is. </p>
  
  <p>Thank you for your help and ideas!</p>