Class CartAddAction
java.lang.Object
org.apache.struts.action.Action
com.softslate.commerce.customer.core.BaseAction
com.softslate.commerce.customer.order.CartAddAction
- Direct Known Subclasses:
CartEditAction
,CartItemEditAction
,ReorderCartPickupAction
,SavedCartPickupAction
,SavedCartRemoveAction
Struts action class for submissions to add items to the current user's cart.
Used for requests to "/CartAdd.do".
The execute
method of this class invokes
CartProcessor.processAddItems(Map)
to process the add cart request and insert the items into the database. It
then performs processing of the results returned from that method, including
sending low stock email messages.
- Author:
- David Tobey
- See Also:
-
Field Summary
Fields inherited from class org.apache.struts.action.Action
servlet
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addInventoryMessages
(Map results, BaseForm baseForm) org.apache.struts.action.ActionForward
execute
(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) loadEstimatedShippingOptions
(BaseForm baseForm) processResults
(Map results, BaseForm baseForm) void
processSavedCartCookie
(BaseForm baseForm, Map parameters, javax.servlet.http.HttpServletResponse response) Methods inherited from class org.apache.struts.action.Action
addErrors, addMessages, execute, generateToken, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
-
Field Details
-
log
static org.apache.commons.logging.Log log
-
-
Constructor Details
-
CartAddAction
public CartAddAction()
-
-
Method Details
-
execute
public org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception - Overrides:
execute
in classorg.apache.struts.action.Action
- Throws:
Exception
-
processSavedCartCookie
-
processResults
-
addInventoryMessages
-
loadEstimatedShippingOptions
-