Example: If three products are linked, you can only select one of them. The other clickfields bekome greyed out if you have selecte one.
1
Completed
Last updated: March 27, 2020
Log in to comment on this feature request.
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/.
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/.