Interface ProductBundle

All Superinterfaces:
Indexable, MultiTenantCloneable<Product>, Product, Serializable
All Known Implementing Classes:
ProductBundleImpl

@Deprecated public interface ProductBundle extends Product, Serializable
Deprecated.
instead, use the ProductType Module's Product Add-Ons to build and configure bundles
Default implementation for representing a bundle that can be sold individually. Product bundles are composed of multiple SkuBundleItem.

Bundle prices are determined 1 of 2 ways, depending on the pricing model:

  1. ITEM_SUM: The sum of the prices of its SkuBundleItem
  2. BUNDLE: Uses the pricing information on the bundle itself

Author:
Phillip Verheyden
See Also:
  • Method Details

    • getPricingModel

      Deprecated.
      Returns:
      The pricing model for this bundle

      ITEM_SUM indicates that the bundle is priced by the sum of the contained items. BUNDLE indicates that the bundle is priced by the price on the bundle itself.

    • setPricingModel

      void setPricingModel(ProductBundlePricingModelType pricingModel)
      Deprecated.
      Parameters:
      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 Sku
    • getRetailPrice

      Money getRetailPrice()
      Deprecated.
      Returns the retail price for this bundle
      Specified by:
      getRetailPrice in interface Product
      Returns:
    • getSalePrice

      Money getSalePrice()
      Deprecated.
      Returns the sale price for this bundle
      Specified by:
      getSalePrice in interface Product
      Returns:
    • getBundleItemsRetailPrice

      Money getBundleItemsRetailPrice()
      Deprecated.
      Returns:
      the sum of the retail prices of the bundle items
    • getBundleItemsSalePrice

      Money getBundleItemsSalePrice()
      Deprecated.
      Returns:
      the sum of the sale prices of the bundle items
    • getAutoBundle

      Boolean getAutoBundle()
      Deprecated.
      Gets whether or not this should be bundled together if the individual Products are added to the cart. For instance, if this Bundle is composed of Item1 and Item2, and the user adds Item1 and Item2 to the cart separately, if this is true then these items will be bundled into a single BundleOrderItem instead of unique items in the cart NOTE: THIS IS NOT YET SUPPORTED BY BROADLEAF
      Returns:
      true if the items in this bundle should be automatically bundled together when added to the cart separately, false otherwise
    • setAutoBundle

      void setAutoBundle(Boolean autoBundle)
      Deprecated.
      Sets whether or not this should be bundled together if the individual Products are added to the cart. For instance, if this Bundle is composed of Item1 and Item2, and the user adds Item1 and Item2 to the cart separately, if this is true then these items will be bundled into a single BundleOrderItem instead of unique items in the cart NOTE: THIS IS NOT YET SUPPORTED BY BROADLEAF
      Parameters:
      autoBundle - Whether or not the items in the bundle should be auto-bundled if added to the cart separately
    • getItemsPromotable

      Boolean getItemsPromotable()
      Deprecated.
      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
      Returns:
      true if the items should be included in the promotion engine, false otherwise
    • setItemsPromotable

      void setItemsPromotable(Boolean itemsPromotable)
      Deprecated.
      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
      Parameters:
      itemsPromotable - Whether or not the items in the bundle should be considered for promotions
    • getBundlePromotable

      Boolean getBundlePromotable()
      Deprecated.
      Gets whether or not the bundle itself should be promotable.
      Note: this should only be used if the pricing model for the bundle uses the pricing on the bundle itself and not on the sum of its bundle items NOTE: THIS IS NOT YET SUPPORTED BY BROADLEAF
      Returns:
      true if the bundle itself should be available for promotion, false otherwise
    • setBundlePromotable

      void setBundlePromotable(Boolean bundlePromotable)
      Deprecated.
      Gets whether or not the bundle itself should be promotable.
      Note: this should only be used if the pricing model for the bundle uses the pricing on the bundle itself and not on the sum of its bundle items NOTE: THIS IS NOT YET SUPPORTED BY BROADLEAF
      Parameters:
      bundlePromotable - Whether or not the bundle itself should be available for promotion
    • getSkuBundleItems

      List<SkuBundleItem> getSkuBundleItems()
      Deprecated.
    • setSkuBundleItems

      void setSkuBundleItems(List<SkuBundleItem> bundleItems)
      Deprecated.
    • getPriority

      Integer getPriority()
      Deprecated.
      Used to determine the order for automatic bundling.
      Returns:
    • setPriority

      void setPriority(Integer priority)
      Deprecated.
    • getPotentialSavings

      BigDecimal getPotentialSavings()
      Deprecated.
      Calculates the potential savings by summing up the retail prices of the contained items and comparing to the actual bundle prices.

      Used to determine the order for automatic bundling in case items might qualify for multiple bundles.

      Returns:
    • isOnSale

      boolean isOnSale()
      Deprecated.
      Description copied from interface: Product
      Convenience method, references defaultSku.onSale
      Specified by:
      isOnSale in interface Product
      Returns:
      whether or not the product bundle is on sale