Removing Item Redirects to Login Page Under Secure Domain
In some implementations of Site Builder Reference Checkout 2.05, shoppers are redirected to the login page after they remove an item from their shopping cart. This problem occurs in the following situations:
-
Shoppers are not logged in to a customer account.
-
The website is using a secure (HTTPS) shopping domain.
-
The patch for Secure Shopping for Site Builder Implementations has been applied.
The following patch instructions describe how to correct this problem so that the item is removed from the shopping cart and the shopper is not redirected to the login page.
To update the live-order-line.ss file:
-
Open the
live-order-line.ss
file in the following location: Web Site Hosting Files > Live Hosting Files > SSP Applications > NetSuite Inc. -Checkout 2.05.0 > Custom Checkout > services. -
Find the following line of code:
// If we are not in the checkout OR we are logged in // When on store, login in is not required // When on checkout, login is required if (Utils.isCheckoutDomain() || session.isLoggedIn2()) {
-
And replace it with the following code:
// If we are not in the checkout OR we are logged in // When on store, login in is not required // When on checkout, login is required if (Utils.isShoppingDomain() || Utils.isCheckoutDomain() || session.isLoggedIn2()) {
-
Save the updated file.
-
Check the web store to confirm that items are removed from the shopping cart for both guests and logged-in shoppers.