Comments Eli Stroli started the conversationJune 29, 2021 at 2:53pmHello 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. 767Janilyn repliedJune 30, 2021 at 8:56amHi 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,226Dustin repliedJune 30, 2021 at 3:05pmHi 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/yxuYZPOQ0aIABest regards,DustinEli Stroli repliedJune 30, 2021 at 5:24pmHi 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 Sign in to reply ...
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.
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
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
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