Repository navigation
WooCommerce SOL Access
Available since 2.7.0 when WooCommerce is active. Product restrictions use stored active SOL assignments to decide whether the current customer may order a product. They are separate from WordPress role mapping and from WooCommerce profile synchronization.
For organization/role rules, first configure the optional roles scope and synchronize user assignments as
described in SOL Roles and Mapping.
The sign-in requirement alone does not require the roles scope or an active assignment.
With the roles scope disabled, organization/role controls are hidden and saved
assignment restrictions are paused, not deleted. Saving a product in this mode
preserves those restrictions for re-enabling the scope. Only SOL sign-in controls
remain available and enforced. Products may become publicly purchasable if
neither the global nor the product sign-in requirement is enabled.
Both controls are off by default:
- Per product: enable Require SOL sign-in under Product data > SOL Access.
- Globally: under WooCommerce > Settings > Products > General > SOL Access, enable Require a signed-in SOL account for all products.
The global switch overrides every product: a product cannot opt out while it is enabled. When it is disabled, each product's saved checkbox applies. A message in the product panel explains when the global override is active.
When either switch applies, guests and signed-in non-SOL accounts cannot purchase the product. The signed-in account must be explicitly marked as a Scouting OIDC account. Organization/role allow and deny rules are still evaluated afterwards. This is an account requirement, not a requirement to reauthenticate for each purchase.
Logging out cannot bypass the requirement. Purchase controls and add-to-cart are blocked for guests, and items already in the cart are revalidated before checkout. Turning both switches off preserves public access where the other rules allow it. In particular, deny-only products remain available to guests unless SOL sign-in is required: enable one of these switches to prevent that logout bypass.
Edit a WooCommerce product and open Product data > SOL Access.
| Setting | Effect |
|---|---|
| Require SOL sign-in | Off by default. Blocks guests and non-SOL accounts even with no organization/role selections. The global requirement overrides an unchecked product checkbox. |
| Allowed SOL organisations | An active assignment in a selected organization can allow ordering. |
| Allowed SOL roles | An active assignment with a selected SOL role can allow ordering. |
| Denied SOL organisations | A matching active organization assignment blocks ordering. |
| Denied SOL roles | A matching active SOL role blocks ordering. |
| Include descendant organisations | Separate allow and deny switches; enabled by default. Include assignments in organizations beneath a selected parent when the synchronized hierarchy is available. |
| Require both organisation and role | Separate allow and deny switches; disabled by default. When both corresponding fields contain selections, both must match the same active assignment. |
Save or update the product after changing these fields. Organization and role selectors support multiple selections. Role choices include the organization, unit, and role ID, so similarly named roles such as Webmaster can be distinguished. A selected role identifies that particular role definition, not every SOL role with the same name.
By default, organization and role selections are alternatives: organization OR role. If either allow field is populated, the customer needs a matching active assignment. If both allow fields are empty, ordering is allowed unless a deny condition matches or the sign-in requirement is not satisfied.
Enabling Require both organisation and role changes a populated pair to organization AND role on the same assignment. If only one field is populated, that field alone is required. With no selections, the checkbox does not create a restriction.
Any matching deny condition takes precedence over every allow match, even when the deny and allow matches come from different assignments. Login role-mapping rules also use deny precedence, but are configured independently.
Guests and customers without active stored SOL assignments cannot satisfy a populated allow rule. Empty allow fields and deny-only rules do not automatically block guests: enable the product or global SOL sign-in requirement for that policy.
Existing products without explicit checkbox settings retain OR matching and include descendants. Variations use the parent product's restrictions and matching switches.
- Select the region under Allowed SOL organisations.
- Clear Include descendant organisations in the allow section.
- Leave Allowed SOL roles empty if any direct regional assignment should qualify.
- Save the product.
A customer with only a group assignment beneath that region will not qualify. A customer with a direct regional assignment does qualify, even if they also have group assignments.
To require a particular role as well, select it under Allowed SOL roles and enable Require both organisation and role. Without that checkbox, a matching role or organization independently allows ordering.
The deny section has its own descendant and combined-condition switches. Review them separately: an inclusive regional deny can still block a customer who qualifies for a direct-only regional allow.
The plugin checks WooCommerce purchase availability, add-to-cart validation, and cart/checkout validation. Restricted product pages display an availability notice. These checks use the same product-restriction decision, including for booking purchases that pass through these WooCommerce hooks.
For signed-in customers, a database failure reading SOL assignments or hierarchy blocks ordering of restricted products, including products with only deny rules. The failure is logged; it is not treated as an empty assignment list. Products with no organization/role selections do not depend on these reads, even when the sign-in requirement is enabled.
With the roles scope enabled, missing role data or assignments not yet verified by
a successful login after upgrading also block restricted products for signed-in
customers. This includes deny-only restrictions, but not products requiring only
SOL sign-in without assignment conditions. Stored records remain visible
for inspection; they do not authorize purchases until synchronization succeeds.
The feature is not a product-visibility or content-protection system, does not cancel existing orders, and does not replace other WooCommerce purchase checks. Do not assume it governs custom ordering integrations that bypass the standard WooCommerce hooks.
Data is refreshed on OIDC login, not on each checkout. An assignment can expire based on its stored dates, but a provider-side reassignment is not known until synchronization occurs. Test ordering with representative customers, guests, variations, and a cart created before restrictions changed.
Date-only assignments start at midnight Europe/Amsterdam and remain active through the end of their end date in that timezone, including daylight-saving changes. The plugin stores and compares those boundaries in UTC, independently of the WordPress site's timezone. See Assignment dates and timezone.
- Home
- Introduction
- Installation
- Configuration
- Shortcodes
- OpenID Connect
- Operations and Troubleshooting
- Users, Privacy and Data Lifecycle
- Account Management and Authorization
- SOL Roles and Mapping
- WooCommerce SOL Access
- Migration, Backup and Recovery
- Developer Integration
- FAQ and Known Limitations
- Architecture