Product Icon

Product Bundles for WooCommerce

Offer personalized product bundles, bulk discount packages, and assembled products.

Product Bundles

This request regards Bundle-sells ‘Supported product types: Simple, Simple subscription.’

We can’t understand why Product Variations (where post_type = ‘product_variation’) are unsupported.

In class ‘WC_PB_BS_Product’, get_unsupported_product_types() defines the unsupported product types as ‘bundle’, ‘grouped’ and ‘external’; and then get_bundle_sell_ids() defines supported types as ‘simple’ and ‘subscription’. The Product Variations we are dealing with are generally defined by discrete sizes (eg. 250ml, 1L, 5L) rather than color or volume, and there are good reasons to match particular sizes (individual Product Variations) to other products as bundle-sells. There are also good reasons why we cannot spin each of the Product Variations out into Simple Products.

It appears that Product Variations are nonetheless (partially) considered in class ‘WC_PB_BS_Cart’. It seems planned or possible to modify the plugin to allow Product Variations as Linked Products -> Bundle-sells. All the data of a Simple Product is present in a Product Variation. If necessary, each Product Variation could simply inherit the main image from the parent (Variable Product).

Allowing Product Variations would greatly improve the utility of the Bundle-sell functionality on large eCommerce client stores (i.e. 1500+ simple products, 500+ product variations).

We would be happy to provide further clarification or definition of use-case compromises.

Author

digitalpieconz

Current Status

Closed

Last updated: June 14, 2023

1 comment

Log in to comment on this feature request.

  1. jaskyt8 says:

    Hey there,

    Thank you for getting in touch!

    You are right that Variable Products and variations are not yet supported in Bundle-Sells.

    The challenge here is that if we want bundle-sells to appear above the add-to-cart button (and all associated fields posted successfully), then all variation form fields rendered in Product Bundles templates will be nested in the main product form.

    This, however, is conflicting with the WC core variations script, which utilizes the form element as its “attachment” point. Nesting the variation fields of another product in the same form confuses the core script and things stop working from there.

    We are considering different approaches to supporting Variable Products and variations as Bundle-Sells — one idea is to create a separate add-to-cart form for Bundle-Sells that is displayed below the main’s product add-to-cart form.

    As we are still considering different solutions, I recommend up-voting a similar request in the board that currently has more votes: https://woocommerce.com/feature-request/bundle-product/. To be able to track demand for this feature more effectively, we keep 1 post open per feature. Therefore, I will go ahead and mark this one as closed.