Global Options

Customizable The Error Messages

Estimated reading: 1 minute 335 views

Custom validation message is not working: ⤵
You have full control over the messages shown to users when they don’t comply with your rules, including:

✔️ Error messages on WooCommerce single product pages.
✔️ Notifications on the WooCommerce cart page/Rules setup.
✔️ Alerts for “Add to Cart” actions in WooCommerce.

You have to use a hook for Custom Validation Message. 🎉

add_filter('wcmmq_custom_validation_msg', '__return_true');

You can use this filter on your site’s Child Theme functions.php or any snippet plugin to add this filter hook.


👉 Now, you can customize the error message or put the translated message in this box: ⤵



Result: ⤵
✔️ We have set it as min quantity 5 and entered the validation message in French Language and it works properly here: ⤵

Share this Doc

Customizable The Error Messages

Or copy link

CONTENTS