Wednesday 4 October 2017

Identifying if a item is eligible for placing a recurring order in WCS

In WCS OOTB provides a feature to the customers for placing the recurring orders but this option is showed only when the shopping cart has the items eligible for recurring order.

In Order to identify whether a item is eligible for recurring order or not please check the CATENTSUBS table DISALLOW_REC_ORDER column.

DISALLOW_REC_ORDER :  Indicates whether this catalog entry is prohibited from being purchased through recurring order. Default value is 0.
0
No
1
Yes

Identifying the WCS server using JSESSIONID

Most of the times debugging the Production Issues needs logs from Application Servers. In Order to Identify which application server is serving the request from browser can be known by using the JSESSIONID cookie which is OOTB cookie.

Follow the below steps for identifying the WCS Application server details

1. Install "Edit this cookie" addon for chrome (Or any other cookie manager to see the cookies on the browser).
2. Check the JSESSIONID cookie value which will be in the format of UNIQUE_ID:CLONEID get the CLONEID from the JSESSIONID cookie.
3. Open the  plugin-cfg.xml file from the webserver (IHS) and search for the mapping of the CLONEID to the server for eg: mapping shown below for cloneidabcd12 with the server xyzserver.companyname.com.

<Server CloneID="abcd12" ConnectTimeout="0" ExtendedHandshake="false" MaxConnections="-1" 
     Name="WC_demo_node_server1" ServerIOTimeout="0" WaitForContinue="false">
    <Transport Hostname="xyzserver.companyname.com" Port="9101" Protocol="http"/>
</Server>