Creating a Bundle Product
In the previous section, you learned how to enable and create product variants and how to practically use them in code examples. In this section, you will learn how to define bundle products.
In marketing, the concept of Product Bundling is the practice of offering a set of individual products or services together as one combined product or service package. Typically, bundle products are intended to be kits or, more generically, a group of coherent products, with the advantage of a discounted price if bought together instead of buying them separately.
Through this chapter, we will first see how to modify our previously created Product
class to define bundle products. Then, we will discover how to automatically perform operations once the product is saved to calculate the bundle price.
Defining bundle products
In this section, you will learn how to modify the Product
class to be able to define bundle products. The easiest solution is to create a...