Class ShoppingCartItem
java.lang.Object
org.apache.ofbiz.order.shoppingcart.ShoppingCartItem
- All Implemented Interfaces:
Serializable
Title: ShoppingCartItem.java
Description: Shopping cart item object.
- See Also:
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
Cannot create shopping cart item with no parametersprotected
ShoppingCartItem
(Delegator delegator, String itemTypeId, String description, String categoryId, BigDecimal basePrice, Map<String, Object> attributes, String prodCatalogId, Locale locale, ShoppingCart.ShoppingCartItemGroup itemGroup) Creates new ShopingCartItem object.protected
ShoppingCartItem
(GenericValue product, Map<String, GenericValue> additionalProductFeatureAndAppls, Map<String, Object> attributes, String prodCatalogId, Locale locale, String itemType, ShoppingCart.ShoppingCartItemGroup itemGroup) Deprecated.protected
ShoppingCartItem
(GenericValue product, Map<String, GenericValue> additionalProductFeatureAndAppls, Map<String, Object> attributes, String prodCatalogId, Locale locale, String itemType, ShoppingCart.ShoppingCartItemGroup itemGroup, LocalDispatcher dispatcher) Creates new ShoppingCartItem object.protected
ShoppingCartItem
(GenericValue product, Map<String, GenericValue> additionalProductFeatureAndAppls, Map<String, Object> attributes, String prodCatalogId, ProductConfigWrapper configWrapper, Locale locale, String itemType, ShoppingCart.ShoppingCartItemGroup itemGroup, GenericValue parentProduct) Creates new ShoppingCartItem object.Clone an item. -
Method Summary
Modifier and TypeMethodDescriptionint
addAdjustment
(GenericValue adjustment) Add an adjustment to the order item; don't worry about setting the orderId, orderItemSeqId or orderAdjustmentId; they will be set when the order is createdvoid
addAllProductFeatureAndAppls
(Map<String, GenericValue> productFeatureAndApplsToAdd) Add all product feature and appls.void
addContactMech
(String contactMechPurposeTypeId, String contactMechId) Add a contact mech to this purpose; the contactMechPurposeTypeId is requiredaddPromoQuantityCandidateUse
(BigDecimal quantityDesired, GenericValue productPromoCondAction, boolean checkAvailableOnly) Add promo quantity candidate use big decimal.void
Calc deposit adjustments.static String
checkAvailability
(String productId, BigDecimal quantity, Timestamp reservStart, BigDecimal reservLength, ShoppingCart cart) returns "OK" when the product can be booked or returns a string with the dates the related fixed Asset is not availablevoid
Clear promo rule use info.void
confirmPromoRuleUse
(String productPromoId, String productPromoRuleId) Confirm promo rule use.boolean
boolean
equals
(String productId, Timestamp reservStart, BigDecimal reservLength, BigDecimal reservPersons, String accommodationMapId, String accommodationSpotId, Map<String, GenericValue> additionalProductFeatureAndAppls, Map<String, Object> attributes, String prodCatalogId, BigDecimal selectedAmount, ProductConfigWrapper configWrapper, String itemType, ShoppingCart.ShoppingCartItemGroup itemGroup, boolean isPromo) Compares the specified object with this cart item.boolean
equals
(String productId, Timestamp reservStart, BigDecimal reservLength, BigDecimal reservPersons, String accommodationMapId, String accommodationSpotId, Map<String, GenericValue> additionalProductFeatureAndAppls, Map<String, Object> attributes, Map<String, String> orderItemAttributes, String prodCatalogId, BigDecimal selectedAmount, ProductConfigWrapper configWrapper, String itemType, ShoppingCart.ShoppingCartItemGroup itemGroup, boolean isPromo) Compares the specified object order item attributes.boolean
equals
(String productId, Timestamp reservStart, BigDecimal reservLength, BigDecimal reservPersons, Map<String, GenericValue> additionalProductFeatureAndAppls, Map<String, Object> attributes, String prodCatalogId, ProductConfigWrapper configWrapper, String itemType, ShoppingCart.ShoppingCartItemGroup itemGroup, BigDecimal selectedAmount) Compares the specified object with this cart item including rental data.boolean
equals
(String productId, Map<String, GenericValue> additionalProductFeatureAndAppls, Map<String, Object> attributes, String prodCatalogId, BigDecimal selectedAmount) Compares the specified object with this cart item.boolean
equals
(String productId, Map<String, GenericValue> additionalProductFeatureAndAppls, Map<String, Object> attributes, String prodCatalogId, BigDecimal selectedAmount, String itemType, ShoppingCart.ShoppingCartItemGroup itemGroup, boolean isPromo) Compares the specified object with this cart item.boolean
equals
(String productId, Map<String, GenericValue> additionalProductFeatureAndAppls, Map<String, Object> attributes, String prodCatalogId, ProductConfigWrapper configWrapper, String itemType, ShoppingCart.ShoppingCartItemGroup itemGroup, BigDecimal selectedAmount) Compares the specified object with this cart item.boolean
equals
(ShoppingCartItem item) Equals boolean.explodeItem
(ShoppingCart cart, LocalDispatcher dispatcher) Explode item list.static GenericValue
findProduct
(Delegator delegator, boolean skipProductChecks, String prodCatalogId, String productId, Locale locale) Returns accommodationMapIdReturns accommodationSpotIdgetAdditionalProductFeatureAndAppl
(String productFeatureTypeId) Gets additional product feature and appl.Gets additional product feature and appls.Gets adjustments.Gets alternative option product ids.Returns the associatedId.Returns the associatedOrderItemSeqId.getAttribute
(String name) Return a specific attribute.Returns the attributes for the item.Returns the base price.Returns the cancel back order dateGets config wrapper.getContactMech
(String contactMechPurposeTypeId) Get the contactMechId for this item given the contactMechPurposeTypeIdGets delegator.getDescription
(LocalDispatcher dispatcher) Returns the item's description.Returns the item's customer desired delivery date.Gets display item recurring sub total.Gets display item recurring sub total no adj.Gets display item sub total.Gets display item sub total no adj.Gets display price.Returns the date to EstimatedShipDateGets external id.getFeatureIdQtyMap
(BigDecimal quantity) Gets feature id qty map.Returns a Set of the item's featuresgetFeaturesForSupplier
(LocalDispatcher dispatcher, String partyId) Returns a List of the item's features for supplierboolean
Returns isModifiedPriceboolean
Gets is promo.Returns the item's comment.Returns the item group.Gets item product info.Gets item sub total.getItemSubTotal
(BigDecimal quantity) Returns the total line price.Returns the item type.Returns the item type description.Returns the item type.Returns the list price.getName()
Deprecated.use getName(LocalDispatcher dispatcher)getName
(LocalDispatcher dispatcher) Returns the item's description or PRODUCT_NAME from content.Gets optional product features.Returns the OrderItemAssocTypeId.getOrderItemAttribute
(String name) Return an OrderItemAttribute.Gets order item attributes.Gets order item contact mech ids.Gets order item price infos.Gets order item seq id.Returns the "other" adjustments.Returns the "other" adjustments.Gets parent product.Gets parent product id.long
Returns the item's pieces includedGets prod catalog id.Gets the Product entity.Returns the productCategoryId for the item or null if none.Returns the item's productId.Gets promo quantity available.getPromoQuantityCandidateUse
(GenericValue productPromoCondAction) Gets promo quantity candidate use.getPromoQuantityCandidateUseActionAndAllConds
(GenericValue productPromoAction) Gets promo quantity candidate use action and all conds.Gets promo quantity used.static String
getPurchaseOrderItemDescription
(GenericValue product, GenericValue supplierProduct, Locale locale, LocalDispatcher dispatcher) Returns the quantity.Gets quantity used per promo actual iter.Gets quantity used per promo candidate iter.Gets quantity used per promo failed iter.Returns the quoteId.Returns the quoteItemSeqId.Gets recurring base price.Gets recurring display price.calculates for a reservation the percentage/100 extra for more than 1 person.Returns the requirementId.get the percentage for the second personReturns the date to ship afterReturns the reservation length.get the percentage for the third and following personReturns the reservation number of persons.Returns the reservation start date.getReservStart
(BigDecimal addDays) Returns the reservation start date with a number of days added.Returns the user selected amountReturns the date to ship afterReturns the date to ship beforeGets shopping list id.Gets shopping list item seq id.getSize()
Returns the item's size (length + girth)Gets special promo price.Returns a list of the item's standard featuresGets status id.Returns the item's supplierProductId.Returns the item's unit weightint
hashCode()
boolean
isInItemGroup
(String groupNumber) Is in item group boolean.protected boolean
isInventoryAvailableOrNotRequired
(BigDecimal quantity, String productStoreId, LocalDispatcher dispatcher) Is inventory available or not required boolean.static void
isValidCartProduct
(ProductConfigWrapper configWrapper, GenericValue product, Timestamp nowTimestamp, Locale locale) static ShoppingCartItem
makeItem
(Integer cartLocation, String itemType, String itemDescription, String productCategoryId, BigDecimal basePrice, BigDecimal selectedAmount, BigDecimal quantity, Map<String, Object> attributes, String prodCatalogId, ShoppingCart.ShoppingCartItemGroup itemGroup, LocalDispatcher dispatcher, ShoppingCart cart, Boolean triggerExternalOpsBool) Makes a non-product ShoppingCartItem and adds it to the cart.static ShoppingCartItem
makeItem
(Integer cartLocation, String productId, BigDecimal selectedAmount, BigDecimal quantity, BigDecimal unitPrice, Timestamp reservStart, BigDecimal reservLength, BigDecimal reservPersons, String accommodationMapId, String accommodationSpotId, Timestamp shipBeforeDate, Timestamp shipAfterDate, Timestamp reserveAfterDate, Map<String, GenericValue> additionalProductFeatureAndAppls, Map<String, Object> attributes, String prodCatalogId, ProductConfigWrapper configWrapper, String itemType, ShoppingCart.ShoppingCartItemGroup itemGroup, LocalDispatcher dispatcher, ShoppingCart cart, Boolean triggerExternalOpsBool, Boolean triggerPriceRulesBool, String parentProductId, Boolean skipInventoryChecks, Boolean skipProductChecks) Makes a ShoppingCartItem and adds it to the cart.static ShoppingCartItem
makeItem
(Integer cartLocation, String productId, BigDecimal selectedAmount, BigDecimal quantity, BigDecimal unitPrice, Timestamp reservStart, BigDecimal reservLength, BigDecimal reservPersons, String accommodationMapId, String accommodationSpotId, Timestamp shipBeforeDate, Timestamp shipAfterDate, Map<String, GenericValue> additionalProductFeatureAndAppls, Map<String, Object> attributes, String prodCatalogId, ProductConfigWrapper configWrapper, String itemType, ShoppingCart.ShoppingCartItemGroup itemGroup, LocalDispatcher dispatcher, ShoppingCart cart, Boolean triggerExternalOpsBool, Boolean triggerPriceRulesBool, String parentProductId, Boolean skipInventoryChecks, Boolean skipProductChecks) static ShoppingCartItem
makeItem
(Integer cartLocation, String productId, BigDecimal selectedAmount, BigDecimal quantity, BigDecimal unitPrice, Timestamp reservStart, BigDecimal reservLength, BigDecimal reservPersons, Timestamp shipBeforeDate, Timestamp shipAfterDate, Map<String, GenericValue> additionalProductFeatureAndAppls, Map<String, Object> attributes, String prodCatalogId, ProductConfigWrapper configWrapper, String itemType, ShoppingCart.ShoppingCartItemGroup itemGroup, LocalDispatcher dispatcher, ShoppingCart cart, Boolean triggerExternalOpsBool, Boolean triggerPriceRulesBool, String parentProductId, Boolean skipInventoryChecks, Boolean skipProductChecks) Makes a ShoppingCartItem and adds it to the cart.static ShoppingCartItem
makeItem
(Integer cartLocation, GenericValue product, BigDecimal selectedAmount, BigDecimal quantity, BigDecimal unitPrice, Timestamp reservStart, BigDecimal reservLength, BigDecimal reservPersons, String accommodationMapId, String accommodationSpotId, Timestamp shipBeforeDate, Timestamp shipAfterDate, Timestamp reserveAfterDate, Map<String, GenericValue> additionalProductFeatureAndAppls, Map<String, Object> attributes, String prodCatalogId, ProductConfigWrapper configWrapper, String itemType, ShoppingCart.ShoppingCartItemGroup itemGroup, LocalDispatcher dispatcher, ShoppingCart cart, Boolean triggerExternalOpsBool, Boolean triggerPriceRulesBool, GenericValue parentProduct, Boolean skipInventoryChecks, Boolean skipProductChecks) Makes a ShoppingCartItem and adds it to the cart.static ShoppingCartItem
makeItem
(Integer cartLocation, GenericValue product, BigDecimal selectedAmount, BigDecimal quantity, BigDecimal unitPrice, Timestamp reservStart, BigDecimal reservLength, BigDecimal reservPersons, Timestamp shipBeforeDate, Timestamp shipAfterDate, Map<String, GenericValue> additionalProductFeatureAndAppls, Map<String, Object> attributes, String prodCatalogId, ProductConfigWrapper configWrapper, String itemType, ShoppingCart.ShoppingCartItemGroup itemGroup, LocalDispatcher dispatcher, ShoppingCart cart, Boolean triggerExternalOpsBool, Boolean triggerPriceRulesBool, GenericValue parentProduct, Boolean skipInventoryChecks, Boolean skipProductChecks) Makes a ShoppingCartItem and adds it to the cart.static ShoppingCartItem
makePurchaseOrderItem
(Integer cartLocation, String productId, BigDecimal selectedAmount, BigDecimal quantity, Map<String, GenericValue> additionalProductFeatureAndAppls, Map<String, Object> attributes, String prodCatalogId, ProductConfigWrapper configWrapper, String itemType, ShoppingCart.ShoppingCartItemGroup itemGroup, LocalDispatcher dispatcher, ShoppingCart cart, GenericValue supplierProduct, Timestamp shipBeforeDate, Timestamp shipAfterDate, Timestamp cancelBackOrderDate) Makes a ShoppingCartItem for a purchase order item and adds it to the cart.void
putAdditionalProductFeatureAndAppl
(GenericValue additionalProductFeatureAndAppl) Put additional product feature and appl.removeAdditionalProductFeatureAndAppl
(String productFeatureTypeId) Remove additional product feature and appl generic value.void
removeAdjustment
(int index) Remove adjustment.void
removeAdjustment
(GenericValue adjustment) Remove adjustment.void
removeAttribute
(String name) Removes an item attribute.removeContactMech
(String contactMechPurposeTypeId) Remove the contactMechId from this item given the contactMechPurposeTypeIdvoid
removeFeatureAdjustment
(String productFeatureId) Remove feature adjustment.void
Remove an OrderItemAttribute.void
resetPromoRuleUse
(String productPromoId, String productPromoRuleId) Reset promo rule use.void
setAccommodationId
(String accommodationMapId, String accommodationSpotId) Sets accommodationId using the reservationvoid
setAlternativeOptionProductIds
(List<String> alternativeOptionProductIds) Sets alternative option product ids.void
setAssociatedOrderId
(String associatedOrderId) Sets the associatedOrderId.void
setAssociatedOrderItemSeqId
(String associatedOrderItemSeqId) Sets the associatedOrderItemSeqId.void
setAttribute
(String name, Object value) Sets an item attribute.void
setBasePrice
(BigDecimal basePrice) Sets the base price for the item; use with cautionvoid
Sets the cancel back order datevoid
setDesiredDeliveryDate
(Timestamp ddDate) Sets the item's customer desired delivery date.void
setDisplayPrice
(BigDecimal displayPrice) Sets the display price for the item; use with cautionvoid
Sets the date to EstimatedShipDatevoid
setExternalId
(String externalId) Sets external id.void
setIsModifiedPrice
(boolean isModifiedPrice) Set isModifiedPricevoid
setIsPromo
(boolean isPromo) Sets is promo.void
setItemComment
(String itemComment) Sets the item comment.void
setItemGroup
(String groupNumber, ShoppingCart cart) Sets the item group.void
setItemGroup
(ShoppingCart.ShoppingCartItemGroup itemGroup) Sets the item group.void
setItemType
(String itemType) Sets the item type.void
setListPrice
(BigDecimal listPrice) Sets list price.protected void
Set the item's locale (from ShoppingCart.setLocale)void
Set the item's description.void
setOrderItemAssocTypeId
(String orderItemAssocTypeId) Sets the orderItemAssocTypeId.void
setOrderItemAttribute
(String name, String value) Creates an OrderItemAttribute entry.void
setOrderItemSeqId
(String orderItemSeqId) Sets order item seq id.void
setProductCategoryId
(String productCategoryId) Sets product category id.void
setQuantity
(BigDecimal quantity, LocalDispatcher dispatcher, ShoppingCart cart) Sets the quantity for the item and validates the change in quantity, etcvoid
setQuantity
(BigDecimal quantity, LocalDispatcher dispatcher, ShoppingCart cart, boolean triggerExternalOps) Sets the quantity for the item and validates the change in quantity, etcvoid
setQuantity
(BigDecimal quantity, LocalDispatcher dispatcher, ShoppingCart cart, boolean triggerExternalOps, boolean resetShipGroup) Sets the quantity for the item and validates the change in quantity, etcvoid
setQuantity
(BigDecimal quantity, LocalDispatcher dispatcher, ShoppingCart cart, boolean triggerExternalOps, boolean resetShipGroup, boolean updateProductPrice) Sets the quantity for the item and validates the change in quantity, etcprotected void
setQuantity
(BigDecimal quantity, LocalDispatcher dispatcher, ShoppingCart cart, boolean triggerExternalOps, boolean resetShipGroup, boolean updateProductPrice, boolean skipInventoryChecks) Sets quantity.void
setQuoteId
(String quoteId) Sets the quoteId.void
setQuoteItemSeqId
(String quoteItemSeqId) Sets the quoteItemSeqId.void
setRecurringBasePrice
(BigDecimal recurringBasePrice) Sets the base price for the item; use with cautionvoid
setRecurringDisplayPrice
(BigDecimal recurringDisplayPrice) Sets the display price for the item; use with cautionvoid
setRequirementId
(String requirementId) Sets the requirementId.void
setReserv2ndPPPerc
(BigDecimal reserv2ndPPPerc) Sets the extra % for second personvoid
setReserveAfterDate
(Timestamp date) Sets the date to ship aftervoid
setReservLength
(BigDecimal reservLength) Sets the reservation lengthvoid
setReservNthPPPerc
(BigDecimal reservNthPPPerc) Sets the extra % for third and following personvoid
setReservPersons
(BigDecimal reservPersons) Sets number of persons using the reservationvoid
setReservStart
(Timestamp reservStart) Sets the reservation start datevoid
setSelectedAmount
(BigDecimal selectedAmount) Sets the user selected amountvoid
setShipAfterDate
(Timestamp date) Sets the date to ship aftervoid
setShipBeforeDate
(Timestamp date) Sets the date to ship beforevoid
setShoppingList
(String shoppingListId, String itemSeqId) Sets shopping list.void
setSpecialPromoPrice
(BigDecimal specialPromoPrice) Sets special promo price.void
setStatusId
(String statusId) Sets status id.void
setSupplierProductId
(String supplierProductId) Set the item's supplierProductId.boolean
Returns true if shipping charges apply to this item.boolean
Returns true if tax charges apply to this item.void
updatePrice
(LocalDispatcher dispatcher, ShoppingCart cart) Update price.
-
Field Details
-
GEN_ROUNDING
-
ATTRIBUTE_NAMES
-
-
Constructor Details
-
ShoppingCartItem
Clone an item. -
ShoppingCartItem
protected ShoppingCartItem()Cannot create shopping cart item with no parameters -
ShoppingCartItem
@Deprecated protected ShoppingCartItem(GenericValue product, Map<String, GenericValue> additionalProductFeatureAndAppls, Map<String, Object> attributes, String prodCatalogId, Locale locale, String itemType, ShoppingCart.ShoppingCartItemGroup itemGroup) Deprecated.Creates new ShoppingCartItem object. -
ShoppingCartItem
protected ShoppingCartItem(GenericValue product, Map<String, GenericValue> additionalProductFeatureAndAppls, Map<String, Object> attributes, String prodCatalogId, Locale locale, String itemType, ShoppingCart.ShoppingCartItemGroup itemGroup, LocalDispatcher dispatcher) Creates new ShoppingCartItem object.- Parameters:
dispatcher
- TODO
-
ShoppingCartItem
protected ShoppingCartItem(GenericValue product, Map<String, GenericValue> additionalProductFeatureAndAppls, Map<String, Object> attributes, String prodCatalogId, ProductConfigWrapper configWrapper, Locale locale, String itemType, ShoppingCart.ShoppingCartItemGroup itemGroup, GenericValue parentProduct) Creates new ShoppingCartItem object. -
ShoppingCartItem
protected ShoppingCartItem(Delegator delegator, String itemTypeId, String description, String categoryId, BigDecimal basePrice, Map<String, Object> attributes, String prodCatalogId, Locale locale, ShoppingCart.ShoppingCartItemGroup itemGroup) Creates new ShopingCartItem object.
-
-
Method Details
-
makePurchaseOrderItem
public static ShoppingCartItem makePurchaseOrderItem(Integer cartLocation, String productId, BigDecimal selectedAmount, BigDecimal quantity, Map<String, GenericValue> additionalProductFeatureAndAppls, Map<String, throws CartItemModifyException, ItemNotFoundExceptionObject> attributes, String prodCatalogId, ProductConfigWrapper configWrapper, String itemType, ShoppingCart.ShoppingCartItemGroup itemGroup, LocalDispatcher dispatcher, ShoppingCart cart, GenericValue supplierProduct, Timestamp shipBeforeDate, Timestamp shipAfterDate, Timestamp cancelBackOrderDate) Makes a ShoppingCartItem for a purchase order item and adds it to the cart. NOTE: This method will get the product entity and check to make sure it can be purchased.- Parameters:
cartLocation
- The location to place this item; null will place at the endproductId
- The primary key of the product being addedquantity
- The quantity to addadditionalProductFeatureAndAppls
- Product feature/appls mapattributes
- All unique attributes for this item (NOT features)prodCatalogId
- The catalog this item was added fromconfigWrapper
- The product configuration wrapper (null if the product is not configurable)dispatcher
- LocalDispatcher object for doing promotions, etccart
- The parent shopping cart object this item will belong tosupplierProduct
- GenericValue of SupplierProduct entity, containing product description and pricesshipBeforeDate
- Request that the shipment be made before this dateshipAfterDate
- Request that the shipment be made after this datecancelBackOrderDate
- The date which if crossed causes order cancellation- Returns:
- a new ShoppingCartItem object
- Throws:
CartItemModifyException
ItemNotFoundException
-
makeItem
public static ShoppingCartItem makeItem(Integer cartLocation, String productId, BigDecimal selectedAmount, BigDecimal quantity, BigDecimal unitPrice, Timestamp reservStart, BigDecimal reservLength, BigDecimal reservPersons, Timestamp shipBeforeDate, Timestamp shipAfterDate, Map<String, GenericValue> additionalProductFeatureAndAppls, Map<String, throws CartItemModifyException, ItemNotFoundExceptionObject> attributes, String prodCatalogId, ProductConfigWrapper configWrapper, String itemType, ShoppingCart.ShoppingCartItemGroup itemGroup, LocalDispatcher dispatcher, ShoppingCart cart, Boolean triggerExternalOpsBool, Boolean triggerPriceRulesBool, String parentProductId, Boolean skipInventoryChecks, Boolean skipProductChecks) Makes a ShoppingCartItem and adds it to the cart. NOTE: This method will get the product entity and check to make sure it can be purchased.- Parameters:
cartLocation
- The location to place this item; null will place at the endproductId
- The primary key of the product being addedselectedAmount
- Optional. Defaults to 0.0. If a selectedAmount is needed (complements the quantity value), pass it in here.quantity
- Required. The quantity to add.unitPrice
- Optional. Defaults to 0.0, which causes calculation of price.reservStart
- Optional. The start of the reservation.reservLength
- Optional. The length of the reservation.reservPersons
- Optional. The number of persons taking advantage of the reservation.shipBeforeDate
- Optional. The date to ship the order by.shipAfterDate
- Optional. Wait until this date to ship.additionalProductFeatureAndAppls
- Optional. Product feature/appls map.attributes
- Optional. All unique attributes for this item (NOT features).prodCatalogId
- Optional, but strongly recommended. The catalog this item was added from.configWrapper
- Optional. The product configuration wrapper (null if the product is not configurable).itemType
- Optional. Specifies the type of cart item, corresponds to an OrderItemType and should be a valid orderItemTypeId.itemGroup
- Optional. Specifies which item group in the cart this should belong to, if item groups are needed/desired.dispatcher
- Required (for price calculation, promos, etc). LocalDispatcher object for doing promotions, etc.cart
- Required. The parent shopping cart object this item will belong to.triggerExternalOpsBool
- Optional. Defaults to true. Trigger external operations (like promotions and such)?triggerPriceRulesBool
- Optional. Defaults to true. Trigger the price rules to calculate the price for this item?- Returns:
- a new ShoppingCartItem object
- Throws:
CartItemModifyException
ItemNotFoundException
-
makeItem
public static ShoppingCartItem makeItem(Integer cartLocation, String productId, BigDecimal selectedAmount, BigDecimal quantity, BigDecimal unitPrice, Timestamp reservStart, BigDecimal reservLength, BigDecimal reservPersons, String accommodationMapId, String accommodationSpotId, Timestamp shipBeforeDate, Timestamp shipAfterDate, Map<String, GenericValue> additionalProductFeatureAndAppls, Map<String, throws CartItemModifyException, ItemNotFoundExceptionObject> attributes, String prodCatalogId, ProductConfigWrapper configWrapper, String itemType, ShoppingCart.ShoppingCartItemGroup itemGroup, LocalDispatcher dispatcher, ShoppingCart cart, Boolean triggerExternalOpsBool, Boolean triggerPriceRulesBool, String parentProductId, Boolean skipInventoryChecks, Boolean skipProductChecks) -
makeItem
public static ShoppingCartItem makeItem(Integer cartLocation, String productId, BigDecimal selectedAmount, BigDecimal quantity, BigDecimal unitPrice, Timestamp reservStart, BigDecimal reservLength, BigDecimal reservPersons, String accommodationMapId, String accommodationSpotId, Timestamp shipBeforeDate, Timestamp shipAfterDate, Timestamp reserveAfterDate, Map<String, GenericValue> additionalProductFeatureAndAppls, Map<String, throws CartItemModifyException, ItemNotFoundExceptionObject> attributes, String prodCatalogId, ProductConfigWrapper configWrapper, String itemType, ShoppingCart.ShoppingCartItemGroup itemGroup, LocalDispatcher dispatcher, ShoppingCart cart, Boolean triggerExternalOpsBool, Boolean triggerPriceRulesBool, String parentProductId, Boolean skipInventoryChecks, Boolean skipProductChecks) Makes a ShoppingCartItem and adds it to the cart.- Parameters:
accommodationMapId
- Optional. reservations add into workeffortaccommodationSpotId
- Optional. reservations add into workeffort- Throws:
CartItemModifyException
ItemNotFoundException
-
makeItem
public static ShoppingCartItem makeItem(Integer cartLocation, GenericValue product, BigDecimal selectedAmount, BigDecimal quantity, BigDecimal unitPrice, Timestamp reservStart, BigDecimal reservLength, BigDecimal reservPersons, Timestamp shipBeforeDate, Timestamp shipAfterDate, Map<String, GenericValue> additionalProductFeatureAndAppls, Map<String, throws CartItemModifyExceptionObject> attributes, String prodCatalogId, ProductConfigWrapper configWrapper, String itemType, ShoppingCart.ShoppingCartItemGroup itemGroup, LocalDispatcher dispatcher, ShoppingCart cart, Boolean triggerExternalOpsBool, Boolean triggerPriceRulesBool, GenericValue parentProduct, Boolean skipInventoryChecks, Boolean skipProductChecks) Makes a ShoppingCartItem and adds it to the cart. WARNING: This method does not check if the product is in a purchase category. rental fields were added.- Parameters:
cartLocation
- The location to place this item; null will place at the endproduct
- The product entity relating to the product being addedselectedAmount
- Optional. Defaults to 0.0. If a selectedAmount is needed (complements the quantity value), pass it in here.quantity
- Required. The quantity to add.unitPrice
- Optional. Defaults to 0.0, which causes calculation of price.reservStart
- Optional. The start of the reservation.reservLength
- Optional. The length of the reservation.reservPersons
- Optional. The number of persons taking advantage of the reservation.shipBeforeDate
- Optional. The date to ship the order by.shipAfterDate
- Optional. Wait until this date to ship.additionalProductFeatureAndAppls
- Optional. Product feature/appls map.attributes
- Optional. All unique attributes for this item (NOT features).prodCatalogId
- Optional, but strongly recommended. The catalog this item was added from.configWrapper
- Optional. The product configuration wrapper (null if the product is not configurable).itemType
- Optional. Specifies the type of cart item, corresponds to an OrderItemType and should be a valid orderItemTypeId.itemGroup
- Optional. Specifies which item group in the cart this should belong to, if item groups are needed/desired.dispatcher
- Required (for price calculation, promos, etc). LocalDispatcher object for doing promotions, etc.cart
- Required. The parent shopping cart object this item will belong to.triggerExternalOpsBool
- Optional. Defaults to true. Trigger external operations (like promotions and such)?triggerPriceRulesBool
- Optional. Defaults to true. Trigger the price rules to calculate the price for this item?- Returns:
- a new ShoppingCartItem object
- Throws:
CartItemModifyException
-
makeItem
public static ShoppingCartItem makeItem(Integer cartLocation, GenericValue product, BigDecimal selectedAmount, BigDecimal quantity, BigDecimal unitPrice, Timestamp reservStart, BigDecimal reservLength, BigDecimal reservPersons, String accommodationMapId, String accommodationSpotId, Timestamp shipBeforeDate, Timestamp shipAfterDate, Timestamp reserveAfterDate, Map<String, GenericValue> additionalProductFeatureAndAppls, Map<String, throws CartItemModifyExceptionObject> attributes, String prodCatalogId, ProductConfigWrapper configWrapper, String itemType, ShoppingCart.ShoppingCartItemGroup itemGroup, LocalDispatcher dispatcher, ShoppingCart cart, Boolean triggerExternalOpsBool, Boolean triggerPriceRulesBool, GenericValue parentProduct, Boolean skipInventoryChecks, Boolean skipProductChecks) Makes a ShoppingCartItem and adds it to the cart.- Parameters:
accommodationMapId
- Optional. reservations add into workeffortaccommodationSpotId
- Optional. reservations add into workeffort- Throws:
CartItemModifyException
-
findProduct
public static GenericValue findProduct(Delegator delegator, boolean skipProductChecks, String prodCatalogId, String productId, Locale locale) throws ItemNotFoundException - Throws:
ItemNotFoundException
-
isValidCartProduct
public static void isValidCartProduct(ProductConfigWrapper configWrapper, GenericValue product, Timestamp nowTimestamp, Locale locale) throws CartItemModifyException - Throws:
CartItemModifyException
-
makeItem
public static ShoppingCartItem makeItem(Integer cartLocation, String itemType, String itemDescription, String productCategoryId, BigDecimal basePrice, BigDecimal selectedAmount, BigDecimal quantity, Map<String, Object> attributes, String prodCatalogId, ShoppingCart.ShoppingCartItemGroup itemGroup, LocalDispatcher dispatcher, ShoppingCart cart, Boolean triggerExternalOpsBool) throws CartItemModifyExceptionMakes a non-product ShoppingCartItem and adds it to the cart. NOTE: This is only for non-product items; items without a product entity (work items, bulk items, etc)- Parameters:
cartLocation
- The location to place this item; null will place at the enditemType
- The OrderItemTypeId for the item being addeditemDescription
- The optional description of the itemproductCategoryId
- The optional category the product *will* go inbasePrice
- The price for this itemselectedAmount
-quantity
- The quantity to addattributes
- All unique attributes for this item (NOT features)prodCatalogId
- The catalog this item was added fromdispatcher
- LocalDispatcher object for doing promotions, etccart
- The parent shopping cart object this item will belong totriggerExternalOpsBool
- Indicates if we should run external operations (promotions, auto-save, etc)- Returns:
- a new ShoppingCartItem object
- Throws:
CartItemModifyException
-
checkAvailability
public static String checkAvailability(String productId, BigDecimal quantity, Timestamp reservStart, BigDecimal reservLength, ShoppingCart cart) returns "OK" when the product can be booked or returns a string with the dates the related fixed Asset is not available -
getPurchaseOrderItemDescription
public static String getPurchaseOrderItemDescription(GenericValue product, GenericValue supplierProduct, Locale locale, LocalDispatcher dispatcher) -
getProdCatalogId
Gets prod catalog id.- Returns:
- the prod catalog id
-
getExternalId
Gets external id.- Returns:
- the external id
-
setExternalId
Sets external id.- Parameters:
externalId
- the external id
-
getSelectedAmount
Returns the user selected amount -
setSelectedAmount
Sets the user selected amount -
setAccommodationId
Sets accommodationId using the reservation -
setQuantity
public void setQuantity(BigDecimal quantity, LocalDispatcher dispatcher, ShoppingCart cart) throws CartItemModifyException Sets the quantity for the item and validates the change in quantity, etc- Throws:
CartItemModifyException
-
setQuantity
public void setQuantity(BigDecimal quantity, LocalDispatcher dispatcher, ShoppingCart cart, boolean triggerExternalOps) throws CartItemModifyException Sets the quantity for the item and validates the change in quantity, etc- Throws:
CartItemModifyException
-
setQuantity
public void setQuantity(BigDecimal quantity, LocalDispatcher dispatcher, ShoppingCart cart, boolean triggerExternalOps, boolean resetShipGroup) throws CartItemModifyException Sets the quantity for the item and validates the change in quantity, etc- Throws:
CartItemModifyException
-
setQuantity
public void setQuantity(BigDecimal quantity, LocalDispatcher dispatcher, ShoppingCart cart, boolean triggerExternalOps, boolean resetShipGroup, boolean updateProductPrice) throws CartItemModifyException Sets the quantity for the item and validates the change in quantity, etc- Throws:
CartItemModifyException
-
isInventoryAvailableOrNotRequired
protected boolean isInventoryAvailableOrNotRequired(BigDecimal quantity, String productStoreId, LocalDispatcher dispatcher) throws CartItemModifyException Is inventory available or not required boolean.- Parameters:
quantity
- the quantityproductStoreId
- the product store iddispatcher
- the dispatcher- Returns:
- the boolean
- Throws:
CartItemModifyException
- the cart item modify exception
-
setQuantity
protected void setQuantity(BigDecimal quantity, LocalDispatcher dispatcher, ShoppingCart cart, boolean triggerExternalOps, boolean resetShipGroup, boolean updateProductPrice, boolean skipInventoryChecks) throws CartItemModifyException Sets quantity.- Parameters:
quantity
- the quantitydispatcher
- the dispatchercart
- the carttriggerExternalOps
- the trigger external opsresetShipGroup
- the reset ship groupupdateProductPrice
- the update product priceskipInventoryChecks
- the skip inventory checks- Throws:
CartItemModifyException
- the cart item modify exception
-
calcDepositAdjustments
public void calcDepositAdjustments()Calc deposit adjustments. -
updatePrice
public void updatePrice(LocalDispatcher dispatcher, ShoppingCart cart) throws CartItemModifyException Update price.- Parameters:
dispatcher
- the dispatchercart
- the cart- Throws:
CartItemModifyException
- the cart item modify exception
-
getQuantity
Returns the quantity. -
getReservStart
Returns the reservation start date. -
setReservStart
Sets the reservation start date -
getReservStart
Returns the reservation start date with a number of days added. -
getReservLength
Returns the reservation length. -
setReservLength
Sets the reservation length -
getReservPersons
Returns the reservation number of persons. -
setReservPersons
Sets number of persons using the reservation -
getAccommodationMapId
Returns accommodationMapId -
getAccommodationSpotId
Returns accommodationSpotId -
getPromoQuantityUsed
Gets promo quantity used.- Returns:
- the promo quantity used
-
getPromoQuantityAvailable
Gets promo quantity available.- Returns:
- the promo quantity available
-
getQuantityUsedPerPromoActualIter
Gets quantity used per promo actual iter.- Returns:
- the quantity used per promo actual iter
-
getQuantityUsedPerPromoCandidateIter
Gets quantity used per promo candidate iter.- Returns:
- the quantity used per promo candidate iter
-
getQuantityUsedPerPromoFailedIter
Gets quantity used per promo failed iter.- Returns:
- the quantity used per promo failed iter
-
addPromoQuantityCandidateUse
public BigDecimal addPromoQuantityCandidateUse(BigDecimal quantityDesired, GenericValue productPromoCondAction, boolean checkAvailableOnly) Add promo quantity candidate use big decimal.- Parameters:
quantityDesired
- the quantity desiredproductPromoCondAction
- the product promo cond actioncheckAvailableOnly
- the check available only- Returns:
- the big decimal
-
getPromoQuantityCandidateUse
Gets promo quantity candidate use.- Parameters:
productPromoCondAction
- the product promo cond action- Returns:
- the promo quantity candidate use
-
getPromoQuantityCandidateUseActionAndAllConds
Gets promo quantity candidate use action and all conds.- Parameters:
productPromoAction
- the product promo action- Returns:
- the promo quantity candidate use action and all conds
-
resetPromoRuleUse
Reset promo rule use.- Parameters:
productPromoId
- the product promo idproductPromoRuleId
- the product promo rule id
-
confirmPromoRuleUse
Confirm promo rule use.- Parameters:
productPromoId
- the product promo idproductPromoRuleId
- the product promo rule id
-
clearPromoRuleUseInfo
public void clearPromoRuleUseInfo()Clear promo rule use info. -
getItemComment
Returns the item's comment. -
setItemComment
Sets the item comment. -
getDesiredDeliveryDate
Returns the item's customer desired delivery date. -
setDesiredDeliveryDate
Sets the item's customer desired delivery date. -
getShipBeforeDate
Returns the date to ship before -
setShipBeforeDate
Sets the date to ship before -
getShipAfterDate
Returns the date to ship after -
setShipAfterDate
Sets the date to ship after -
getReserveAfterDate
Returns the date to ship after -
setReserveAfterDate
Sets the date to ship after -
getCancelBackOrderDate
Returns the cancel back order date -
setCancelBackOrderDate
Sets the cancel back order date -
getEstimatedShipDate
Returns the date to EstimatedShipDate -
setEstimatedShipDate
Sets the date to EstimatedShipDate -
getItemType
Returns the item type. -
setItemType
Sets the item type. -
getItemTypeGenericValue
Returns the item type. -
setItemGroup
Sets the item group. -
getItemGroup
Returns the item group. -
setItemGroup
Sets the item group. -
isInItemGroup
Is in item group boolean.- Parameters:
groupNumber
- the group number- Returns:
- the boolean
-
getItemTypeDescription
Returns the item type description. -
getProductCategoryId
Returns the productCategoryId for the item or null if none. -
setProductCategoryId
Sets product category id.- Parameters:
productCategoryId
- the product category id
-
getOrderItemSeqId
Gets order item seq id.- Returns:
- the order item seq id
-
setOrderItemSeqId
Sets order item seq id.- Parameters:
orderItemSeqId
- the order item seq id
-
setShoppingList
Sets shopping list.- Parameters:
shoppingListId
- the shopping list iditemSeqId
- the item seq id
-
getShoppingListId
Gets shopping list id.- Returns:
- the shopping list id
-
getShoppingListItemSeqId
Gets shopping list item seq id.- Returns:
- the shopping list item seq id
-
getRequirementId
Returns the requirementId. -
setRequirementId
Sets the requirementId. -
getQuoteId
Returns the quoteId. -
setQuoteId
Sets the quoteId. -
getQuoteItemSeqId
Returns the quoteItemSeqId. -
setQuoteItemSeqId
Sets the quoteItemSeqId. -
getOrderItemAssocTypeId
Returns the OrderItemAssocTypeId. -
setOrderItemAssocTypeId
Sets the orderItemAssocTypeId. -
getAssociatedOrderId
Returns the associatedId. -
setAssociatedOrderId
Sets the associatedOrderId. -
getAssociatedOrderItemSeqId
Returns the associatedOrderItemSeqId. -
setAssociatedOrderItemSeqId
Sets the associatedOrderItemSeqId. -
getStatusId
Gets status id.- Returns:
- the status id
-
setStatusId
Sets status id.- Parameters:
statusId
- the status id
-
shippingApplies
public boolean shippingApplies()Returns true if shipping charges apply to this item. -
taxApplies
public boolean taxApplies()Returns true if tax charges apply to this item. -
getProductId
Returns the item's productId. -
getSupplierProductId
Returns the item's supplierProductId. -
setSupplierProductId
Set the item's supplierProductId. -
setLocale
Set the item's locale (from ShoppingCart.setLocale) -
getName
Deprecated.use getName(LocalDispatcher dispatcher)Returns the item's description. -
setName
Set the item's description. -
getName
Returns the item's description or PRODUCT_NAME from content. -
getDescription
Returns the item's description. -
getConfigWrapper
Gets config wrapper.- Returns:
- the config wrapper
-
getWeight
Returns the item's unit weight -
getPiecesIncluded
public long getPiecesIncluded()Returns the item's pieces included -
getFeatureSet
Returns a Set of the item's features -
getStandardFeatureList
Returns a list of the item's standard features -
getFeaturesForSupplier
Returns a List of the item's features for supplier -
getSize
Returns the item's size (length + girth) -
getItemProductInfo
Gets item product info.- Returns:
- the item product info
-
getBasePrice
Returns the base price.- Returns:
- the base price
-
setBasePrice
Sets the base price for the item; use with caution- Parameters:
basePrice
- the base price
-
getDisplayPrice
Gets display price.- Returns:
- the display price
-
setDisplayPrice
Sets the display price for the item; use with caution- Parameters:
displayPrice
- the display price
-
getSpecialPromoPrice
Gets special promo price.- Returns:
- the special promo price
-
setSpecialPromoPrice
Sets special promo price.- Parameters:
specialPromoPrice
- the special promo price
-
getRecurringBasePrice
Gets recurring base price.- Returns:
- the recurring base price
-
setRecurringBasePrice
Sets the base price for the item; use with caution -
getRecurringDisplayPrice
Gets recurring display price.- Returns:
- the recurring display price
-
setRecurringDisplayPrice
Sets the display price for the item; use with caution -
getListPrice
Returns the list price. -
setListPrice
Sets list price.- Parameters:
listPrice
- the list price
-
getIsModifiedPrice
public boolean getIsModifiedPrice()Returns isModifiedPrice -
setIsModifiedPrice
public void setIsModifiedPrice(boolean isModifiedPrice) Set isModifiedPrice -
getReserv2ndPPPerc
get the percentage for the second person -
setReserv2ndPPPerc
Sets the extra % for second person -
getReservNthPPPerc
get the percentage for the third and following person -
setReservNthPPPerc
Sets the extra % for third and following person -
getOtherAdjustments
Returns the "other" adjustments. -
getOtherAdjustmentsRecurring
Returns the "other" adjustments. -
getRentalAdjustment
calculates for a reservation the percentage/100 extra for more than 1 person. -
getItemSubTotal
Returns the total line price. -
getItemSubTotal
Gets item sub total.- Returns:
- the item sub total
-
getDisplayItemSubTotal
Gets display item sub total.- Returns:
- the display item sub total
-
getDisplayItemSubTotalNoAdj
Gets display item sub total no adj.- Returns:
- the display item sub total no adj
-
getDisplayItemRecurringSubTotal
Gets display item recurring sub total.- Returns:
- the display item recurring sub total
-
getDisplayItemRecurringSubTotalNoAdj
Gets display item recurring sub total no adj.- Returns:
- the display item recurring sub total no adj
-
addAllProductFeatureAndAppls
Add all product feature and appls.- Parameters:
productFeatureAndApplsToAdd
- the product feature and appls to add
-
putAdditionalProductFeatureAndAppl
Put additional product feature and appl.- Parameters:
additionalProductFeatureAndAppl
- the additional product feature and appl
-
getAdditionalProductFeatureAndAppl
Gets additional product feature and appl.- Parameters:
productFeatureTypeId
- the product feature type id- Returns:
- the additional product feature and appl
-
removeAdditionalProductFeatureAndAppl
Remove additional product feature and appl generic value.- Parameters:
productFeatureTypeId
- the product feature type id- Returns:
- the generic value
-
getAdditionalProductFeatureAndAppls
Gets additional product feature and appls.- Returns:
- the additional product feature and appls
-
getFeatureIdQtyMap
Gets feature id qty map.- Parameters:
quantity
- the quantity- Returns:
- the feature id qty map
-
removeAttribute
Removes an item attribute. -
setAttribute
Sets an item attribute. -
getAttribute
Return a specific attribute. -
getAttributes
Returns the attributes for the item. -
removeOrderItemAttribute
Remove an OrderItemAttribute. -
setOrderItemAttribute
Creates an OrderItemAttribute entry. -
getOrderItemAttribute
Return an OrderItemAttribute. -
getOrderItemAttributes
Gets order item attributes.- Returns:
- the order item attributes
-
addAdjustment
Add an adjustment to the order item; don't worry about setting the orderId, orderItemSeqId or orderAdjustmentId; they will be set when the order is created -
removeAdjustment
Remove adjustment.- Parameters:
adjustment
- the adjustment
-
removeAdjustment
public void removeAdjustment(int index) Remove adjustment.- Parameters:
index
- the index
-
getAdjustments
Gets adjustments.- Returns:
- the adjustments
-
removeFeatureAdjustment
Remove feature adjustment.- Parameters:
productFeatureId
- the product feature id
-
getOrderItemPriceInfos
Gets order item price infos.- Returns:
- the order item price infos
-
addContactMech
Add a contact mech to this purpose; the contactMechPurposeTypeId is required -
getContactMech
Get the contactMechId for this item given the contactMechPurposeTypeId -
removeContactMech
Remove the contactMechId from this item given the contactMechPurposeTypeId -
getOrderItemContactMechIds
Gets order item contact mech ids.- Returns:
- the order item contact mech ids
-
getIsPromo
public boolean getIsPromo()Gets is promo.- Returns:
- the is promo
-
setIsPromo
public void setIsPromo(boolean isPromo) Sets is promo.- Parameters:
isPromo
- the is promo
-
getAlternativeOptionProductIds
Gets alternative option product ids.- Returns:
- the alternative option product ids
-
setAlternativeOptionProductIds
Sets alternative option product ids.- Parameters:
alternativeOptionProductIds
- the alternative option product ids
-
equals
Equals boolean.- Parameters:
item
- the item- Returns:
- the boolean
-
equals
-
hashCode
public int hashCode() -
equals
public boolean equals(String productId, Map<String, GenericValue> additionalProductFeatureAndAppls, Map<String, Object> attributes, String prodCatalogId, BigDecimal selectedAmount) Compares the specified object with this cart item. Defaults isPromo to false. Default to no itemGroup. -
equals
public boolean equals(String productId, Map<String, GenericValue> additionalProductFeatureAndAppls, Map<String, Object> attributes, String prodCatalogId, ProductConfigWrapper configWrapper, String itemType, ShoppingCart.ShoppingCartItemGroup itemGroup, BigDecimal selectedAmount) Compares the specified object with this cart item. Defaults isPromo to false. -
equals
public boolean equals(String productId, Timestamp reservStart, BigDecimal reservLength, BigDecimal reservPersons, Map<String, GenericValue> additionalProductFeatureAndAppls, Map<String, Object> attributes, String prodCatalogId, ProductConfigWrapper configWrapper, String itemType, ShoppingCart.ShoppingCartItemGroup itemGroup, BigDecimal selectedAmount) Compares the specified object with this cart item including rental data. Defaults isPromo to false. -
equals
public boolean equals(String productId, Map<String, GenericValue> additionalProductFeatureAndAppls, Map<String, Object> attributes, String prodCatalogId, BigDecimal selectedAmount, String itemType, ShoppingCart.ShoppingCartItemGroup itemGroup, boolean isPromo) Compares the specified object with this cart item. Defaults isPromo to false. -
equals
public boolean equals(String productId, Timestamp reservStart, BigDecimal reservLength, BigDecimal reservPersons, String accommodationMapId, String accommodationSpotId, Map<String, GenericValue> additionalProductFeatureAndAppls, Map<String, Object> attributes, String prodCatalogId, BigDecimal selectedAmount, ProductConfigWrapper configWrapper, String itemType, ShoppingCart.ShoppingCartItemGroup itemGroup, boolean isPromo) Compares the specified object with this cart item. -
equals
public boolean equals(String productId, Timestamp reservStart, BigDecimal reservLength, BigDecimal reservPersons, String accommodationMapId, String accommodationSpotId, Map<String, GenericValue> additionalProductFeatureAndAppls, Map<String, Object> attributes, Map<String, String> orderItemAttributes, String prodCatalogId, BigDecimal selectedAmount, ProductConfigWrapper configWrapper, String itemType, ShoppingCart.ShoppingCartItemGroup itemGroup, boolean isPromo) Compares the specified object order item attributes. -
getProduct
Gets the Product entity. If it is not already retreived gets it from the delegator -
getParentProduct
Gets parent product.- Returns:
- the parent product
-
getParentProductId
Gets parent product id.- Returns:
- the parent product id
-
getOptionalProductFeatures
Gets optional product features.- Returns:
- the optional product features
-
getDelegator
Gets delegator.- Returns:
- the delegator
-
explodeItem
public List<ShoppingCartItem> explodeItem(ShoppingCart cart, LocalDispatcher dispatcher) throws CartItemModifyException Explode item list.- Parameters:
cart
- the cartdispatcher
- the dispatcher- Returns:
- the list
- Throws:
CartItemModifyException
- the cart item modify exception
-
ShoppingCartItem(GenericValue, Map, Map, String, Locale, String, ShoppingCartItemGroup, LocalDispatcher)
instead