simonebrunox
Forum Replies Created
Viewing 5 replies - 1 through 5 (of 5 total)
-
Forum: Plugins
In reply to: [WooCommerce Email Verification] Great Plugin – Messages Not WorkingHave you tried?
I don’t know exactly, but it seem that if you have not added any item to the cart, the notice session has not been initialized and the registration message don’t show up.Forum: Plugins
In reply to: [WooCommerce Email Verification] Great Plugin – Messages Not WorkingOk, I adopted a workaround.
before ofif ( ! is_object( $woocommerce ) || version_compare( $woocommerce->version, '2.1', '<' ) ) { $woocommerce->add_message( 'message' ); }else{ wc_add_notice('message', $notice_type = 'success'); }
i added
if ( sizeof( $woocommerce->cart->get_cart() ) == 0 ) { $woocommerce->cart->add_to_cart( 2445 ); $woocommerce->cart->empty_cart(); }
where 2445 is the id of an existing and published item.
If you have a better workaround, please share with us.
Thanks
Forum: Plugins
In reply to: [WooCommerce Email Verification] Great Plugin – Messages Not WorkingSorry, in effect the message show up only if you added an item to the cart.
So the problem is not solved.
Thanks to any other support.
Forum: Plugins
In reply to: [WooCommerce Email Verification] Great Plugin – Messages Not WorkingOk, it seems i solved the problem.
In function create_temp_user($user_id) in class-wev-email-verification.php,instead of:
if ( ! is_object( $woocommerce ) || version_compare( $woocommerce->version, '2.1', '<' ) ) { $p = $woocommerce->add_message( 'message' ); echo $p; }else{ $p = wc_add_notice('message', $notice_type = 'success'); echo $p; }
use only:
if ( ! is_object( $woocommerce ) || version_compare( $woocommerce->version, '2.1', '<' ) ) { $woocommerce->add_message( 'message' ); }else{ wc_add_notice('message', $notice_type = 'success'); }
without echo.
Forum: Plugins
In reply to: [WooCommerce Email Verification] Great Plugin – Messages Not WorkingHi, i have the same problem.
Page registration refresh without any message.
Any news about this?Thank you
Viewing 5 replies - 1 through 5 (of 5 total)