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

Okay
  Public Ticket #2532647
Issue with order coming into our system
Closed

Comments

  • Craig Brown started the conversation

    We have a product called 'A', A has a SKU of A1. When a user buys this and the order is processed, it gets sent into our stock system that sees the SKU and processes it to be picked and shipped. This is fine and works fine. 

    When I create a bundle called 'B' and it is made up of 3xA (3xSKU A1), I need to create an SKU (B1) so our system knows what to get picked and charged etc. here is the problem. Our system picks up B1 but it is also picking up the 3xA1 meaning  extra products are getting picked. So my question is... can I essentially stop the 3xA1 products getting sent to my stock management system?

  •  767
    Janilyn replied

    Hi Craig,

    Thanks for contacting us here. 

    For your information: This is necessary since many stores only manage the bundled items' SKUs, some only use the bundles' SKU and some use both. So it' necessary to have both. In case some users use another third-party plugin to manage stocks and inventory, it might need some customization in the codes to make things work to their preferences. 

    In you case, if you want to manage only the bundles' SKU, I will transfer your ticket to one of our developers for giving you further answer on this. Please stay patient meanwhile cause we're having very heavy workloads so it will take some time.

    Best regards.

    Janilyn T. - WPClever Support Agent

  •  1,226
    Dustin replied

    Hi Craig,

    I'm so sorry for the late reply!

    Please add below code to current-theme (or child-theme) / functions.php

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

    Best regards,
    Dustin

  • Craig Brown replied

    Thanks so much! I’ll give it a try on Monday ;)

  • Craig Brown replied

    Works perfectly thank you!

  •  1,226
    Dustin replied

    You're welcome!smile.png

    If you are satisfied with our plugin and support, please reward it with a full five-star ★★★★★ rating. https://wordpress.org/support/plugin/woo-product-bundle/reviews?rate=5#new-post
    Thank you in advance! <3

    Best regards,
    Dustin

  • Craig Brown replied

    Hi, I am posting in here as it may be relevent :) Many thanks for the fix below which works perfectly.

    I have a new issue that has just occured on the order details page in woocommerce. the bundle price is not being displayed and is displaying a '0' as the price. the price is being recorded and sent through to our warehouse software as a surcharge which is a little extra work to correct but still an issue we need to manually go in and fix.


    any ideas on how to troubleshoot?