Class MiniCartController
java.lang.Object
de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
de.hybris.platform.b2ctelcoaddon.controllers.misc.MiniCartController
Controller 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 -
Method Summary
Modifier and TypeMethodDescriptionprotected TmaCartFacadegetMiniCart(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.rolloverMiniCartPopup(String componentUid, org.springframework.ui.Model model) Methods inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
addRequestToModel, getBean
-
Constructor Details
-
MiniCartController
public MiniCartController()
-
-
Method Details
-
getMiniCart
-
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 countcomponentShownProductCount- configurable product count to be shown- Returns:
- the product count to be displayed
-
getTotalPriceWithoutDelivery
Returns the total price without the delivery cost.- Parameters:
cartData- to retrieve information from- Returns:
- the total price without delivery cost
-
getCartFacade
-