Code

Discussion on WooCommerce Attribute Stock – Shared Stock & Variable Quantities

Discussion on WooCommerce Attribute Stock – Shared Stock & Variable Quantities

Cart 1,939 sales
Recently Updated

MewzPlugins supports this item

Supported

This author's response time can be up to 1 business day.

178 comments found.

Documentation not opening

Very strange. Our documentation is hosted with GitHub Pages. Could you check if you can access other GitHub Pages, such as:

https://square.github.io/

i can access https://square.github.io/, i turned on vpn and visited https://wcas.mewz.dev/, i can open, cannot visit from my host ip, i live in India

Sorry I’m not sure why. It just uses standard Cloudflare and GitHub Pages.

Hi, I did some tests with the free version and it seems working really good.

Before buying the Full version I would like to know if the plugin will hide or grey out the options displayed in my Product page once the attribut term is 0 ( I am using woocommerce variation swatch)

Thanks

Hi there. Yes greying out unavailable options in swatch plugins is fully supported :)

Hi – I am trialling this PlugIn, because I am sure it will do what I want. I just can’t work out how.

I basically want to do what you have in your example with the tea. I have a product which I want to sell in 100g, 500g, 1Kg and 1.5Kg sizes, but all based on the same 100g stock.

Can I please have an idiots guide on how to achieve this?

I’m not sure what you mean by “the name I give the attribute on the product”. On the product you need to select the specific attribute/terms that you created. It doesn’t work if you’re filling in custom attributes.

You don’t need to have different attributes for each product. You can simply set a Product Filter on your attribute stock items to separate them between your products.

Ah. OK. I see what I’ve done wrong now, thank you.

So I am not seeing any quantities on the product in the shop. Do I need to have the paid for version to see these?

Yes. The free version only allows tracking stock of internal stock items. It doesn’t affect product availability in any way.

Hello. Can we also create a link to a variation on a product page? We would like to create an ADS for each variation within a product.

You can already link to specific variations of a product in WooCommerce. See this link for example:

https://demo.mewz.dev/product/cat-t-shirt/?attribute_pa_color=black&attribute_pa_size=large

Thanks. But how do you create the link? I can’t see how I do this.

The easiest way is to add the variation you want to the cart. Then if you click the item inside the cart it will take you to the specific variation that you added.

You can also change the URL parameters manually, but the first method is less prone to error.

Hi, I have prebuy question. I am selling quilts with variations. Customer can choose: weight, size and pillowslip color. Standard woocommerce inventory managment is not an option. I need to set stock for weight/size group variation and for pillowslip separately. For example I have eight 6kg 135×200cm quilts and five pink pillowslips, five grey pillowslips and five blue pillowslips. So if someone buy 6kg 135×200 pink it should be possible. If someone buy six pieces of this variation it shoud not be possible because I have only 5 pink pillowslips. If someone buy 5 pieces of this variation and 1 pieces of 6kg 135×200cm grey, it should be possible, but pink pillowslip should be out of stock. I dont know I explain this corectly, I hope you understand what I mean with this :)

Hi. You explained it quite well actually. Yes, attribute stock can handle this easily. You can use attribute stock to track only the pillowslips separately, and use product stock for your quilts. Or you can use attribute stock to track both types of stock and not use product stock at all, if you prefer to have all of your stock in one place.

Can you tell me if the stock control will work if I am using a bulk variations table? I want to be able to sell two classes of ticket, adult and child and set an overall attendance limit shared across both variations but allow the customer to select quantities from both variations in a variation table then add them to cart in one go.

There are several product/variation table plugins available, not all have been tested. In general it should work fine if it doesn’t do anything too weird. If it doesn’t work properly we’re more than happy to add compatibility, as we’ve done with many other plugins.

Okay, that sounds good, I have purchased the product and got it working, do you know of any variation table plugins that it definitely works with?

Thanks very much for the purchase.

Barn2 WooCommerce Product Table is known to work with Attribute Stock. However it’s worth noting that hasn’t been extensively tested.

In any case, whichever plugin you use, if you run into issues, we can usually patch them within a few hours. Just let us know via the support tab.

Can somebody help me making this to work? im having issues trying to have a centrlized stock for a shirt sold as single product and like bundle. If someone knows how to do it, please hit me up!

