Magento bundle products special price for child item only

Magento bundle products special price for child item only

August 10, 2026 · Illustrated author avatarBy Stefan Bogdanescu
Magento bundle products special price for child item only

Creating Special Prices for Magento Bundle Child Products

Setting special prices for child items within a bundle product is a common requirement when promoting pack deals in your Magento store. In this guide, we’ll walk you through the process of achieving this functionality using Magento’s built-in features and some custom code extensions.

Understanding Magento Bundled Products

In Magento, a bundled product allows you to group multiple simple products together as a single unit with special pricing for the entire set. By default, you can set the price for the bundle as a whole, but not specifically for each child item within it.

Setting Up Your Bundle Product

First, let’s ensure your bundle product is correctly configured:

  1. Navigate to “Catalog” > “Manage Products”.
  2. Click on “Add New Product” or select an existing one.
  3. Set the product type to “Bundle”.
  4. Fill in the required details (SKU, Name, Description, etc.).
  5. In the “Bundle Items” section, click on “Add Option”.
  6. Add each of your child items as options.

Now, you can set a special price for the bundle itself. However, this won’t apply to individual child items within the bundle package.

Setting Special Prices for Bundled Child Products

To achieve this functionality, we need to modify Magento’s core behavior slightly. The best approach is to override the Mage_Bundle_Model_Product_Type class and add custom logic to handle special prices for bundled options.

Here’s a high-level overview of the steps involved:

  1. Create a Custom Bundle Product Type Model: Extend the Mage_Bundle_Model_Product_Type model in your custom module. You can name this file something like Mage_Bundle_Model_Custom_Bundle.

  2. Override the GetFinalPrice Method: This method is responsible for calculating the final price of a bundled product. You need to add logic here to check if the product is part of a bundle and if it has a special price set.

Here’s an example of how you might structure this:

public function getFinalPrice($qty = null, $parentProduct = false)
{
    // Existing core code...

    $product = $this->getProduct();

    // Check if the product is part of a bundle and has a special price set
    if ($product->isType('bundle') && $product->hasSpecialPrice()) {
        $specialPrice = $product->getSpecialPrice();
    } else {
        $specialPrice = 0;
    }

    // Existing core code with the modified final price calculation

    return $finalPrice + $specialPrice;
}
  1. Configure Your Custom Bundle Type: In your module configuration, set bundle/product_type to use your custom bundle type model.
<config>
    <global>
        <models>
            <bundle>
                <classes>
                    <product_type>
                        Mage_Bundle_Model_Custom_Bundle
                    </product_type>
                </classes>
            </bundle>
        </models>
    </global>
</config>
  1. Set the Special Price for Child Items: Use Magento’s built-in “Special Prices” feature to set the desired price for each child item in your bundle.

Conclusion

Setting special prices specifically for bundled child products requires a combination of customizing core files and leveraging Magento’s built-in features. By extending the Mage_Bundle_Model_Product_Type model, you can add the necessary logic to apply these special prices during the final price calculation.

For more detailed instructions on creating custom Magento modules or assistance with specific implementations, feel free to reach out to our team at Laravel Company. We’d be happy to help you craft a solution tailored to your store’s unique requirements.

Catalog Extensions Configuration Pricing

Our network