How many current and saved orders does ATG allow a user profile to have?
A.
ATG allows one current order and one saved order per user profile.
B.
ATGallows one current order and a collection of saved orders per user profile.
C.
ATG allows multiple current orders and a collection of saved orders per user profile.
D.
Only one order can exist for a Give user profileinATG. There is no support for saved orders.
Explanation:
Note: loadShoppingCarts
public void loadShoppingCarts(RepositoryItem pProfile,
OrderHolder pShoppingCart)
throws CommerceException
Parameters:
pProfile – the user profile
pShoppingCart – the OrderHolder component for this user
Throws:
CommerceException – is any errors occur while loading the shopping carts
This method finds all the shopping carts for the user and places them into the session-scope
OrderHolder component. “Shopping Carts” are defined to be orders whose state isINCOMPLETE.
The orders are sorted by last activity date, and the last order touched is made the current order.
This method will optionally merge the current shopping cart for the session (from the
OrderHolder.current property) with the first persistent order loaded from the database. This
functionality is toggeled through the mergeOrders property of this form handler. NOTE: This
method used to acquire a transaction lock, but we’ve found deadlock issues and have decided to
remove the locks. See bug 146012. This method now performs its actions without a lock.atg.commerce.profile
Class CommerceProfileTools