WMGRs Catalog Access Rules for WooCommerce
Show every visitor only the catalog they should see. Hide wholesale items from retail customers, retail bundles from wholesale buyers, or your whole B2B range from guests. WooCommerce gives you one catalog and shows it to everybody. That is fine for a shop with one kind of customer, and wrong the mo
About this tool.
Show every visitor only the catalog they should see. Hide wholesale items from retail customers, retail bundles from wholesale buyers, or your whole B2B range from guests.
WooCommerce gives you one catalog and shows it to everybody. That is fine for a shop with one kind of customer, and wrong the moment you have two. Trade-only lines end up visible to the public, retail multipacks clutter the wholesale browse, and the distributor range you are contractually not allowed to advertise sits there in your sitemap. The usual workarounds — unpublishing products, running a second site, hiding things behind a password — all cost you either sales or a second store to maintain.
This plugin fixes it at the level WooCommerce actually asks the question. You write rules that say hide these products, or these whole categories, from this role — and everything downstream obeys. Hidden items vanish from the shop page, category archives and product search. Their direct URLs redirect to the shop rather than 404ing. Add-to-cart is refused even if somebody constructs an ?add-to-cart= link by hand. Hidden categories disappear from category widgets, menus and the [product_categories] shortcode, so nothing points at a door that will not open.
Rules stack rather than compete. Each rule adds its hidden items for the role it targets, so a wholesale role and a guest can have completely different views of the same store without you reasoning about precedence. There is also an “Everyone” target for temporarily pulling an item from the whole storefront — useful when a line goes out of stock indefinitely and you do not want to change its status and lose its URL.
Features
- Hide specific products or whole categories (with all their products) per user role or from guests
- An “Everyone” option to temporarily hide items from the whole storefront
- Hidden items disappear from the shop page, category pages, and product search
- Direct product URLs redirect to the shop; hidden category archives too
- Add-to-cart is blocked for hidden products — even via direct ?add-to-cart= links
- Hidden categories also vanish from category widgets, menus and the [product_categories] shortcode
- Related products and shortcode loops respect the rules
- Multiple rules stack — each rule adds its hidden items for its role