Bundle commands, pipelines, and blocks

Version: 10.2

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

Command/Pipeline

Description

CalculateBundleAutomaticPriceBlock

Calculates the bundle price or calculates the bundle price for a customer selection using Automatic pricing.

CalculateBundleSelectionPriceBlock

Calculates 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).

CreateBundleBlock

Maps 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.

CreateBundleRelationshipsBlock

Establishes relationships between a bundle and its constituent sellable items.

FinalizeBundleBlock

Defines the finalized bundle.

GetBundleSelectionPricingCommand

Command parameters include:

  • itemId: the id of the bundle.

  • subItems: a collection of selected bundle items (BundleItem).

GetBundleSelectionPricingPipeline

Retrieves the bundle price for the customer’s selection.

PrepBundleBlock

Validates the uniqueness of the bundle name (ProductId) in the system. If a bundle with the same ProductId is found, a validation error is returned.

PrepGetBundleSelectionPricingBlock

Populates the ProductArgument for all selected bundle items.

ValidateDynamicBundleSelectionBlock

Validates the bundle selection and quantity range.

Do you have some feedback for us?

If you have suggestions for improving this article,