Class MiniCartController

java.lang.Object
de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
de.hybris.platform.b2ctelcoaddon.controllers.misc.MiniCartController

@Controller @Scope("tenant") public class MiniCartController extends AbstractController
Controller for MiniCart functionality which is not specific to a page.
  • Constructor Details

    • MiniCartController

      public MiniCartController()
  • Method Details

    • getMiniCart

      @RequestMapping(value="/cart/miniCart/{totalDisplay:.*}", method=GET) public String getMiniCart(@PathVariable String totalDisplay, org.springframework.ui.Model model)
    • rolloverMiniCartPopup

      @RequestMapping(value="/cart/rollover/{componentUid:.*}", method=GET) public String rolloverMiniCartPopup(@PathVariable String componentUid, org.springframework.ui.Model model) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • getShownProductCount

      protected int getShownProductCount(int entriesSize, int componentShownProductCount)
      Returns the product count to be shown in the cart popup for the case where there are too many items in the cart and not all of them will be displayed.
      Parameters:
      entriesSize - total entries count
      componentShownProductCount - configurable product count to be shown
      Returns:
      the product count to be displayed
    • getTotalPriceWithoutDelivery

      protected PriceData getTotalPriceWithoutDelivery(CartData cartData)
      Returns the total price without the delivery cost.
      Parameters:
      cartData - to retrieve information from
      Returns:
      the total price without delivery cost
    • getCartFacade

      protected TmaCartFacade getCartFacade()