Product Bundles
Creating bundles of products with Umbraco Commerce.
Creating a Bundle
// Define a unique bundle id for the order line
var bundleId = "MyUniqueBundleId";
// Add the primary product to the order giving it a bundle ID
await order.AddProductAsync(productReference, productQuantity, bundleId);Adding Sub Products to a Bundle
// Define a unique bundle id for the order line
var bundleId = "MyUniqueBundleId";
// Add the primary product to the order giving it a bundle ID
await order.AddProductAsync(productReference, productQuantity, bundleId);
// Add a sub product to the bundle by calling a AddProductToBundle method
// passing in the same bundle ID as the primary order line
await order.AddProductToBundleAsync(bundleId, subProductReference, subProductQuantity);Order Line Price Calculation
Displaying Bundles in the Back-Office

Last updated
Was this helpful?