Class CheckoutComboShippingForm
java.lang.Object
org.apache.struts.action.ActionForm
com.softslate.commerce.customer.core.BaseForm
com.softslate.commerce.customer.order.BillingAddressForm
com.softslate.commerce.customer.order.AddressesForm
com.softslate.commerce.customer.order.CheckoutAddressesForm
com.softslate.commerce.customer.order.CheckoutComboShippingForm
- All Implemented Interfaces:
Serializable
Struts form class for submissions to record address information and a
selected shipping option during checkout. Used for requests to
"/CheckoutComboShipping.do".
CheckoutComboShippingForm
is a subclass of
CheckoutAddressesForm
, and it inherits
its billing and delivery address properties.
The validate
method of this class runs the
validate
method of CheckoutAddressesForm
to make sure
all the required billing and delivery fields are present. It then checks to
make sure a shipping option was selected, if the "shippingRequired" setting
is set for the store.
- Author:
- David Tobey
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
(package private) static org.apache.commons.logging.Log
private static final long
private String
The shipping method selected by the user during checkout.private String
If "true" this property indicates that if the form is being submitted by a logged-in customer, the customer's account information should be updated.Fields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
void
setIsSubmitted
(boolean isSubmitted) void
setShippingOption
(String string) void
setUpdateCustomer
(String updateCustomer) org.apache.struts.action.ActionErrors
validate
(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request) void
Ensures a theshippingOption
property has been set.Methods inherited from class com.softslate.commerce.customer.order.CheckoutAddressesForm
getAddToAddressBook, getAddToBillingAddressBook, getCustomerAddressID, getCustomerBillingAddressID, getEmailerOptInApproval, setAddToAddressBook, setAddToBillingAddressBook, setCustomerAddressID, setCustomerBillingAddressID, setEmailerOptInApproval
Methods inherited from class com.softslate.commerce.customer.order.AddressesForm
copyBillingToDelivery, getDeliveryAddress1, getDeliveryAddress2, getDeliveryCity, getDeliveryCountry, getDeliveryEmail1, getDeliveryEmail2, getDeliveryExtra1, getDeliveryExtra2, getDeliveryExtra3, getDeliveryExtra4, getDeliveryExtra5, getDeliveryFirstName, getDeliveryLastName, getDeliveryNotes, getDeliveryOrganization, getDeliveryOther, getDeliveryPhone1, getDeliveryPhone2, getDeliveryPostalCode, getDeliveryState, getDeliveryUseBilling, isDeliveryFieldValid, prepareStateAndOtherFields, prepareStateAndOtherFields, setDeliveryAddress1, setDeliveryAddress2, setDeliveryCity, setDeliveryCountry, setDeliveryEmail1, setDeliveryEmail2, setDeliveryExtra1, setDeliveryExtra2, setDeliveryExtra3, setDeliveryExtra4, setDeliveryExtra5, setDeliveryFirstName, setDeliveryLastName, setDeliveryNotes, setDeliveryOrganization, setDeliveryOther, setDeliveryPhone1, setDeliveryPhone2, setDeliveryPostalCode, setDeliveryState, setDeliveryUseBilling, validateDeliveryFields, validateDeliveryStateField
Methods inherited from class com.softslate.commerce.customer.order.BillingAddressForm
doesCountryAllowOtherStates, getBillingAddress1, getBillingAddress2, getBillingCity, getBillingCountry, getBillingEmail1, getBillingEmail2, getBillingExtra1, getBillingExtra2, getBillingExtra3, getBillingExtra4, getBillingExtra5, getBillingFirstName, getBillingLastName, getBillingNotes, getBillingOrganization, getBillingOther, getBillingPhone1, getBillingPhone2, getBillingPostalCode, getBillingState, getCsrfToken, isBillingFieldValid, isOtherState, setBillingAddress1, setBillingAddress2, setBillingCity, setBillingCountry, setBillingEmail1, setBillingEmail2, setBillingExtra1, setBillingExtra2, setBillingExtra3, setBillingExtra4, setBillingExtra5, setBillingFirstName, setBillingLastName, setBillingNotes, setBillingOrganization, setBillingOther, setBillingPhone1, setBillingPhone2, setBillingPostalCode, setBillingState, setCsrfToken, stateAndCountryMatch, validateBillingFields, validateBillingStateField
Methods inherited from class com.softslate.commerce.customer.core.BaseForm
formUtils, getBusinessObjectFactory, getErrors, getMapping, getMessage, getMessages, getRequest, getSettings, getUser, html5OrXhtml, initializeProperties, setBusinessObjectFactory, setErrors, setMapping, setMessages, setRequest, setSettings, setUser
Methods inherited from class org.apache.struts.action.ActionForm
getMultipartRequestHandler, getServlet, getServletWrapper, reset, reset, setMultipartRequestHandler, setServlet, validate
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
log
static org.apache.commons.logging.Log log -
isSubmitted
private boolean isSubmitted -
shippingOption
The shipping method selected by the user during checkout. For theBasicShippingProcessor
, this field corresponds to thecode
property of thesscShippingMethod
database table. -
updateCustomer
If "true" this property indicates that if the form is being submitted by a logged-in customer, the customer's account information should be updated.
-
-
Constructor Details
-
CheckoutComboShippingForm
public CheckoutComboShippingForm()
-
-
Method Details
-
isSubmitted
public boolean isSubmitted()- Overrides:
isSubmitted
in classCheckoutAddressesForm
-
setIsSubmitted
public void setIsSubmitted(boolean isSubmitted) - Overrides:
setIsSubmitted
in classCheckoutAddressesForm
-
getShippingOption
-
setShippingOption
-
getUpdateCustomer
- Overrides:
getUpdateCustomer
in classCheckoutAddressesForm
-
setUpdateCustomer
- Overrides:
setUpdateCustomer
in classCheckoutAddressesForm
-
validate
public org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request) - Overrides:
validate
in classCheckoutAddressesForm
-
validateShippingOption
public void validateShippingOption()Ensures a theshippingOption
property has been set.
-