Title: madbug's Replies | WordPress.org

---

# madbug

  [  ](https://wordpress.org/support/users/madbug/)

 *   [Profile](https://wordpress.org/support/users/madbug/)
 *   [Topics Started](https://wordpress.org/support/users/madbug/topics/)
 *   [Replies Created](https://wordpress.org/support/users/madbug/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/madbug/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/madbug/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/madbug/engagements/)
 *   [Favorites](https://wordpress.org/support/users/madbug/favorites/)

 Search replies:

## Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[CatalogX - Catalog Mode, Enquiry & Quotes for WooCommerce] How to set every field required?](https://wordpress.org/support/topic/how-to-set-every-field-required/)
 *  [madbug](https://wordpress.org/support/users/madbug/)
 * (@madbug)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/how-to-set-every-field-required/#post-10790988)
 * I manage to make the phone field as required. And share it over here if that 
   is not too late.
 * **/plugins/woocommerce-catalog-enquiry/classes/class-wc-Woocommerce-Catalog-Enquiry-
   frontend.php**
 * add the code under _// error levels_
 * `$error_levels['phone_required'] = __('Phone is required field', 'woocommerce-
   catalog-enquiry');`
 * **/plugins/woocommerce-catalog-enquiry/assets/frontend/js/frontend.js**
 * add the code under _var email = document.getElementById(‘woo\_user\_email’).value;_
 * `var phone = document.getElementById('woo_user_phone').value;`
 * find the email validation condition.
    _if (email == ” || email == ‘ ‘) { document.
   getElementById(‘msg\_for\_enquiry\_error’).innerHTML = catalog\_enquiry\_front.
   error\_levels.email\_required; document.getElementById(‘woo\_user\_email’).focus();
   return false; }
 * add the following code under it.
 *     ```
       if (phone == '' || email == ' ') {
           document.getElementById('msg_for_enquiry_error').innerHTML = 
               catalog_enquiry_front.error_levels.phone_required;
               document.getElementById('woo_user_phone').focus();
               return false;
       }
       ```
   
    -  This reply was modified 7 years, 10 months ago by [madbug](https://wordpress.org/support/users/madbug/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form 7 Multi-Step Forms] Pass step 1 value into step 2 text field](https://wordpress.org/support/topic/pass-step-1-value-into-step-2-text-field/)
 *  Thread Starter [madbug](https://wordpress.org/support/users/madbug/)
 * (@madbug)
 * [8 years ago](https://wordpress.org/support/topic/pass-step-1-value-into-step-2-text-field/#post-10553014)
 * Issue resolved by putting in default:get in Form 2.
 * eg.
    Form 1 (Step 1) [email* EMAIL placeholder “Your Email” ]
 * Form 2 (Step 2)
    [email* EMAIL default:get ]
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Woocommerce Variation inventory](https://wordpress.org/support/topic/woocommerce-variation-inventory/)
 *  Thread Starter [madbug](https://wordpress.org/support/users/madbug/)
 * (@madbug)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/woocommerce-variation-inventory/#post-9489912)
 * Hi Riaan,
    Thanks for your reply, however, that doesn’t resolve my issue. The
   1 variation only tide to 1 inventory. Now what I want is 2 variation with 1 inventory/
   stock. Color: Red Size: S Stock:50 Color: Red. Size: M. Stock:100

Viewing 3 replies - 1 through 3 (of 3 total)