• Resolved petedan

    (@petedan)


    Nice plugin…

    One issue though, is that after registering an account, at the email verification prompt, I can still navigate to the shop page and make an order without verifying first.

    Hope your next update can fix this issue. Thanks for your great work.

    ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Zorem

    (@zorem)

    Hi, the customer verification is for the user account, the user should not be able to enter the my-account area unless he verifies the email address but they can still make an order since the shop is not under my account area.

    Thanks

    Thread Starter petedan

    (@petedan)

    During the user sign up and verification the user is logged in, so at the “Sign Up Verification” message (email verification page), a user can simply navigate to other areas of the site, including the shop, and then place an order as a logged in user (not verified). Is that correct?

    Rather than allow non-verified users to make possible fraudulent orders, I’ve added my own redirect. I still allow customers to add to their cart, and view the cart page, but to get to the checkout page, unless they are verified they will be redirected to the email verification page. Does this better fit your plugin’s intended use? Can this be added as an option to your plugin?

    // Redirect non verified users to email verification page
    add_action('template_redirect', 'redirect_to_email_verification');
    function redirect_to_email_verification() {
    	// If is checkout page, redirect to email verification page
    	if( current_user_can( 'customer' ) && 'true' !== $verified && is_checkout() )
            wp_redirect( wc_get_account_endpoint_url( 'email-verification' ) );
    	}
    • This reply was modified 4 years, 5 months ago by petedan.
    Plugin Author Zorem

    (@zorem)

    Hi, the plugin is for blocking the my-account area only for users who do not validate their emails. At this point, we will check this option for future releases
    Thanks

    I just tested before going live. Really glad I did.
    I was able to register as a new user and complete a purchase, without going having my email verified. However I was not able to access the Woocommerce My Account section until I verified the email.

    Just to clarify…the plugin only restricts access to the “My Account” page….NOT other areas of the site? Correct?

    The plugin description says,
    “…verify their email address by sending a verification link to the email address which they registered to their account. You can allow the customer to log-in to their account when they first register and to require them to verify the email on the next login or you can restrict access to their account until they verify their email.”

    The words, “their account” is used to describe access levels but to be more accurate its the “My Account page”, correct?

    I would recommend an explanation that says,
    “A new user CAN complete a purchase without going through the email verification process. This plugin ONLY restricts access to the My Account page”.

    Woocommerce has the option “[ ] Allow customers to place orders without an account”…leave that unchecked and (IMHO) a user should have to have their email verified BEFORE making a purchase…which is the reason for using this plugin.

    So as @petedan explains, “Rather than allow non-verified users to make possible fraudulent orders…”

    Sorry but I need that verification BEFORE being able to purchase. Going to have to go with another plugin.

    Plugin Author Zorem

    (@zorem)

    Yes, users can create an order, the plugin is only for the user account restricted areas, if you want, you can remove in your WooCommerce store the option to register on checkout and to force your customers to create account and verify their email address before they can make an order.
    Thanks

    Yes, I understand, however I would prefer not to adjust my website/checkout settings to match a plugin. For now that might be the only solution.

    Could you advice on which file to edit the verification popup that says,

    Sign Up Email Verification
    To verify your email a PIN was sent to [email protected]
    Please check your inbox and enter the PIN below.
    [ VERIFY ]

    Didn’t receive an email? Resend Email

    Thank you.

    Thread Starter petedan

    (@petedan)

    @newguy321123

    I think a good solution is the function I have given in the precious post. It will redirect unregistered customer from the checkout page to the verification page. That means no checkout possible until verified.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Can Still Create Order’ is closed to new replies.