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

Login/Logout Integration


Include the plugin reference as follows.

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

Use the HTML element ID scj-authorization, and configure the parameters using the HTML data attribute.

Function Parameter
HTML Attribute*
Description
landingPageWebAccountdata-landing-page-web-account 

Absolute URL the plug-in redirects when login is success. *

Example:

data-landing-page- web-acount=” https://www.mysite.com/account/myaccount” 
landingPageSalesPerson data-landing-page-salesperson 

Absolute URL the plug-in redirects when login as sales person user. **

Example:

data-landing-page-salesperson=” https://www.mysite.com/account/customers”
loginPage data-login-page 

Login page. **

Examples:

data-login-page=”login”

data-login-page=”account/login”
registerPage data-register-page 

Register page. **

Examples:

data-register-page=”register”

data-register-page=”account/register”
showForgotPassword data-showforgotpassword 

Hide/show forgot password section. Default value is true.

Values: true / false 
showRegister data-showregister 

Hide/show the register section. Default value is true.

Values: true / false 
showRememberMe data-showrememberme 

Hide/show remember me section. Default value is true.

Values: true / false 

 

Notes:

* Html attributes have priority over function parameters.

** When a page is not configured, the plugin uses the default page configured in SmarterCommerce Mappings Module (View Additional Information at the end of this guide for more information).

 

The routes for the “data-login-page”, “data-register-page” are the relative paths where the pages are hosted in the Sitefinity CMS site.

The URLS for the “data-landing-page-individual”, “data-landing-page-company”, “data-landing-page-salesperson” are the absolute paths of the pages where the plugin redirect after success login.

 

Absolute Paths Examples:

  • http://www.mysite.com
  • http://www.mysite.domain.com/home
  • https://www.yourwebstore.com/myaccount
  • https://www.yourwebstore.com/account/dasboard
  • https://www.yourwebstore.com/account/customers

 

Relative Paths examples:

  • index
  • graphics/images
  • help/articles/how-do-i-set-up-a-webpage
  • cart/shopping

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