Class BroadleafI18nShippingInfoController
java.lang.Object
org.broadleafcommerce.common.web.controller.BroadleafAbstractController
org.broadleafcommerce.core.web.controller.checkout.AbstractCheckoutController
com.broadleafcommerce.i18n.enterprise.web.controller.AbstractI18nCheckoutController
com.broadleafcommerce.i18n.enterprise.web.controller.BroadleafI18nShippingInfoController
Additional Method to clear the Shipping Address on the Order if there is a request to change the country
on an already persisted Address.
This is required to re-render the DynamicRegionalForm
for a particular ISOCountry
- Author:
- Elbert Bautista (elbertbautista)
-
Field Summary
FieldsFields inherited from class com.broadleafcommerce.i18n.enterprise.web.controller.AbstractI18nCheckoutController
dynamicRegionalFormServiceFields inherited from class org.broadleafcommerce.core.web.controller.checkout.AbstractCheckoutController
ACTIVE_STAGE, addressService, baseConfirmationView, billingInfoFormValidator, cartPageRedirect, cartStateService, checkoutControllerExtensionManager, checkoutPageRedirect, checkoutService, checkoutStagesPartial, checkoutView, countryService, countrySubdivisionService, customerAddressService, customerPaymentService, customerService, dtoTranslationService, fulfillmentGroupService, fulfillmentOptionService, giftCardInfoFormValidator, initBinderService, isoService, multishipAddAddressFormValidator, orderInfoFormValidator, orderMultishipOptionService, orderPaymentService, orderService, paymentGatewayCheckoutService, paymentInfoFormValidator, phoneService, shippingInfoFormValidator -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionchangeMultiShippingAddressCountry(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes, org.broadleafcommerce.core.web.checkout.model.ShippingInfoForm shippingForm, org.springframework.validation.BindingResult result) changeShippingAddressCountry(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes, org.broadleafcommerce.core.web.checkout.model.ShippingInfoForm shippingForm, org.springframework.validation.BindingResult result) Methods inherited from class com.broadleafcommerce.i18n.enterprise.web.controller.AbstractI18nCheckoutController
populateFormData, populateISOCountriesMethods inherited from class org.broadleafcommerce.core.web.controller.checkout.AbstractCheckoutController
getBaseConfirmationView, getCartPageRedirect, getCheckoutPageRedirect, getCheckoutStagesPartial, getCheckoutView, getConfirmationView, initBinder, populateModelWithReferenceDataMethods inherited from class org.broadleafcommerce.common.web.controller.BroadleafAbstractController
addDeepLink, getContextPath, isAjaxRequest, jsonResponse
-
Field Details
-
singleShippingView
- See Also:
-
multiShippingView
- See Also:
-
-
Constructor Details
-
BroadleafI18nShippingInfoController
public BroadleafI18nShippingInfoController()
-
-
Method Details
-
changeShippingAddressCountry
public String changeShippingAddressCountry(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes, org.broadleafcommerce.core.web.checkout.model.ShippingInfoForm shippingForm, org.springframework.validation.BindingResult result) throws org.broadleafcommerce.core.pricing.service.exception.PricingException, org.broadleafcommerce.common.exception.ServiceException - Throws:
org.broadleafcommerce.core.pricing.service.exception.PricingExceptionorg.broadleafcommerce.common.exception.ServiceException
-
changeMultiShippingAddressCountry
public String changeMultiShippingAddressCountry(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes, org.broadleafcommerce.core.web.checkout.model.ShippingInfoForm shippingForm, org.springframework.validation.BindingResult result) throws org.broadleafcommerce.core.pricing.service.exception.PricingException, org.broadleafcommerce.common.exception.ServiceException - Throws:
org.broadleafcommerce.core.pricing.service.exception.PricingExceptionorg.broadleafcommerce.common.exception.ServiceException
-
getSingleShipView
-
getMultiShippingView
-