Class DeliveryMethodCheckoutStepController

All Implemented Interfaces:
CheckoutStepController

@Controller @RequestMapping("/checkout/multi/delivery-method") public class DeliveryMethodCheckoutStepController extends AbstractCheckoutStepController
Delivery method page controller.
  • Constructor Details

    • DeliveryMethodCheckoutStepController

      public DeliveryMethodCheckoutStepController()
  • Method Details

    • enterStep

      @RequestMapping(value="/choose", method=GET) public String enterStep(org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Description copied from interface: CheckoutStepController
      Swapping the parameter order might break the validation aspect from working.
      Returns:
      returns the result for entering the checkout step
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • doSelectDeliveryMode

      @RequestMapping(value="/select", method=GET) public String doSelectDeliveryMode(@RequestParam("delivery_method") String selectedDeliveryMethod)
      This method gets called when the "Use Selected Delivery Method" button is clicked. It sets the selected delivery mode on the checkout facade and reloads the page highlighting the selected delivery Mode.
      Parameters:
      selectedDeliveryMethod - - the id of the delivery mode.
      Returns:
      - a URL to the page to load.
    • back

      @RequestMapping(value="/back", method=GET) public String back(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
      Returns:
      checkoutstep link for navigating back
    • next

      @RequestMapping(value="/next", method=GET) public String next(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
      Returns:
      checkoutstep link for navigating next
    • getSupportedDeliveryMethods

      protected List<DeliveryModeData> getSupportedDeliveryMethods(CartData cartData)
      In case a cart contains subscription products only display the delivery mode for subscriptions.
    • cartContainsSubscriptionProductsOnly

      protected boolean cartContainsSubscriptionProductsOnly(CartData cartData)
    • getSelectedDeliveryMethodId

      protected String getSelectedDeliveryMethodId(CartData cartData, List<? extends DeliveryModeData> supportedDeliveryModes)
    • getCheckoutStep

      protected CheckoutStep getCheckoutStep()
    • getTmaOrderEntryFacade

      protected TmaOrderEntryFacade getTmaOrderEntryFacade()