Support » Plugin: WooCommerce » My Account Shortcode captures wc_print_notices

  • Hello,

    When using the shortcode [woocommerce_my_account] in a widget for a login form, the widget captures any Woocommerce messages sent, i.e item added to cart, and displays in the widget instead of where it should.

    If I remove “wc_print_notices()” from woocommerce/templates/myaccount/form-login.php it obviously stops the problem, however, if logging in from the /my-account/ page it no longer gets notices.

    So is there a way to modify woocommerce/templates/myaccount/form-login.php to check if it is being called via the shortcode so that this doesn’t happen?


  • The topic ‘My Account Shortcode captures wc_print_notices’ is closed to new replies.