Title: Invalid Inputs not checked
Last modified: April 28, 2020

---

# Invalid Inputs not checked

 *  [viwickam](https://wordpress.org/support/users/viwickam/)
 * (@viwickam)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/invalid-inputs-not-checked/)
 * I fixed this by editing the template:
    nameyourprice-price-form.php on line 13
 * so that: input type=”number”
 * <input type=”number” id=”ywcnp_suggest_price_single” class=”ywcnp_sugg_price 
   short wc_input_price” name=”ywcnp_amount”>
 * This keeps invalid inputs such as $ from being entered by customers, and since
   the plugin doesn’t sanitize the inputs to only allow numbers, this is a good 
   fix that will solve this situation in most browsers.

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

 *  Plugin Author [YITHEMES](https://wordpress.org/support/users/yithemes/)
 * (@yithemes)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/invalid-inputs-not-checked/#post-12755831)
 * Hello,
    thank you for your feedback, we’ll fix the issue soon.
 *  [aishfak](https://wordpress.org/support/users/aishfak/)
 * (@aishfak)
 * [6 years ago](https://wordpress.org/support/topic/invalid-inputs-not-checked/#post-12924717)
 * When you able to fix the validation issue? There should be validation on the 
   empty field and number. Without putting anything, it still goes to the cart page
   which does absolutely not make any sense.
 * I am a little surprised that such a small thing didn’t take care while developing
   a plugin.

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

The topic ‘Invalid Inputs not checked’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/yith-woocommerce-name-your-price_d5d1be.
   svg)
 * [YITH WooCommerce Name Your Price](https://wordpress.org/plugins/yith-woocommerce-name-your-price/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/yith-woocommerce-name-your-price/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/yith-woocommerce-name-your-price/)
 * [Active Topics](https://wordpress.org/support/plugin/yith-woocommerce-name-your-price/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yith-woocommerce-name-your-price/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yith-woocommerce-name-your-price/reviews/)

## Tags

 * [bug fix](https://wordpress.org/support/topic-tag/bug-fix/)
 * [template](https://wordpress.org/support/topic-tag/template/)

 * 2 replies
 * 3 participants
 * Last reply from: [aishfak](https://wordpress.org/support/users/aishfak/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/invalid-inputs-not-checked/#post-12924717)
 * Status: not a support question