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 AbstractControllerController for MiniCart functionality which is not specific to a page.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
AbstractController.HttpNotFoundException
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
FORWARD_PREFIX, REDIRECT_PREFIX, ROOT
-
-
Constructor Summary
Constructors Constructor Description MiniCartController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetMiniCart(java.lang.String totalDisplay, org.springframework.ui.Model model)protected intgetShownProductCount(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.protected PriceDatagetTotalPriceWithoutDelivery(CartData cartData)Returns the total price without the delivery cost.java.lang.StringrolloverMiniCartPopup(java.lang.String componentUid, org.springframework.ui.Model model)-
Methods inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
addRequestToModel, getBean
-
-
-
-
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 countcomponentShownProductCount- configurable product count to be shown- Returns:
- the product count to be displayed
-
-