• ResolvedPlugin Author Georgi Bakalski

    (@irdroid)


    Some users report compatibility issues between Woo Instant Notifications and Third Party Page builder Themes / Plugins , such as Elementor.

    The issue is that once the notification is set via Woo Instant Notifications and a test order is made the content of the notifications contained in the email is not what is set in the template but it is the html of the frontpage of the target website.

    As a solution to the above issues, Justin from Romania has resolved by changing a function in class-wc-notifications-instance.php file of the plugin to this. and adding a custom tag / the_content1

    function get_content_plain() {
    		
                
    			$html = $this->format_string( $this->custom_template );
    
    //			do_action( 'woocommerce_email_header', $this->get_heading(), $this );
    
    			ob_start();
    
    			$html = $this->format_string( $this->custom_template );
    
    //			do_action( 'woocommerce_email_header', $this->get_heading(), $this );
                add_filter( 'the_content1', 'wptexturize' );
                add_filter( 'the_content1', 'convert_smilies' );
                add_filter( 'the_content1', 'convert_chars' );
                add_filter( 'the_content1', 'wpautop' );
                add_filter( 'the_content1', 'shortcode_unautop' );
                add_filter( 'the_content1', 'prepend_attachment' );
                add_filter( 'the_content1', 'do_shortcode' );
    
                
    			echo apply_filters( 'the_content1', $html );
    
    //			do_action( 'woocommerce_email_footer', $this );
    
    			return ob_get_clean();
    
    //			do_action( 'woocommerce_email_footer', $this );
    
    			return $html;
    		    
    		}
  • The topic ‘Third Party Themes / Plugins Support / Troubleshooting’ is closed to new replies.