Configuration
This functionality requires the following configuration:
- Enable the functionality by configuring the SmarterCommerce Settings module settings.
- Publish products to have them all marked as public.
- Setup the attribute values that are going to be used to filter products.
- Set the attribute values to the assigned products.
Step 1: SmarterCommerce Settings
The following settings must be configured in the SmarterCommerce Settings module:
- Catalog > Product Filter Assignments
Filter by assignments Attribute (ATTR_FILTER_NAME): when this setting is configured, an attribute is created with the name defined by the user.
Address Book Category Code (FILTER_PROD_CATCODE): value must be greater than zero
On the website these 2 settings are read to check if an additional filter must be applied to Elasticsearch/App Search queries. This additional filter validates that the attribute with the id “sc_assignment_attribute” has the following one of these values:
“*” (To retrieve public products).
The customer category code value that corresponds to the category code configured in the FILTER_PROD_CATCODE setting.
For non-authenticated users, the default customer is used to retrieve the category code value.
For sales person customers, the client that was selected to work on behalf of is used to retrieve the category code value.
If the customer category code value is empty, the customer will see public products
Step 2: Publish Products
Once the attribute is created and the category code is configured, the website will start filtering products using the product’s attribute value. At this point, it is recommended to initialize all products as public (an “*” is used as the default attribute value). This way we ensure that the products are still displayed on the website catalogs.
Note: This step can be skipped if all products will be assigned to specific customers. This means that there will be no public products.
There are two ways to initialize the products as public:
Execute a “Rebuild Products Index” process.
Publish all products.
Step 3: Setup the Attribute Values
In the attribute created to filter products, the user must add the attribute values corresponding to the values of a customer(s) category code configured in the FILTER_PROD_CATCODE setting.
When an attribute value is created make sure that the “Description” field has the category code which will be used to filter the products.
Note: Products that don’t have attribute values belonging to the configured filter assignments attribute, will have the value “*” to indicate that these products will be displayed to all customers. Please note, this is managed by the application so there is no need to create an attribute value for the public products.
Step 4: Set the Attribute Values for the Products
The final step is to assign the attribute values to the products that you want to configure as specific for certain customers. Once the values are assigned, the products must be published.
This Section Also Contains
- ECommerce CMS MVC with Bootstrap 4
- Creating a New Sitefinity Custom Template
- How to Share Template in Multisite Instance
- How to Customize a Site with Resource Packages
- Theming Bootstrap
- How to Configure the Not Available Images for Configured Products
- Page Long Cache Considerations and Configuration
- Replace Not Available Images
- Mappings Module
- API Authorization Token
- Personalization Integrated with JDEdwards
- How to Add New Widget Template
- How to Include Local Web Font
- How to Use External Plugins Locally
- Sitefinity Images
- Sitefinity Authentication Expiration
- Sitefinity Health Check Service Configuration and SmarterCommerce Health Checks
- Internal Plugins Configuration in Update 6
- Internal Plugins Configuration in Update 7
- How to Setup Pickup Instructions Page
- How to Setup Terms and Conditions Page
- Sitefinity Multisite Resource Override
- Content Search Configuration
- Product Assignments (Filter by Attribute)
- Google Analytics Configuration
- Configure Azure Redis Cache (ASP.Net State Server Provider)
- Task Manager Email Notifications
- Configure Google Maps
- Catalog and Product Content Metatags (SEO)
- Cookies Configuration
- Reset Password Configuration
- Recycle Bin
- Login Page Configuration
- Error Page Configuration
- Configure SmarterCommerce Menu Backend
- Sitefinity User Group
- Copy Settings and Mapping on Multisite
- New Site – Activate Modules
- Shared Products Module
- Configure Image Optimization
- Management Console Email Templates
- How to Enable Canonical URL
- Sitefinity File Manager
- PunchOut Configuration
- Troubleshooting