Logout confirmation - by umuto - on WordPress WooCommerce support

This topic has 4 replies, 2 voices, and was last updated 4 years, 10 months ago ago by Olga Barlow

  • Avatar: umuto
    umuto
    Participant
    June 3, 2019 at 09:33

    When customer tries to logout she/he is directed to customer page and asked Are you sure?

    Can I disable it? I just want them to be able to logout with one simple logout click.

    Thanks

    3 Answers
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    June 3, 2019 at 10:48

    Hello,

    Edit the xstore/framework/theme-fuctions.php and find etheme_sign_link function add the following code as mentioned on screenshot http://prntscr.com/nwxmzo
    $url = ( $endpoint == 'customer-logout' ) ? wc_logout_url( wc_get_page_permalink( 'myaccount' ) ) : $url;
    We’ll fix it in next theme update.

    Regards

    Avatar: umuto
    umuto
    Participant
    June 4, 2019 at 06:00

    thanks a lot, worked like charm.

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    June 4, 2019 at 08:11

    You are welcome!

    Regards

  • Viewing 4 results - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.