Friday, February 1, 2019

Require Shoppers to Log In before Accessing the Web Site

In cases where enabling the Password-Protect Entire site feature causes certain customization to not function as expected (example: login sessions being dropped, online forms being redirected to login-page, etc.), use NetSuite tags instead to mimic the Password-Entire Site feature.

Disable Password-Protect Site:

1. Navigate to Setup > Site Builder > Set Up Web Site > under Shopping tab > uncheck Password-Protect Entire Site then Save.

2. Add script to the custom theme header (Setup > Site Builder > Theme > edit Theme > Addition to <head>):



Note: This is also an alternate solution to Issue 242930 Webstore > Password Protect Site = True > Publish forms redirect back to Login screen after submitting the forms.

No comments:

Post a Comment