• gferguson78

    (@gferguson78)


    Hi there,

    Since the recent update to V8.6.3 I noticed that many bundle items were showing in stock which shouldn’t have been. After playing around with it I realised that this only happens under these circumstances:

    If one of the bundle products is in stock but has backorders disabled then that products stock level is taken as the overall stock level of the bundle, regardless of the stock level of the other products.

    I have reverted back to V 8.6.0 and this does not happen in that version.

    For example: Try setting up a bundle with 3 products and these settings:

    Product 1:
    Stock Level: 1
    Backorders: notify

    Product 2:
    Stock Level: 10
    Backorders: notify

    Product 3:
    Stock Level: 10000
    Backorders: no

    You will see that the bundle product will show a stock level of 10000 for that bundle, regardless of the stock levels of the other products. If I change backorders for all items to ‘notify’ though this rectifies the issue and the bundle stock level is correctly calculated as 1.

    I can provide links to our staging site for you to see this if required but you should be able to replicate this fairly easily.

    Thanks,
    Gordon

Viewing 1 replies (of 1 total)
  • Plugin Support Dustin26

    (@dunghv26)

    Hi @gferguson78

    I understand your requirement. However, if we set the stock for the bundle to 1 in this case, WooCommerce will limit the purchasable quantity of the bundle to 1—even though you could actually sell 10,000 bundles—thereby reducing your sales volume. https://app.screencast.com/4LhdUUtrSebTd

    To meet your stock calculation requirements, please update the plugin to version 8.6.4, then add the following snippet:

    add_filter( 'woosb_stock_quantity_mode', fn() => 'physical' );

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.