title: Modifications in woocommerce Add Product Page?
body: <p>I am using woocommerce for my site. I wanna to add some extra fields in add product page following to SKU, Regular Price, Sale Price.. Extra fields contains default values like 2% or 5%. when user enters Product price it should be calculated with default field values &amp; result should be displayed in another field..</p>
  
  <p>For Example:</p>
  
  <ol>
  <li>SKU               : 001 </li>
  <li>Regular Price(Rs) : 100 </li>
  <li>Added Text Field1 : 5%  (5% of 100 = 5) </li>
  <li><p>Added Text Field2 : 2%  (2% of 100 = 2)</p></li>
  <li><p>Answer Field      : 107 (100 + 5 + 2)</p></li>
  </ol>
  
  <p>Note: Answer field should be automatically calculated from values present in Regular Price/Sale Price + added text field1 + added text field2. </p>
  
  <p>How to do this???</p>
  
  <p>I have created fields using following function...</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>// Display Fields
  add_action( 'woocommerce_product_options_general_product_data', 'woo_add_custom_general_fields' );
  
  // Save Fields
  add_action( 'woocommerce_process_product_meta', 'woo_add_custom_general_fields_save' );
  
  function woo_add_custom_general_fields() {
   
    global $woocommerce, $post;
    
    echo '&lt;div class="options_group"&gt;';
    
    // Custom fields will be created here...
    // Text Field
  woocommerce_wp_text_input( 
   array( 
    'id'          =&gt; '_text_field', 
    'label'       =&gt; __( 'Our Commision', 'woocommerce' ), 
    'placeholder' =&gt; '5%',
    'desc_tip'    =&gt; 'true',
    'description' =&gt; __( 'Commision will be added to Product Actual Price', 'woocommerce' ) 
   )
  );
  // Text Field
  woocommerce_wp_text_input( 
   array( 
    'id'          =&gt; '_text_field', 
    'label'       =&gt; __( 'Payment Gateway Charges', 'woocommerce' ), 
    'placeholder' =&gt; '2%',
    'desc_tip'    =&gt; 'true',
    'description' =&gt; __( 'Payment Gateway Charges will be added to Product Actual Price', 'woocommerce' ) 
   )
  );
    echo 'Selling Price = Your Price + Our Commision + Payment Gateway Charges.';
    echo '&lt;/div&gt;';
   
  }</code></pre>
  </div>
  </div>
  </p>