- Seller
- #1
Apanha submitted a new resource: WooCommerce Email Template Customizer
Make your WooCommerce emails become professional.
Make your WooCommerce emails become professional.
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
if ( ! class_exists( 'WooCommerce' ) ) {
$this->err_message = esc_html__( 'Please install and activate WooCommerce to use', 'viwec-email-template-customizer' );
unset( $_GET['activate'] );
return;
}
Is that an solution? The code checks if woo is installed and activatedI 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.
$this->condition_init();
if ( ! class_exists( 'WooCommerce' ) ) {
$this->err_message = esc_html__( 'Please install and activate WooCommerce to use', 'viwec-email-template-customizer' );
unset( $_GET['activate'] );
return;
}
// 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;
}
Yith Woocommerce Email Templates Premium
|
|
Email Customizer For Woocommerce
|
|
Woocommerce Follow-up Emails
|
|
Yith Woocommerce Coupon Email System Premium
|
|
Templatera - Template Manager For Visual Composer
|