Product Icon

Product Bundles for WooCommerce

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

Allow only one product out of the linked products

Example: If three products are linked, you can only select one of them. The other clickfields bekome greyed out if you have selecte one.

Author

Current Status

Completed

Last updated: March 27, 2020

1 comment

Log in to comment on this feature request.

  1. jaskyt8 says:
    Product Developer August 22, 2024 10:04 am

    Hey there,

    Thank you for getting in touch!

    To allow users select only 1 item from the Bundle-Sells section, I recommend using the following snippet:

    add_filter( ‘wc_pb_bundle_sells_dummy_bundle’, ‘wc_bundle_sells_limit_selection’ );

    function wc_bundle_sells_limit_selection( $bundle ) {
    $bundle->set_max_bundle_size( 1 );
    return $bundle;
    }

    To install snippets like this one, I suggest using a plugin like Code Snippets: https://wordpress.org/plugins/code-snippets/.

Use of your personal data
We and our partners process your personal data (such as browsing data, IP Addresses, cookie information, and other unique identifiers) based on your consent and/or our legitimate interest to optimize our website, marketing activities, and your user experience.