| java.lang.Object org.ofbiz.order.shoppingcart.ShoppingCartHelper
Method Summary | |
public Map | addCategoryDefaults(String catalogId, String categoryId) | public Map | addToCart(String catalogId, String shoppingListId, String shoppingListItemSeqId, String productId, String productCategoryId, String itemType, String itemDescription, double price, double amount, double quantity, Map context) Event to add an item to the shopping cart. | public Map | addToCartBulk(String catalogId, String categoryId, Map context) | public Map | addToCartFromOrder(String catalogId, String orderId, String[] itemIds, boolean addAll) | public boolean | clearCart() Empty the shopping cart. | public Map | deleteFromCart(Map context) Delete an item from the shopping cart. | public ShoppingCart | getCartObject() Returns the shopping cart this helper is wrapping. | public GenericValue | getFeatureAppl(String productId, String optionField, String featureId) | public String | getRemoveFeatureTypeId(String optionField) | public Map | modifyCart(Security security, GenericValue userLogin, Map context, boolean removeSelected, String[] selectedItems) Update the items in the shopping cart. |
ShoppingCartHelper | public ShoppingCartHelper(GenericDelegator delegator, LocalDispatcher dispatcher, ShoppingCart cart)(Code) | | Changes will be made to the cart directly, as opposed
to a copy of the cart provided.
Parameters: cart - The cart to manipulate |
addCategoryDefaults | public Map addCategoryDefaults(String catalogId, String categoryId)(Code) | | Adds all products in a category according to default quantity on ProductCategoryMember
for each; if no default for a certain product in the category, or if
quantity is 0, do not add
|
addToCart | public Map addToCart(String catalogId, String shoppingListId, String shoppingListItemSeqId, String productId, String productCategoryId, String itemType, String itemDescription, double price, double amount, double quantity, Map context)(Code) | | Event to add an item to the shopping cart.
|
addToCartBulk | public Map addToCartBulk(String catalogId, String categoryId, Map context)(Code) | | Adds all products in a category according to quantity request parameter
for each; if no parameter for a certain product in the category, or if
quantity is 0, do not add
|
clearCart | public boolean clearCart()(Code) | | Empty the shopping cart.
|
deleteFromCart | public Map deleteFromCart(Map context)(Code) | | Delete an item from the shopping cart.
|
getCartObject | public ShoppingCart getCartObject()(Code) | | Returns the shopping cart this helper is wrapping.
|
|
|