StoreFront 3.11 >>How to get the login banner on Storefront page

StoreFront 3.11 >>How to get the login banner on Storefront page

book

Article ID: CTX227805

calendar_today

Updated On:

Description

Storefront customization for the scremear is not working 

Resolution

We removed the comments /*.....*/  from script.js located under C:\inetpub\wwwroot\citrix\<store>Web\Custom.

Steps:

Opened script.js using notepad++. This file is located under C:\inetpub\wwwroot\citrix\<store>Web\Custom 

By default the file contains following information: 

/* 
var doneClickThrough = false; 

// Before web login 
CTXS.Extensions.beforeLogon = function (callback) { 
doneClickThrough = true; 
CTXS.ExtensionAPI.showMessage({
messageTitle: "Welcome!", 
messageText: "Only for WWCo Employees", 
okButtonText: "Accept", 
okAction: callback 
}); 
}; 

// Before main screen (both web and native) 
CTXS.Extensions.beforeDisplayHomeScreen = function (callback) { 
if (!doneClickThrough) { 
CTXS.ExtensionAPI.showMessage({
messageTitle: "Welcome!", 
messageText: "Only for WWCo Employees", 
okButtonText: "Accept", 
okAction: callback 
}); 
} else { 
callback(); 

}; */ 


Removed the comments /*.....*/ 
After removing the comments the content look like below: 


var doneClickThrough = false; 

// Before web login 
CTXS.Extensions.beforeLogon = function (callback) { 
doneClickThrough = true; 
CTXS.ExtensionAPI.showMessage({
messageTitle: "Welcome!", 
messageText: "Only for WWCo Employees", 
okButtonText: "Accept", 
okAction: callback 
}); 
}; 
 
How to get login banner in SF page. 

-Opened script.js with a notepad. 
This file is located under C:\inetpub\wwwroot\citrix\<store>Web\Custom 

By default the file contains following information: 

/* 
var doneClickThrough = false; 

// Before web login 
CTXS.Extensions.beforeLogon = function (callback) { 
doneClickThrough = true; 
CTXS.ExtensionAPI.showMessage({
messageTitle: "Welcome!", 
messageText: "Only for WWCo Employees", 
okButtonText: "Accept", 
okAction: callback 
}); 
}; 

// Before main screen (both web and native) 
CTXS.Extensions.beforeDisplayHomeScreen = function (callback) { 
if (!doneClickThrough) { 
CTXS.ExtensionAPI.showMessage({
messageTitle: "Welcome!", 
messageText: "Only for WWCo Employees", 
okButtonText: "Accept", 
okAction: callback 
}); 
} else { 
callback(); 

}; */ 


So we just removed the comments /*.....*/ 
After removing the comments the content look like below: 


var doneClickThrough = false; 

// Before web login 
CTXS.Extensions.beforeLogon = function (callback) { 
doneClickThrough = true; 
CTXS.ExtensionAPI.showMessage({
messageTitle: "Welcome!", 
messageText: "Only for WWCo Employees", 
okButtonText: "Accept", 
okAction: callback 
}); 
}; 

// Before main screen (both web and native) 
CTXS.Extensions.beforeDisplayHomeScreen = function (callback) { 
if (!doneClickThrough) { 
CTXS.ExtensionAPI.showMessage({
messageTitle: "Welcome!", 
messageText: "Only for WWCo Employees", 
okButtonText: "Accept", 
okAction: callback 
}); 
} else { 
callback(); 

}; 


Save the change. 
We were able to see the pre-login message 
Added the custom message which worked