Entitlement policy objects and product and price visibility
Key Takeaway
For a buyer group to see products and prices, its entitlement policy must be active, allow product and price viewing, and link to both the products and the buyer group. Then rebuild the search index.
An entitlement policy is a B2B Commerce record that decides which products a buyer group can see and whether those buyers can also see the prices. Policies connect products to buyer groups, so what a buyer sees in the storefront depends on which buyer groups they belong to. As a developer, you work with the policy object, the objects that link it to other records, and a few settings that decide whether visibility works as planned.
How visibility reaches a buyer
Visibility follows a chain from the buyer to the product:
- A
BuyerGroupMemberrecord links an individual buyer to aBuyerGroup. - The buyer group is assigned entitlement policies.
- Each policy is assigned products.
Entitlement policies are filtered by buyer group membership, so a buyer sees what the policies on their buyer groups allow.
When you create a store, the system automatically creates a default buyer group and a default entitlement policy. You add more buyer groups and policies as needed.