Phone Orders For WooCommerce

WPC Product Bundles for WooCommerce

Integration guide for using WPC Product Bundles for WooCommerce with Phone Orders: add code snippets so bundled items are handled correctly when searching products and adding them to the cart in the order screen.

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_children_cart_item', function ($children, $item) {
    return isset($item['woosb_keys']) ? $item['woosb_keys'] : $children;
}, 10, 2);

add_filter('wpo_cart_item_is_price_readonly', function ($is_readonly, $item) {
    return isset($item['woosb_keys']) ? true : $is_readonly;
}, 10, 2);

add_filter('wpo_load_order_skip_item', function ($skip, $order_item, $order) {
    return $order_item->get_meta('_woosb_parent_id') ? true : $skip;
}, 10, 3);

Have questions? Please submit a support request. We're always happy to help!

Phone Orders
for WooCommerce
PRO

From $120
Buy
✓ 30-day money-back guarantee