• Resolved shyamzin

    (@shyamzin)


    Hello support,

    We are capturing the user details and creating an account whenever a user completes an order. But we are logging out the user when landing on the order success page using custom code – so in short the user account will be created, but user wont be loggedin when land on the order success/thankyou page. This was working fine till the recent woocommerce update.

    Right now, we can see a login form on the success/thankyou page. We have tried adding below code and i can confirm the Woo version is latest – 8.2.0.

    add_filter( 'woocommerce_order_email_verification_required', '__return_false' );

    We are not allowing guest checkouts, however we are programatically forcing to logout when user land on the success/thankyou page. This new email confirmation functionality seems to have conflict with our scenario. I can confirm we tried in incognito with above code added in functions.php. Please advise, is there an option to disable this check even for account holders and when matched with our coding scenario? This is important and we believe a lot of users will have our kind of customizations.

    Please help. thanks.

    • This topic was modified 1 year, 1 month ago by shyamzin.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter shyamzin

    (@shyamzin)

    Hello support,

    We are waiting for your reply. Please get back as early as possible. The new feature introduced is actually affecting the existing functionalities.

    Please get back. thanks again.

    Thread Starter shyamzin

    (@shyamzin)

    We have added two filters as shown below, but still its asking to login on the order thank you page in incognito. We set 1 day as grace period and even put filter to disable the feature. Still the order success page when took in the incognito showing the form. The order was placed couple of minutes back.

    add_filter( 'woocommerce_order_email_verification_grace_period', 'wp_kwoocommerce_order_email_verification_grace_period_filter', 10, 3 );
    
    function wp_kwoocommerce_order_email_verification_grace_period_filter( $grace_period, $order, $context ){
    
        $grace_period = 86400;
        return $grace_period;
    
    }
    
    add_filter( 'woocommerce_order_email_verification_required', '__return_false' );
    • This reply was modified 1 year, 1 month ago by shyamzin.
    Plugin Support Lynn J.a11n

    (@lynnjat7)

    As this is fairly advanced custom code, we’d recommend sharing it with our developer community to see if another developer has had a similar experience.
    ?
    – You can post in the Advanced WooCommerce Facebook Group :?https://www.facebook.com/groups/advanced.woocommerce/
    – You can join our WooCommerce Slack Community and ask there :?https://woocommerce.com/community-slack/
    ?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Email verification checks for the order confirmation – causing issue’ is closed to new replies.