1. Sitecore Experience Commerce

Bundle commands, pipelines, and blocks

Version:

The following table describes bundle commands, pipelines, and blocks.

Command/PipelineDescription
CalculateBundleAutomaticPriceBlockCalculates the bundle price or calculates the bundle price for a customer selection using Automatic pricing.
CalculateBundleSelectionPriceBlockCalculates the bundle price for a customer selection using Manual pricing.
CreateBundleCommand

CreateBundlePipeline
Creates a new bundle container in the Commerce Engine.

Command parameters include:

  • bundleType: the type of bundle (string). For example: static.
  • bundleID: a unique identifier for the bundle (string).
  • name: the internal name of the bundle (string).
  • displayName: the bundle name displayed on the storefront (string).
  • description: text describing the bundle (string).
  • brand: the brand of the bundle (string).
  • manufacturer: manufacturer of the bundle (string).
  • typeOfGood: type of good corresponding to bundled products (string).
CreateBundleBlockMaps arguments from the CreateBundleCommand to the SellableItem entity that represents the bundle.

The bundle item created returns a bundleId along with other bundle parameters as defined in the CreateBundleCommand.
CreateBundleRelationshipsBlockEstablishes relationships between a bundle and its constituent sellable items.
FinalizeBundleBlockDefines the finalized bundle.
GetBundleSelectionPricingCommandCommand parameters include:

  • itemId: the id of the bundle.
  • subItems: a collection of selected bundle items (BundleItem).
GetBundleSelectionPricingPipelineRetrieves the bundle price for the customer’s selection.
PrepBundleBlockValidates the uniqueness of the bundle name (ProductId) in the system. If a bundle with the same ProductId is found, a validation error is returned.
PrepGetBundleSelectionPricingBlockPopulates the ProductArgument for all selected bundle items.
ValidateDynamicBundleSelectionBlockValidates the bundle selection and quantity range.
If you have suggestions for improving this article, let us know!