Class MiniCartController


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

      • MiniCartController

        public MiniCartController()
    • Method Detail

      • getMiniCart

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

        @RequestMapping(value="/cart/rollover/{componentUid:.*}",
                        method=GET)
        public java.lang.String rolloverMiniCartPopup​(@PathVariable
                                                      java.lang.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