title: Woocommerce Dynamic Checkout Form fields
body: <p>I am currently working on a wordpress website. I customized my woo commerce checkout page to include an additional form field with this code in my function.php child theme. It works well.</p>
  
  
  
  <pre class="lang-html prettyprint-override"><code>add_action('woocommerce_after_order_notes', 'my_custom_checkout_fields');
  
  function my_custom_checkout_fields($checkout){
  
  echo '&lt;div id="my_custom_checkout_fields"&gt;&lt;h2&gt;' .__('New Field').'&lt;/h2&gt;';
  
  woocommerce_form_field('my_field_name', array(
      'type' =&gt;'text',
      'class'=&gt;array('my-field-class form-row-wide'),
      'label'=&gt;__('Fill this field'),
      'placeholder'=&gt;__('Enter Something'),
      ), $checkout-&gt;get_value('my_field_name'));
  
  echo '&lt;/div&gt;';
  
  }
  </code></pre>
  
  <p>
  I want to have this form field repeat itself in accordance to the quantity of a product ordered. Lets say I ordered a product 3 times, I want the form field to appear 3 times at the checkout. Help Anyone?</p>