Registration for Categories
Requires user registration or login for specific product categories in WooCommerce and allows users to order other products without login & registration.
by Finland93 · github.com/finland93/woocommerce-registration-login-for-categories · website
★ 1stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/finland93/woocommerce-registration-login-for-categories/archive/refs/heads/main.zipReadme
Registration for Categories — WooCommerce Plugin
Require registration or login at checkout when the cart contains products from selected categories, while still allowing guest checkout for everything else.
How it works
- Pick the product categories that should require an account.
- When a guest's cart contains any product from those categories, WooCommerce requires them to register or log in before placing the order.
- Carts without any restricted product can still check out as a guest.
Setup
- Make sure WooCommerce is active.
- Under WooCommerce → Settings → Accounts & Privacy, enable guest checkout, login during checkout, and account creation during checkout.
- Open Registration for Categories, tick the categories to restrict, and save.
What changed in 2.0.0
- Fixed the core logic bug. 1.0 allowed guest checkout as soon as any item in the cart was outside the selected categories — so a restricted product slipped through whenever the cart also held an unrestricted one. The check now correctly asks "does the cart contain a restricted product?" and forces registration only for guests.
- Fixed a settings bug. The old paginated list overwrote the saved option with only the current page's checkboxes, wiping selections from other pages. The category list is now a single searchable, scrollable list, so every selection saves together.
- Added
get_the_terms()guarding (1.0 could warn/fatal on products with no category), a WooCommerce dependency check, slug validation on save, escaping, i18n and a clean uninstall.
License
GPLv2 or later — see LICENSE.
Author: Finland93
Read the full README on GitHub →
Releases
| Tag | Published |
|---|---|
| release | Jun 29, 2026 |
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.