Class ChineseDeliveryMethodCheckoutStepController

All Implemented Interfaces:
CheckoutStepController

@Scope("tenant") @RequestMapping("/checkout/multi/delivery-method") public class ChineseDeliveryMethodCheckoutStepController extends DeliveryMethodCheckoutStepController
Controller for the DeliveryMethodCheckoutStep of the checkout steps
  • Constructor Details

    • ChineseDeliveryMethodCheckoutStepController

      public ChineseDeliveryMethodCheckoutStepController()
  • 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 CMSItemNotFoundException
      Description copied from interface: CheckoutStepController
      Swapping the parameter order might break the validation aspect from working.
      Specified by:
      enterStep in interface CheckoutStepController
      Overrides:
      enterStep in class DeliveryMethodCheckoutStepController
      Returns:
      returns the result for entering the checkout step
      Throws:
      CMSItemNotFoundException
    • doSelectDeliveryMode

      @RequestMapping(value="/select", method=POST) public String doSelectDeliveryMode(@RequestParam("delivery_method") String selectedDeliveryMethod, @RequestParam("deliveryTimeSlot") String deliveryTimeSlot)
      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.
    • getCheckoutFacade

      protected DeliveryTimeSlotFacade getCheckoutFacade()
      Overrides:
      getCheckoutFacade in class AbstractCheckoutController