I’ve replied to your support email.

Hello, I use (Woocommerce Custom Product Addons , and Lumise product designer ) it possible to set filter somehow to calculate out of stock , example include to calculate the color variation of mug or t-shirt ? And what if the user canceled the order ?

Attribute Stock only works with Global Attributes. If you’re using global attributes with Lumise then it will work fine. However it’s not possible to use Custom Product Addons for attribute stock.

Cancelling orders works the same as normal product stock. In the cases that WooCommerce restores product stock, attribute stock will also be restored.

hi, Pre sale question , i would like to know if your plugin coudl help me.

I have to sell registration even with tickets or wit variable product.

In both case i have to manage stock for each variations and i have hundreds of variations !!

My attibutes: CITY (20 terms) Date (7 terms) Level (3 terms) Table (80terms)

So for each table i can have 10 slots as a stock.

Thanks for help

It sounds like our plugin could help you. There’s no limit to the amount or combinations of attributes that can be used for stock. I would recommend installing our free Lite version to see if it’s what you’re looking for.

Keep in mind that our plugin is only useful if you want to manage stock separately from your products, e.g. some attributes have stock that is used for multiple products or variations.

If you are just looking to make your stock management easier for all of your products, then you need to look for a stock management plugin instead.

Hello, I have tested the plugin and want to purchase the pro version but I have the following question:

I have products with only one variation with 2 attributes that can match any, how can I retrieve the availability of a product that is filtered by one of the attributes on catalog pages so I can show the out of stock label on the catalog.

I if purchase this pro version you can help me with some code to achieve this requirement?

Sure, we’ll be happy to help with this. Our plugin automatically does this when possible, but unfortunately with “Any” variations it’s a bit more difficult.

In any case we can provide you with a method/snippet that should get the job done.

i have been trailling the lite version before purchasing the full version but it keeps crashing the website, i would like some help before i process to purchase something that may not work on the site, is anybody able to discuss this with me?

Please could you send us the PHP error message via the Support tab so we can troubleshoot this issue?

This plugin is brilliant and ALMOST does what we need.

We’re having a small issue with Attribute Stock and Backorders – we need to allow for backorders after stock depletion.

Currently we have a an Attribute Stock setup and assigned to an Attribute/Variation. We want to allow for backorders of that item once the Attribute Stock has been depleted so we set the variation stock status to “On Backorder”; “Manage Stock” on the variation is not selected.

However, the Attribute Stock message (i.e 10 in stock) is not overriding the Backorder message until the Attribute Stock is depleted; which it should.

Did we miss a setting somewhere or is this working as intended? If it’s working as intended any chance to include an option to override that “Available on Backorder” message until the Attribute Stock is depleted?

This is unfortunately a limitation in WooCommerce, since it disables the “Allow backorders” option when “Manage Stock” is unchecked.

In order to set this option when “Manage Stock” is unchecked, you’ll need to use a short code snippet (e.g. with Code Snippets).

function __enable_backorders($value, $product)
{
    return $product->get_manage_stock('edit') ? $value : 'yes';
}

add_filter('woocommerce_product_get_backorders', '__enable_backorders', 0, 2);
add_filter('woocommerce_product_variation_get_backorders', '__enable_backorders', 0, 2);

This will allow backorders on all of your products/variations that do not have “Manage Stock” enabled. If you only need it on select products, you’ll need to add in a check on the $product variable.

You should also set “Stock status” to In stock on your products/variations. Selecting On backorder implies that the product is out of stock and is currently on backorder, which is not what you want.

Hey Mewz,

Perfect, we’ll give that a go and maybe see about adding a category/attribute conditional.

Thanks!

Hello Wemz,

We have a printer cartridges webshop. We have a separate “WooCommerce product” for the compleet set (so we can offer a discount when a customer orders the compleet set). Every cartridge that is in the set als is a “WooCommerce product” of there own. Can we use your plugin to subtract 1 stock from every single cartridge that is in the set? Because now when we sell a compleet set the stock of the cartridges that are in the set are not lowered.

Yes you can do this. However your cartridge stock will need to be managed with attribute stock instead of product stock. Your products will simply inherit and share stock based on the attribute terms assigned to them.

