• Resolved petschko

    (@petschko)


    Hey~

    thanks for the Plugin!^^ I just have a quite simple question, since we activated your Plugin I got the message “Connect your Shop with woocommerce.com (…)”.

    Honestly its may a cool idea to do that, but we don’t want to, but there is no way to hide this message…
    I mean we could use CSS to hide the Message, but since it uses the same classes like some other Woocommerce-Messages it would be a bad idea using CSS to hide the message.

    Is there any way to remove that pesky message? I would be awesome^-^

    Petschko

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor clicksubhadeep

    (@clicksubhadeep)

    Hello,
    Thank you for your query.
    This plugin is one of the checkout payment process with Woocommerce plugin.
    So firstly you need to install and activate Woocommerce Plugin and then this plugin will work correctly.
    So Please install Woocommerce Plugin then use this Amazon Pay WooCommerce payment gateway plugin as Amazon Pay Merchant for your business.

    Thanks and regards
    Subhadeep Mondal

    Thread Starter petschko

    (@petschko)

    Hey,

    I have the Woocommerce-Plugin activated and installed. I guess you didn’t understand my Problem, I talk about this message inside the Backend:

    https://s17.directupload.net/images/190212/olpb8xqz.jpg

    This appears after we installed and activated YOUR plugin. We have Woocommerce already activated and installed, else it would not make sense to install your plugin only?

    But that message is so annoying and when I hide it with CSS other Woocommerce-Info messages are hidden as well

    Thread Starter petschko

    (@petschko)

    Hey,

    I solved this issue myself by removing the message via JavaScript (Only this ad-message – not important messages). If anyone want this message removed as well, you can use this JS-Function:

    /**
     * Removes the "Connect your shop with WooCommerce.com" message
     */
    function removeConnectShopMessage() {
    	const search = 'WooCommerce.com';
    	const removeClass = 'woocommerce-message';
    	let messageEl = document.getElementsByClassName(removeClass);
    
    	if(! messageEl)
    		return;
    
    	for(let i = 0; i < messageEl.length; i++) {
    		if(messageEl[i].innerText.indexOf(search) !== -1) {
    			messageEl[i].style.display = 'none';
    			messageEl[i].style.visibility = 'hidden';
    
    			break;
    		}
    	}
    }
    • This reply was modified 5 years, 9 months ago by petschko.
    Plugin Contributor clicksubhadeep

    (@clicksubhadeep)

    Hello,
    Thank you for your solution.
    You can also add the below code to the functions.php file of your activated theme. This will hide the notice message on your WP admin.

    add_filter( 'woocommerce_helper_suppress_admin_notices', '__return_true' );

    Thanks and regards
    Subhadeep Mondal

    Thread Starter petschko

    (@petschko)

    Thanks for the info, but does this suppress ALL Admin-Notices?

    That was my Problem in the first place, I just wanted that ONE message disappear, all other messages (such as database update etc) should be visible, when they are present)^^

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Admin-Msg “Connect your Shop with Woocommerce”’ is closed to new replies.