Digital Commerce Additional Manual
-
- Page Long Cache Considerations and Configuration
-
Mappings Module
-
Personalization Integrated with JDEdwards
- Sitefinity Images
- Internal Plugins Configuration in Update 6 - SC20220114
- Internal Plugins Configuration in Update 7
-
Content Search Configuration
-
Google Analytics Configuration
-
Task Manager Email Notifications
-
Configure the SmarterCommerce Menu in Backend
-
Management Console Email Templates
- EPayments Modules
-
Troubleshooting Errors
-
Configure Kraken Image Optimization
-
- Page Long Cache Considerations and Configuration
-
Mappings Module
-
Personalization Integrated with JDEdwards
-
How to Add New Widget Template
-
Sitefinity Images
-
Sitefinity Health Check Service Configuration and SmarterCommerce Health Checks
-
Internal Plugins Configuration in Update 6
-
Internal Plugins Configuration in Update 7
-
Content Search Configuration
-
Service Information
- Include the plugin reference as follows.
<script src="http://www.yourwebstore.com/ResourcePackages/Bootstrap4/MVC/Scripts/sc-jquery.common.js " type="text/javascript"></script>
- Service URL
[http://www.yourwebstore.com]/SCECO/Services/AccountPlugin/GetUserPolicies
Important note: your web store URL is going to be collected through a data attribute called shopping-url. We are going to see how it works further.
- You must declare the class "scj-permission-validator" in the HTML section you are going to hide for the plugin to be able to now which part of the page analyze. This service requires some important data and attributes into the HTML tag you are requiring hide, so let’s start with the table below explain them.
HTML Attribute* | Description |
---|---|
data-shopping-url | Absolute URL of the site Example: data-shopping-url =”http://www.yourwebstore.com” |
data-scj-permission-list | List of permission codes associated with the div you want to hide, they are shown on Policies List section just above, keep in mind that each permission is put without quotes Examples: Correct: data-scj-permission-list="[EBPAD,EBPAD]" Incorrect: data-scj-permission-list="[‘EBPAD’,’EBPAD’]" Or data-scj-permission-list=’[“EBPAD”,”EBPAD”]’ |
data-scj-or-validator | Boolean data (true or false), it changes the default validation method that is AND. How it works? False: As “false”, we are going to use a default AND validator, it means the div will be only shown if the user that is logged has WHOLE the permissions listed on “data-scj-permission-list”. Example: data-scj-or-validator="false" True: The validation method will be base in a OR logic, it means the div will be only shown if the user that is logged has AT LEAST ONE of the permissions in the “data-scj-permission-list”, otherwise the div will be hidden. Example: data-scj-or-validator="true" |