Disable button / Show error when required field is not filled

[ad_1]

Plugin Author
Maarten

(@maartenbelmans)

Hi @cmbusiness

WooCommerce offers a way to validate cart data. Our plugin hooks into that validation and throws the error when a field is required. It’s up to your theme to show that error, as they decide how it should look.

Since you are not seeing an error, it is highly likely that your theme is simply not displaying it. Te test that theory, you can switch to another theme (Storefront or one of the Twenty themes). If it works there, you know it’s the theme’s fault and you can contact the authors for further help. If it does not fix the issue, send us a product link to take a closer look.

Okay, I’ll try that!
Biggest thanks for reaaally fast response

Hello again, it is as you said, but not exactly related to single theme, but rather to ajax shop carts.
Every theme that uses ajax shop carts just ignore the required fields, doesnt add anything to the cart and open them from the side.

Every theme that uses ajax cart ( for example Woostify ), starts to work as intender when i disable the ajax shop cart ( the browser tells me to fill required fields ).

So it’s probably not due to Your plugin but rather to ajax shop plusins/woocommerce way of handling these.

Anyways, big thanks for help!

Plugin Author
Maarten

(@maartenbelmans)

Yes, I’m afraid you’re right 🙁 Sorry I can’t be of more help!

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer