public interface ProductBundle extends Product, Serializable
SkuBundleItem. Bundle prices are determined 1 of 2 ways, depending on the pricing model:
SkuBundleItemSkuBundleItem| Modifier and Type | Method and Description |
|---|---|
Boolean |
getAutoBundle()
Gets whether or not this should be bundled together if the individual
Products are added to the cart.
|
Money |
getBundleItemsRetailPrice() |
Money |
getBundleItemsSalePrice() |
Boolean |
getBundlePromotable()
Gets whether or not the bundle itself should be promotable.
|
Boolean |
getItemsPromotable()
Gets whether or not the items in this bundle should be considered for
promotions using the promotion engine
Note: this is only applicable when the pricing model is the sum of the bundle items NOTE: THIS IS NOT YET SUPPORTED BY BROADLEAF |
BigDecimal |
getPotentialSavings()
Calculates the potential savings by summing up the retail prices of the
contained items and comparing to the actual bundle prices.
|
ProductBundlePricingModelType |
getPricingModel() |
Integer |
getPriority()
Used to determine the order for automatic bundling.
|
Money |
getRetailPrice()
Returns the retail price for this bundle
|
Money |
getSalePrice()
Returns the sale price for this bundle
|
List<SkuBundleItem> |
getSkuBundleItems() |
boolean |
isOnSale() |
void |
setAutoBundle(Boolean autoBundle)
Sets whether or not this should be bundled together if the individual
Products are added to the cart.
|
void |
setBundlePromotable(Boolean bundlePromotable)
Gets whether or not the bundle itself should be promotable.
|
void |
setItemsPromotable(Boolean itemsPromotable)
Sets whether or not the items in this bundle should be considered for
promotions using the promotion engine
NOTE: THIS IS NOT YET SUPPORTED BY BROADLEAF
|
void |
setPricingModel(ProductBundlePricingModelType pricingModel) |
void |
setPriority(Integer priority) |
void |
setSkuBundleItems(List<SkuBundleItem> bundleItems) |
clearDynamicPrices, getActiveEndDate, getActiveStartDate, getAdditionalSkus, getAllParentCategories, getAllParentCategoryXrefs, getAllSkuMedia, getAllSkus, getCanSellWithoutOptions, getContainer, getCrossSaleProducts, getCumulativeCrossSaleProducts, getCumulativeUpSaleProducts, getDefaultCategory, getDefaultSku, getDepth, getDescription, getDimension, getDimensionString, getDisplayTemplate, getGeneratedUrl, getGirth, getHeight, getId, getLongDescription, getManufacturer, getMedia, getModel, getName, getProductAttributes, getProductOptions, getProductOptionXrefs, getPromoMessage, getSize, getSkus, getTaxCode, getUpSaleProducts, getUrl, getUrlKey, getWeight, getWidth, isActive, isFeaturedProduct, setActiveEndDate, setActiveStartDate, setAdditionalSkus, setAllParentCategories, setAllParentCategoryXrefs, setCanSellWithoutOptions, setContainer, setCrossSaleProducts, setDefaultCategory, setDefaultSku, setDepth, setDescription, setDimension, setDisplayTemplate, setFeaturedProduct, setGirth, setHeight, setId, setLongDescription, setManufacturer, setMedia, setModel, setName, setProductAttributes, setProductOptions, setProductOptionXrefs, setPromoMessage, setSize, setTaxCode, setUpSaleProducts, setUrl, setUrlKey, setWeight, setWidthProductBundlePricingModelType getPricingModel()
void setPricingModel(ProductBundlePricingModelType pricingModel)
pricingModel - ITEM_SUM if the retailPrice and salePrice of this
bundle should be the composition of its items, BUNDLE
if this retailPrice and salePrice should come from the default
SkuMoney getRetailPrice()
Money getSalePrice()
Money getBundleItemsRetailPrice()
Money getBundleItemsSalePrice()
Boolean getAutoBundle()
void setAutoBundle(Boolean autoBundle)
autoBundle - Whether or not the items in the bundle should be auto-bundled
if added to the cart separatelyBoolean getItemsPromotable()
void setItemsPromotable(Boolean itemsPromotable)
itemsPromotable - Whether or not the items in the bundle should be considered
for promotionsBoolean getBundlePromotable()
void setBundlePromotable(Boolean bundlePromotable)
bundlePromotable - Whether or not the bundle itself should be available for
promotionList<SkuBundleItem> getSkuBundleItems()
void setSkuBundleItems(List<SkuBundleItem> bundleItems)
Integer getPriority()
void setPriority(Integer priority)
BigDecimal getPotentialSavings()
boolean isOnSale()
Copyright © 2015. All Rights Reserved.