Knowledge Base

Welcome to the SmarterCommerce documentation portal

What can we help you find?

SMARTERCOMMERCE

Search and Learn about Unified Commerce and Our SmarterCommerce Solutions
Digital Commerce Additional Manual

Service Information


  1. Include the plugin reference as follows.

    <script src="http://www.yourwebstore.com/ResourcePackages/Bootstrap4/MVC/Scripts/sc-jquery.common.js " type="text/javascript"></script>

  2. 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.

  3. 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"

Bring It All Together

We bring together digital commerce, retail and call center channels with a united approach that leverages the power of onmi-channel while prioritizing JD Edwards connectivity.

CONNECT WITH AN EXPERT