Please submit a private ticket if you need to share sensitive information, such as license details and admin credentials.

Okay
  Public Ticket #2814244
Show Bundled VS Show Bundled
Closed

Comments

  • Eli Stroli started the conversation

    Hello Team @ WP Clever.

    Bundle ''SET'' is composed of items ''POT'' and ''LID'' 

    I want that when ''SET'' gets purchases the following order should get forwarded to my ERP / Stock management system.

    ORDER 1: ''POT'' + ''LID'' 

    NOT: ''SET'' + ''POT'' + ''LID'' 


    I saw replies on similar questions that say to add the following:

    add_filter( 'woocommerce_order_get_items', 'woosb_exclude_bundles_from_order', 10, 1 );
    function woosb_exclude_bundles_from_order( $items ) {
    foreach ( $items as $key => $item ) {
    if ( $item->meta_exists( '_woosb_ids' ) ) {
    unset( $items[ $key ] );
    }
    }

    return $items;
    }


    Sadly this does't work for me. 



  •  767
    Janilyn replied

    Hi Eli,

    Thank you for contacting WPClever Support Forum. 

    We’ve received your ticket and assigned one of our developers to help you with that. 

    He’ll be looking into your question and responding with specific instructions as soon as possible. 

    Please stay patient as we're having very heavy workloads, it might take some time for our developers to reach back.

    Best regards.

    Janilyn T. - WPClever Support Agent

  •  1,226
    Dustin replied

    Hi Eli,

    After adding the snippet, do you see the bundle was removed from the order details or not?

    Something like that https://www.screencast.com/t/yxuYZPOQ0aIA

    Best regards,
    Dustin

  • Eli Stroli replied

    Hi Dustin, thanks for looking into this. 

    After adding the snippet, the Bundle does not get removed.

    (by the way, the other snippet, to remove bundled items and keep the bundle, I tested does work by me)


    Please see screenshots attached. 


    Thanks again and best greetings, 


    Eli