Skip to content

Instantly share code, notes, and snippets.

@mohammadmursaleen
Last active September 6, 2016 05:51
Show Gist options
  • Save mohammadmursaleen/456509b0c57badd0ec77a0f17e4d0d64 to your computer and use it in GitHub Desktop.
Save mohammadmursaleen/456509b0c57badd0ec77a0f17e4d0d64 to your computer and use it in GitHub Desktop.
To make sub items of bundle product manageable in cart in WooCommerce
<?php
/**
* @author Mohammad Mursaleen
* @usage to make sub items of bundle product manageable in cart
*/
function mm_make_sub_items_manageable_in_cart(){
if( function_exists( 'WC_PB' ) )
remove_filter( 'woocommerce_cart_item_quantity', array( WC_PB()->cart , 'woo_bundles_cart_item_quantity' ), 10, 2 );
}
add_action( 'wp_head' , 'mm_make_sub_items_manageable_in_cart' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment