Thank you both so much for your quick reply. I am relatively new to this and hope you might be able to provide a little more direction as to how to use the plugin filter. I have investigated the woo-wallet front end code to see where the filter function is defined and the hook at which it is added. I tried copying the function code into my function.php, modifying it to include my preferred message wording and hooking it to the same hook used in the front end code. The result is that the new error message is appended to the default message. Would you be able to instruct as to how I might instead remove the default message and replace it with my preferred text? Any help you could give would be most gratefully appreciated!
add_filter(‘woocommerce_add_to_cart_validation’, ‘ka_neg_balance_msg’, 20);
function ka_neg_balance_msg($valid ){
$product = get_wallet_rechargeable_product();
if ( is_wallet_rechargeable_cart() ) {
wc_add_notice( apply_filters( ‘woo_wallet_restrict_other_from_add_to_cart’, __( ‘NEW MESSAGE WORDING’, ‘woo-wallet’ ) ), ‘error’ );
$valid = false;
}
return $valid;
}`