This section describes extensions to existing item descriptors in the profile repository.
Extensions to the User Item Descriptor
This section describes property additions and extensions for the user item descriptor.
age
Theageproperty is a CRS-specific derived property calculated using thedateOfBirthproperty that is included in ATG Commerce. This property is used by the 25% Off Women’s Apparel promotion, which offers a 25% discount on products in the Women’s Apparel category to women that are between the ages of 30 and 39. See CRS Promotions for details on the 25% Off Women’s Apparel promotion.
autoLogin
Commerce Reference Store sets theautoLoginproperty default totrue. This enables the ATG Commerce auto-login by profile feature, which allows registered customers to choose a “log me in automatically” option on your Web site. For more auto-login by profile information, see Tracking Registered Users in the ATG Personalization Programming Guide.
billingAddress
ThebillingAddressproperty stores a customer’s default billing address in an item of typecontactInfo. Commerce Reference Store extends the ATG Commerce definition ofbillingAddresswith the addition of thecascadeattribute. This attribute indicates that when changes are made to auseritem, appropriate changes should also automatically be made to the correspondingcontactInfoitem that stores the customer’s billing address. Thecascadeattribute is set tocascade="update,delete".updateupdates thecontactInfoitem as needed, whiledeletedeletes thecontactInfoitem if the parentuseritem is deleted.
Note: For more information on the
cascadeattribute, see Cascading Data Relationships in the ATG Repository Guide.
categoryLastBrowsed
categoryLastBrowsedis a CRS-specific property that stores the last category a customer looked at. The gadgets that implement a Continue Shopping button use this property to return a customer to the last category page he viewed.categoryLastBrowsedmay be updated by any of a number of JSP pages as a customer browses the ATG Store website. The following example shows the code in the/browse/gadgets/categoryContents.jspgadget that setscategoryLastBrowsed:
<dsp:setvalue bean="Profile.categoryLastBrowsed"
paramvalue="categoryId" />
externalID
externalIDis a CRS-specific property that provides a location to store old customer IDs. TheexternalIDproperty allows you to import customers from an existing site, and maintain and track their original IDs.
gender
Commerce Reference Store extends thegenderproperty by adding anunknownvalue for customers who have registered but have not provided a gender selection. Gender is not a required property in Commerce Reference Store.
itemsBought
itemsBoughtis a CRS-specific property in the form of a list that stores all the products a customer has purchased.itemsBoughtdata is stored in a separate table, calledcpb_items_bought, with fields for user ID and SKU ID. Each time a customer submits an order in the/checkout/gadgets/confirmControls.jspgadget, the Nucleus component/atg/store/order/purchase/CommitOrderFormHandlerupdates thecpb_items_boughttable through a series of calls to two additional CRS-specific classes:
lastPurchaseDate
lastPurchaseDateis a CRS-specific property that stores the date of a customer’s last committed order. Each time a customer submits an order in the/checkout/gadgets/confirmControls.jspgadget, the Nucleus component/atg/store/order/purchase/CommitOrderFormHandlerpopulates this property through a series of calls to two additional CRS-specific classes:
numberOfOrders
numberOfOrdersis a CRS-specific property that tracks the number of orders a customer has placed. Each time a customer submits an order in the/checkout/gadgets/confirmControls.jspgadget, the Nucleus component/atg/store/order/purchase/CommitOrderFormHandlerincrements this property through a series of calls to two additional CRS-specific classes:
pricelist
The inclusion of apriceListproperty in the customer’s profile is required in order to implement ATG Commerce price list functionality. For detailed information, see the Using Price Lists section of the ATG Commerce Programming Guide.
referralSource
referralSourceis a CRS-specific property that stores the selection a customer made from a list of referral sources while filling out the registration form in the/myaccount/gadgets/register.jspgadget.
Commerce Reference Store referral choices are enumerated in
userProfile.xmland include the following (the display string that appears in ATG Store is provided in parentheses):
Display strings for the referral sources are contained in the
/atg/projects/store/profile/UserProfileTemplateResources.propertiesfile in<ATG9dir>/CommerceReferenceStore/Store/EStore/lib/classes.jar.
Note: The display name for
referralSourcein the ATG Business Control Center is “Where did you hear about us.”
salePriceList
The inclusion of asalePricelistproperty in the customer’s profile is required in order to implement ATG Commerce sale price list functionality. For detailed information, see the Implementing Sale Prices Using Price Lists section of the ATG Commerce Programming Guide
shippingAddress
TheshippingAddressproperty stores a customer’s default shipping address in an item of typecontactInfo. Commerce Reference Store extends the ATG Commerce definition ofshippingAddresswith the addition of thecascadeattribute. This attribute indicates that when changes are made to auseritem, appropriate changes should also automatically be made to the correspondingcontactInfoitem that stores the customer’s shipping address. Thecascadeattribute is set tocascade="update,delete".updateupdates thecontactInfoitem as needed, whiledeletedeletes thecontactInfoitem if the parentuseritem is deleted.
Note: For more information on the cascade attribute, see Cascading Data Relationships in the ATG Repository Guide.
storeID
storeIdis a CRS-specific property that tracks the current country store for a customer, thereby making sure a customer sees the correct catalog, price lists, and so on, for his or her country. If you are not running Commerce Reference Store’sStore.Estore.Internationalmodule, this property is ignored.
Extensions to the credit-card Item Descriptor
Commerce Reference Store extends the credit-card item descriptor so that the credit card number is encrypted using the Triple DES encryption algorithm from the Sun JCE security provider. Out of the box, ATG Commerce doesn’t apply any encryption to credit card information.

