Monday 20 June 2016

Persistent Session management for Guest Users

Whenever a Guest User adds a product to the cart and closes his browser he will loose the contents added to the cart on opening a new session on the browser.

Sometimes, as per business requirement we might need to keep the persistent session for guest users as well in order to keep the items in the cart from previous session of the browser.

In order to achieve this in Websphere Commerce we might need to enable GuestUserOrderResetEventListener in wc-server.xml as shown below
  1. <component
        compClassName="com.ibm.commerce.order.event.GuestUserOrderResetEventListener"
        enable="true" name="Migrate Guest Orders Event Listener">
      <property display="false">
          <start enabled="true"/>
      </property>
    </component>

No comments:

Post a Comment