• Resolved photogenic

    (@photogenic)


    Hello,
    I would like to connect the stock count of several variable products to each other. What would be the best practice?
    This is the situation: We are a bicycle shop and sell frames but also use these frames to sell bicycles. When a frame or bike is sold it should also subtract one from the stock count of the other products. All these products are variable since there are different sizes and different colors.
    Thanks
    Jan

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support Hannah S.L.

    (@fernashes)

    Automattic Happiness Engineer

    Hey there,

    There isn’t a way to link variation stock – they’re considered completely different products.

    You may want to look into [Product Bundles](https://www.woocommerce.com/products/product-bundles/) or possibly even [Composite Products](https://www.woocommerce.com/products/composite-products/) as that’ll allow you to build bundles of products which link to existing products – in that way, the stock stays correct.

    Thread Starter photogenic

    (@photogenic)

    Hello Hannah,
    thank your for your reply! I already looked into these plugins (as well as ATUM’s Product Levels addon) and have been quite excitedly using Product Bundles.
    Still, however i play my scenarios, it ends with me having only one variable product stock (the frame) and one product bundle (the bike) which is counted in stock as a simple product.
    Logically I would need to produce a dependancy between one product/sku and another. This means: if someone buys a specific variable bicycle product (specific size and color) I want to connect it with the matching variable frame product.
    A variable product is just an array of different sku’s, so it should be possible somehow to connect one specific sku with another, isn’t it? Are there ways to produce dependancies between to specific sku’s?
    Thanks a lot
    Jan

    Plugin Support Hannah S.L.

    (@fernashes)

    Automattic Happiness Engineer

    Hey there,

    Still, however i play my scenarios, it ends with me having only one variable product stock (the frame) and one product bundle (the bike) which is counted in stock as a simple product.

    If you’ve created a bundled product that includes a frame, a seat, maybe a headlight, you’re creating a link to those separate products. When someone buys the bundled product, the stock of the different child products is reduced as long as you’ve enabled stock management.

    There isn’t a way to link the products as you’re looking for, unless you look into custom code. In that case, I highly recommend contacting one of the services on our customizations page: https://woocommerce.com/customizations/

    Thread Starter photogenic

    (@photogenic)

    Hello Hannah,
    I tried another option and I thought it might be interesting enough to share. There is still an issue but maybe there is a filter with which to get it to the finishing line.
    With the “Composite Products” Plugin i made a composite product in which I nested two variable products. The bike and the frame. Now I produced a dependency for if you buy a bike with a specific color and size you can only choose a likewise frame. This way the specific variables are dependent on each other.
    There is only one issue left in this scenario: The customer would need to make his selection twice. Once for the bike and -while being unable to choose any differing option- once for the frame. Would you know any work around for that issue?

    Plugin Support Hannah S.L.

    (@fernashes)

    Automattic Happiness Engineer

    Hey there!

    It sounds like you’re getting closer to what you’re looking for!

    There is only one issue left in this scenario: The customer would need to make his selection twice. Once for the bike and -while being unable to choose any differing option- once for the frame. Would you know any work around for that issue?

    It sounds like you’ll need scenarios to pull that off, an advanced feature in Composite Products:
    https://docs.woocommerce.com/document/composite-products/composite-products-advanced-configuration/#option-dependencies

    Thread Starter photogenic

    (@photogenic)

    Hi,
    that’s what I did and had written about it in my last reply

    Now I produced a dependency for if you buy a bike with a specific color and size you can only choose a likewise frame. This way the specific variables are dependent on each other.

    Only if I do this the buyser has to do two selections. First for the bike and then for the dependent frame.
    Is there a way to make a filter which does: If is product bike x then select product frame y automatically?

    Plugin Support Hannah S.L.

    (@fernashes)

    Automattic Happiness Engineer

    Hey there,

    Thanks for clarifying!

    The Composite Products extension is developed and supported by our development partner. You can create a ticket that will go directly to them and they’ll be able to help you further – here’s how: ?https://woocommerce.com/my-account/create-a-ticket/?form=ticket

    They’ll also be able to answer in much more detail than I can here. ??

    Thread Starter photogenic

    (@photogenic)

    I found the probably best solution: The Chained Products Plugin
    You can chain one product to the other and then hide it in the cart, cart widget, checkout and order. For this you just have to go to WooCommerce > Settings > Products > Chained Products and set it to hide the chained items.

    Plugin Support Hannah S.L.

    (@fernashes)

    Automattic Happiness Engineer

    Hey there,

    I’m glad to hear you found a good fit – thanks for letting us know!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Connect stock count of different variable products’ is closed to new replies.