• nr1stunna

    (@nr1stunna)


    Hey everyone!

    I am running a shop and we are offering a product with variable attributes. We sell tickets and customers can select a city and a shirt size. These attributes are pretty much independent from each other. This how we currently handle it: null (It’s German, “Jede Stadt” means “Every City”) So we set stock values for shirt sizes and ones for cities.

    The problem is: it doesn’t work as expected. When a city is low in stock, but a shirt size has more available the customer can buy more tickets than are available for the selected city. Is this a known bug? Is there any way around it?

    When multiple constraints are involved, i would expect the system the choose the smallest stock number…

    • This topic was modified 9 years ago by nr1stunna. Reason: made the title more descriptive
Viewing 8 replies - 1 through 8 (of 8 total)
  • The core WooCommerce plugin is not coded to allow for variation attributes to be stock-managed independently. If you have set “manage stock at variation level”, the variation is a single stock-managed item.

    If you can get shirts quickly enough to satisfy demand they are in effect infinite, so you could have just the cities as variations and have the shirts as add-ons. You would have four radio buttons for customers to choose their shirt. Maybe a 5th button for no-shirt-required.

    This plugin can add front-side radio buttons for product add-ons. These will not be stock managed.
    https://wordpress.org/plugins/wc-fields-factory/

    Even so, the “Every city” variation stock will need manual control, or custom code. The core WooCommerce plugin does not support stock management conditional on other product stock levels.

    Thread Starter nr1stunna

    (@nr1stunna)

    Thanks to much for your response!

    That’s too bad… we do need the shirts stock to be managed as well… Does the order of the variations make any difference? I just move the city variations above the shirt ones and it seems to work now

    sharon-jackson

    (@sharon-jackson)

    I have a similar issue. I am trying to figure out how to have differing SKU’s for different colors of the same product. Is there a video out there that does that? Thank you!

    Also, I need to find out for manage product for the different colours, what if I have 4 blue and 2 green….where does that go?

    Or would I have to purchase the Pro version for that?

    Thread Starter nr1stunna

    (@nr1stunna)

    your problem seems to be totally unrelated, but here’s how you do it (i am using the german version, so terms might different): Once you created the attributes you want you go to the tab that says “variations”. There you add a variation for every attribute and set the sku and stock.

    @nr1stuna
    The order of the attributes or the order of the variations doesn’t make any difference. The database holds only one stock level for each variation.

    To have stock control on the shirts as well, you’ll need to make them a separate product. You could set up a coupon for a free shirt subject to minimum spend. I appreciate that’s not exactly what you want.

    I refer to the core WooCommerce plugin. You can search for supplementary plugins at wordpress.org, woocommerce.com and codecanyon.net.

    @sharon-jackson
    In the Product Data section, Inventory tab, make sure “Manage stock at product level” is not checked. This will enable stock management at variation level. The variation stock fields will be hidden if this checkbox is checked.

    There isn’t a Pro version of the WooCommerce plugin. There are various premium plugins that provide additional functions, but your questions do not so far indicate that you need to do look at those.

    Thread Starter nr1stunna

    (@nr1stunna)

    @lorro sadly that’s not an option as we sell these shirts ONLY in combination with a ticket… Damn… to be fair though, the interface kinda makes it look like these things would work. And when people buy the product the stock actually reduces as expected, it’s just that it can get below zero…

    Is there any way to suggest this as a feature to the woocommerce guys? To me this seems to be critical

    Thread Starter nr1stunna

    (@nr1stunna)

    @lorro and i haven’t looked into the way woocommerce handles the stock, but the order does make a difference in my case, but it might just be the theme i am using. The order basically sets a priority, so i can choose between letting the customer buy more shirts or more tickets for a certain city than available. Just wanted to mention this here in case someone stumbles upon this thread in the future

    You can suggest feature improvements here:
    http://ideas.woocommerce.com/forums/133476-woocommerce

    If you can’t do what you want with the the core plugin, have a look round at supplementary plugins at wordpress.org, woocommerce.com and codecanyon.net.

    If you need some custom code you can post a job:
    http://jobs.wordpress.net/
    (Very competetive!)

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Problem with variable products and stock handling’ is closed to new replies.