B2BKing and WPC fixed-price composite compatibility
add_filter( 'b2bking_custom_cart_item_ignore_condition', function ( $ignore, $cart_item ) {
if ( isset( $cart_item['wooco_parent_id'] ) ) {
return true;
}
return $ignore;
}, 10, 2 );
add_filter( 'b2bking_custom_cart_item_ignore_condition', function ( $ignore, $cart_item ) {
if ( isset( $cart_item['wooco_parent_id'] ) ) {
return true;
}
return $ignore;
}, 10, 2 );
Any method works: a code snippets plugin, or your child theme's functions.php file.
Not sure how? We recommend the free WPCode plugin: add a new PHP snippet, paste the code, then activate and save it.
Need a hand? Reply on your ticket and we'll help.