Repository Forums Support WooCommerce Extended Coupon Features PRO Overriding Error Message Reply To: Overriding Error Message

#15263
Heidi Maskelyne
Participant

i have already tried gettext filter and does not work at all

also the plugin does not work either

i managed to fix by editing error.php in woocommerce templates adding below

   if (strpos($message, '" is not yours.') !== false) {
        $message = $message.'<br><br><b> PLEASE LOGIN INTO YOUR ACCOUNT TO USE THIS COUPON</b>'; //updated error string

    }?>

Thanks Anyway for your help