add_filter( 'wpo_skip_add_to_cart_item', function ( $skip, $item ) { return isset($item['woosb_parent_id']) ? true : $skip; }, 10, 2 ); add_filter( 'wpo_is_child_cart_item', function ( $child, $item ) { return isset($item['woosb_parent_id']) ? true : $child; }, 10, 2 ); add_filter( 'wpo_search_product_types', function ( $types ) { $types[] = "woosb"; return $types; } ); add_filter('wpo_add_configured_products_skip_item', function ($skip, $item_data) { return isset($item_data['woosb_parent_key']) ? true : $skip; }, 10, 2); add_filter('wpo_add_configured_products_item_data', function ($item_data, $cart_item_data) { if ( isset( $cart_item_data['woosb_price'] ) ) { $item_data['item_cost'] = $cart_item_data['woosb_price']; } return $item_data; }, 10, 2); add_filter('wpo_children_cart_item', function ($children, $item) { return isset($item['woosb_keys']) ? $item['woosb_keys'] : $children; }, 10, 2);
WPC Product Bundles for WooCommerce, by WPclever.net Print
Created by: Alex Prokaev
Modified on: Fri, 30 Oct, 2020 at 10:57 AM
Did you find it helpful? Yes No
Send feedbackSorry we couldn't be helpful. Help us improve this article with your feedback.