1. Home
  2. Docs
  3. Email Verification for Wo...
  4. How To
  5. Restricting Checkout and Cart Access for Unverified Users

Restricting Checkout and Cart Access for Unverified Users

12.1

This article explains how to use the WooCommerce Email Verification plugin to prevent unverified users from completing the checkout process and adding products to their cart.

Encouraging Verification through Access Control

The WooCommerce Email Verification plugin provides functionalities to restrict specific actions for unverified users, including checkout and adding products to the cart. This approach motivates users to complete the verification process to gain full access to your store’s features.

  • Block checkout: This option, when enabled, prevents unverified users (including guests) from completing the checkout process.
  • Error notice: This field allows you to customize the message that is displayed to unverified users who try to checkout. You can use the placeholder %myaccount_url% to include a link to the user’s account page.
  • Block adding products to cart: This option, when enabled, prevents guests from adding products to their cart.
  • Custom redirect URL: This field allows you to specify a custom URL where unverified users who try to add products to their cart will be redirected.
  • Error notice: This field allows you to customize the message that is displayed to guests who try to add products to their cart. You can use the placeholder %myaccount_url% to include a link to the user’s account page.

Blocking Checkout

  • Enabling the “Block checkout” option prevents unverified users, including guests, from reaching the checkout page and finalizing their purchases.
  • The “Error notice” field allows you to customize the message displayed to inform these users about the verification requirement. You can include a link to their account page using the %myaccount_url% placeholder, guiding them towards completing verification.

Blocking Adding Products to Cart

  • Activating the “Block adding products to cart” option restricts guests from adding any products to their cart.
  • The “Error notice” field enables you to personalize the message informing guests about the limitation and the need for verification.
  • Similar to the checkout restriction, you can include a link to the account page using the %myaccount_url% placeholder.

Accessing and Configuring Settings

  1. Navigate to WooCommerce > Settings > Email Verification.
  2. Click on theBlocking” tab.
  3. Locate the desired settings (“Block checkout” and “Block adding products to cart”).
  4. Enable the relevant options and customize the error messages as needed.
  5. Click Save changes” to apply your configuration.

Benefits of Restricting Access

  • Incentivizes Verification: By limiting functionalities for unverified users, you encourage them to complete the verification process to enjoy full store functionality.
  • Enhanced Security: Restricting actions like checkout and adding products to carts for unverified users mitigates potential security risks associated with incomplete accounts.
  • Improved User Experience: Clear communication through informative error messages guides users towards verification, ultimately enhancing their overall experience.