Thursday, September 22, 2011

Calculation Framework invocation in Product Page

In order to call Calculation framework in product page for getting tax, discount details etc, we can directly call ApplyCalculationUsageCmd with out calling OrderPrepare or OrderCalculate.
Write a command data bean which implements ApplyCalculationUsageCmd.

Monday, September 19, 2011

JSP Include

To statically include other JSPs in a JSP, use include directive. This is preprocessed.

<%@ include file="file name" %>
To dynamically include JSP when a jsp is executed, use:

<jsp:include page="file name"%>

Thursday, September 15, 2011

Inventory in WCS

4 types of Inventory

Value in STORE.INVENTORYSYSTEM=
-1. ATP - Inventory can be allocated based on on hand or back order from expected inventory. Estimated Avail Time can be obtained for items in cart.

-2. Non ATP - Inventory allocated based on on hand inventory
-3. No Inventory - For infinite inventory like digital downloads.
-4. External Inventory


Order subsystem in WCS

1. Order Capture - Shopping Cart, Shipping, Billing, Order submission
2. Order Process - coordination of inventory, billing, releasing order to fulfillment, order status tracking
3. Inventory - ATP, Non-ATP, No Inventory, External Inventory
4. Payment - plugins for offine/online payment processing

Wednesday, September 14, 2011

Access Control in WCS

There are 2 levels of access control

Role or Command Level - A particular role can be attached to a particular resource group which share a list of commands.
For views, view name should be present in ACACTION table associated to an action group and referenced in ACPOLICY table.

Resource Level - resources specified in getResources() method

Consumer Direct Store

STORE table has STORETYPE value as "B2C" for a Consumer direct store.

There are 3 organizations for a Consumer Direct store

Root - Parent organization
Default - Customers are owned by default
Seller - Can maintain different stores and Sellers

In addition each store can have a B2C organization per seller

Users in WCS

There are 3 type of users in WCS from an end consumer perspective.

Generic User - This user doesnt get assigned a unique user id. All users browsing through the site, like search pages, verticals, product pages etc are generic users

Guest User - This user gets assigned a unique user id in WCS. Required for activities like add to cart and order placement

Registered User - User gets a unique profile in the site when the user registers.

Tuesday, September 06, 2011

Creating database for WCS

By Default WCS creates cloudscape database.
If you need to switch to DB2.
Go to Toolkit bin directory.
Run setdbtype command
Run db2cmd
Run createdb.db2.bat
Example: C:\Apps\WCToolkitEE60\bin>createdb.db2.bat wcsdb db2admin admin db2admin

Change user in Windows command prompt

How to change user name in Windows Command Prompt

Syntax: runas /user:@[domain] [applicationname]
Example :runas /user:db2admin cmd