I had just replied to your email. Glad to hear!!

Hi, I am testing the lite version but I can’t get it to work with the Woocommerce Product Configurator by Iconic plugin. I would really like to be able to install this one to be able to manage the stock attributes of all the products together. Do you know if there is any incompatibility problem?

Hi there. We’ve tested with Woocommerce Product Configurator and it seems to be working fine. What’s the issue you’re having exactly?

Thanks for your fast answer. It does not work directly with the attributes. It works if I create variations with those attributes, but it is impossible for me to create variations for all of them because in some products there would be more than 1000 variations.

I’ve tested using a single variation on a product with “Any” set for each attribute. Both Attribute Stock and Product Configurator are working correctly with this setup. No need to create a variation for every attribute combination.

hi im running a custom print phone case so actually every product is sharing the same stock . for example customer have to choose normal case / impact case / string case

and then they choose model

and then they choose color

is that possible?

Sure, you can assign stock to any number or combination of attributes. There’s no limitation.

is there any simple way to update all my products (currently there are 500 products)? there is no attribute yet do i have to create it one by one?

If all of your products share the same stock, then you just need to create the attributes with stock once.

To add the attributes to all of your products I recommend using a bulk editor plugin. There are several available, free and paid. You’ll have to give some of them a try to see which work better for you.

Good Day. I have some question before purchasing this plugin. I am setting up an eshop with multiple attributes. Each product has up to 4 colors and 5 sizes but we will need stock management for each possible combination. I am using Swatched for the variation part and Variation images for this purpose. Both free versions. So, what I need is a plugin to be able to show the customer (front end) the stock for each possible variation and also to reduce it from the backend of your plugin. I have tested the front end of your plugin and indeed it removes the possibility for someone to order more than your stock. But, will it reduce the stock from the backend or do I have to do it manually? Meaning a customer buys 5 items of the same product from a stock of 10. A 2nd customer wants to buy 6 one minute later. Will it reduce the stock to 5 or must I do it manually from the backend?

Stock is reduced immediately when an order is placed. Stock reducing and restoring happens exactly as it would with normal WooCommerce products.

There are some exceptions depending on the payment method you’re using, but in most cases stock will be reduced immediately for new orders.

The payment methods will be COD, Bank Transfer and Card. Will it be okay with these methods?

Yes those payment methods all reduce stock immediately in WooCommerce.

Hello dear !

Thank you for this plugin ! I have just tested it, but it seems that I have an issue, which is : I created 2 test products and add them to an attribute stock for Size S. I purchased the test product 1, but the attribute stock remain the same !

Can you please help me ?

Thanks and regards

Hi there. I have replied to your email.

Hello! Love the plugin. Good job. I would love to buy the plugin even if I don’t need the paid features just so I can support good development but I have a little problem. I don’t know if it is compatible with my theme.

I use Elessi – WooCommerce AJAX WordPress Theme and I have tried the free version but I couldn’t get it to work. I have 3 types of variables : Tshirt type (man, women, child, unisex) > Color (black, white) > Size (S, M, L, XL, XXL)

I ​have tried all the settings but the stock seems to stay the same after a few orders.

My website is www.street-wear.ro

Can you please help me? Thank you. Best regards

Thanks for your comment. I’ve replied to your email.

Hi, let say I am selling variable product- Shirt with “yellow” and “grey” colour attribute and 3 quantity attribute- “1pc”, “20 pcs”, “100 pcs”. Total Stock Yellow Shirt 100, Grey Shirt 100. If the buyer select 100pcs option of yellow shirt and add to cart, can the rest of 1pc and 20pc option automatically become out of stock? I have been trying the demo and going through the docu for a hr now and is unable to achieve this.

Yes you can do this. Take a look at our Tea demo stock item. This is closer to how it should be set up.

You should have 1 stock item for each color Shirt, as these are your physical stock items, i.e. Yellow Shirt and Grey Shirt.

Each Group under Match rules should have the relevant color and quantity attribute selected, with an appropriate Quantity multiplier set on each Group, corresponding to the quantity attribute amount.

by
by
by
by
by
by

Tell us what you think!

We'd like to ask you a few questions to help improve CodeCanyon.

Sure, take me to the survey