Last active
September 6, 2016 05:51
-
-
Save mohammadmursaleen/456509b0c57badd0ec77a0f17e4d0d64 to your computer and use it in GitHub Desktop.
To make sub items of bundle product manageable in cart in WooCommerce
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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