• Is there a way to change the error message text without editing this plugin? I’ve tried using using replace_text and change_translate_text in the theme functions.php file, but it’s not working. The text reads:

    “Merchant do not support accepting in unknown card” which is generated by this code:

    if(!in_array($cardtype ,$this->authorizenet_lightweight_cardtypes ))
             		{
             			wc_add_notice('Merchant do not support accepting in '.$cardtype,  $notice_type = 'error' );
             			return array (
    								'result'   => 'success',
    								'redirect' => WC()->cart->get_checkout_url(),
    							   );
    				die;
             		}
    • This topic was modified 7 years, 11 months ago by djenk.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter djenk

    (@djenk)

    Even though this plugin doesn’t seem to be supported anymore, I’d prefer to not edit the plugin code directly. Thanks!

    Plugin Author syednazrulhassan

    (@nazrulhassanmca)

    @djenk

    Why do you think plugin is not supported anymore ?

    Sorry for responding late but you can edit the plugin code.

    However if all the cards are being declined it might be the credit card form has not been overridden by your theme correctly.

    Regards
    Nazrul

    Thread Starter djenk

    (@djenk)

    I didn’t say all the cards are being declined. Everything is set up and working correctly, but we need to change the error message text. “Merchant do not support accepting in unknown card” is not what we want this message to say. We’d like to change it to something like “Sorry, we don’t support that unknown card”.

    I’d just like to know how to change the text without editing the plugin, if that’s possible. But it doesn’t sound like that’s something we can do, unless you have a method. If not, an updated version of the plugin using different text would be appreciated. As written, it doesn’t make any sense.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Change error message text’ is closed to new replies.