WooCommerce Email Template Customizer 1.2.3

Download WooCommerce Email Template Customizer 1.2.3 from nulled fire. Make your WooCommerce emails become professional.

DaveL

 
 
This seems to be missing some files. I get a fatal error when trying to install.
Fatal error: Uncaught Error: Class 'VIWEC\INCLUDES\Email_Samples' not found in /home/example.com/public_html/wp-content/plugins/woocommerce-email-template-customizer/woocommerce-email-template-customizer.php:110 Stack trace: #0 /home/example.com/public_html/wp-includes/class-wp-hook.php(303): WooCommerce_Email_Template_Customizer->viwec_activate() #1 /home/example.com/public_html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters() #2 /home/example.com/public_html/wp-includes/plugin.php(470): WP_Hook->do_action() #3 /home/example.com/public_html/wp-admin/plugins.php(193): do_action() #4 {main} thrown in /home/example.com/public_html/wp-content/plugins/woocommerce-email-template-customizer/woocommerce-email-template-customizer.php on line 110
 

DaveL

 
 
I ended up uncommenting line 53 in woocommerce-email-template-customizer.php and commenting out
PHP:
            if ( ! class_exists( 'WooCommerce' ) ) {
                $this->err_message = esc_html__( 'Please install and activate WooCommerce to use', 'viwec-email-template-customizer' );
                unset( $_GET['activate'] );

                return;
            }

This is working now.
 

Apanha

Staff member
 
I ended up uncommenting line 53 in woocommerce-email-template-customizer.php and commenting out
PHP:
            if ( ! class_exists( 'WooCommerce' ) ) {
                $this->err_message = esc_html__( 'Please install and activate WooCommerce to use', 'viwec-email-template-customizer' );
                unset( $_GET['activate'] );

                return;
            }

This is working now.
Is that an solution? The code checks if woo is installed and activated
 

DaveL

 
 
Need two edits. On line 53 you'll need to uncomment this line:
PHP:
$this->condition_init();

Then in the condition_init() function you'll need to comment out the check for WooComerce being installed. I already had the most recent version of woocommerce installed but it did not see it. Perhaps this worked with an older version of woo.
Make sure you have woocommerce installed and then comment out the following check:
PHP:
if ( ! class_exists( 'WooCommerce' ) ) {
    $this->err_message = esc_html__( 'Please install and activate WooCommerce to use', 'viwec-email-template-customizer' );
    unset( $_GET['activate'] );

    return;
}

We've edited a template and tested an email. It is working as expected.
 

DaveL

 
 
The correct check for woo should be:
PHP:
// Official way to check https://woocommerce.com/document/create-a-plugin/
// Test to see if WooCommerce is active (including network activated).
$plugin_path = trailingslashit( WP_PLUGIN_DIR ) . 'woocommerce/woocommerce.php';

if (
    in_array( $plugin_path, wp_get_active_and_valid_plugins() )
    || in_array( $plugin_path, wp_get_active_network_plugins() )
) {
    // Custom code here. WooCommerce is active, however it has not
    // necessarily initialized (when that is important, consider
    // using the `woocommerce_init` action).
} else {
    $this->err_message = esc_html__( 'Please install and activate WooCommerce to use', 'viwec-email-template-customizer' );
    unset( $_GET['activate'] );
    return;
}

This would fix the woo being installed check. (edit note - updated with official way to check for woo)
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.