Code

Discussion on WooCommerce Attribute Stock – Shared Stock & Variable Quantities

Discussion on WooCommerce Attribute Stock – Shared Stock & Variable Quantities

Cart 1,940 sales
Recently Updated

MewzPlugins supports this item

Supported

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

178 comments found.

Plugin is very nice. But I would appreciate if stock get back after delete an order.

WooCommerce doesn’t restore product stock when deleting an order. Stock is only restored when an order is refunded or cancelled.

Attribute stock functions the same as product stock, so it won’t be restored when deleting an order. If you need this functionality you’ll need to use a plugin or custom snippet that does this for product stock, and attribute stock will function accordingly.

can link woocommerce stock to stock attribute?

Attribute stock will be reduced/restored whenever product stock is reduced/restored. They use the same WooCommerce actions.

Hi, nice module. But it seems it does not work like I need.

Example: Products A, B, C with stock at level product.

Two attributes for variations: Size (10,20,30) and Format (landscape, square, portrait).

Group Attribute – Size: 30, Format: Any – Stock 3

If someone buys 1 x product A, stock decreases by 1 for the 3 variations of that product (becomes 2), and not for the other B and C products.

Do you think it is possible with not much customizing?

Thanks in advance,

A

You can use attribute stock for as little or as much of your stock as you like. Attribute stock works alongside product stock just fine, you don’t need to only use one or the other.

Ok, but my problem is that stock attributes shares stock with ALL products, and I just want to limit inside a product. Per product.

If customer buys product A it decreases stock (in front) for product A, but also B, and C, etc, that have that same stock attribute. I want to limit only inside the product A. I hope I made myself clear.

Maybe it needs just a little customisation… What’s your opinion ?

Thanks in advance.

A

If it’s not possible for you to manage the stock per product on the products themselves, i.e. with variation stock, then the best alternative with attribute stock is to use Filters.

You will need to create a different attribute stock item for each of your respective products, and then set the Product filter accordingly for each. This way the stock item will only apply to the specified product instead of all products with those attributes.

Hi,

Can I use this to set stock to products wth multiple attributes?

I have a client that sells t-shirts and it has this configurations:

White – S: 10 pcs White – M: 10 pcs White – L: 10 pcs Black – S: 5 pcs Black – M: 15 pcs Black – L: 20 pcs

Can this be achieved?

If your client has multiple products that use the same t-shirt stock such as White – S, Black – M, etc. then you can manage the t-shirt stock with Attribute Stock.

If the t-shirt stock is separate per product and there are no t-shirts shared between products, then you don’t need Attribute Stock for this.

If you’re just looking to make it easier for your client to manage the product stock, take a look at a stock manager like ATUM.

Hello there! //Presale Question: I want to make sure that this plugin can help me achieve the functionality I want for my client.

My client is selling shoes and wants to manage from one page all the stocks of the child products. Currently the eshop has 2 variables (color & size). So, my question is that: Can this plugin manage the stock of each child product?

Example 1: A customer buys 1 shoe ABC black(color) 40(size) abc-black-40(SKU) from FB or from retail shop. Can my client find the “abc-black-40” product and just edit -1 on its stock? If this reach 0, does the child product get out of stock?

Example 2: A customer buys 1 shoe from the eshop, will this stock decrease automatically?If this reach 0, does the child product get out of stock?

Thank you so much in advance! Have an awesome day, Tom

Hi there. It sounds like what you’re looking for is a stock manager. There are many available, both free and paid. My favorite is ATUM. It’s free, well made, and has tons of features.

Our plugin Attribute Stock is more for setting up complex stock associations between products. In fact it doesn’t manage the stock quantities of products directly at all :)

Best of luck!

Wow! Thank you soo much for taking the time to answer and suggest something for my own good!

Again excellent support! Thanks guyz <3

Hi,

I have been looking for a simple tool to manage my stock in Woocommerce for a long time and with your plugin I have found the perfect solution.

Still I have some questions before buying the full version. I have been testing with the lite and I have solved part of my problem, I show you in image 1.

As you can see, we start from a raw material that can be transformed into different products. We define the stock of raw materials and we are subtracting depending on which product is sold (on demand). Everything is perfect here and working as expected.

My question comes when I try to make the system a little more complex (image 2). Starting from the same raw material, we can obtain products with two different types of cut. Why this classification? Because if we sell a product made with a cut, the part of raw material that has been used for that cut is totally useless for the other type of cut.

Until now, we had created two groups, vertical cut and horizontal cut and everything works fine, but we have to define the fixed pieces for vertical cutting and other fixed pieces for horizontal cutting. Instead of putting 50 total pieces and discounting from one to the other, we have to define 35/15, or 25/25, etc. Each week the number of pieces for one cut or another varies.

It would be WONDERFUL to be able to have a global number, 10 pieces, and in this way, if for example we sell product 4, it discounts 0.25 of a piece for the vertical cut but discounts 1 whole piece for the horizontal cut. So if we had 10 pieces. Now there should be 9.75 possible for vertical cut and 9 for horizontal cut. Because the 0.75s can only be cut vertically now and not horizontally.

I hope I have made myself understood. I wait for an answer, Thank you!

Image 1: Image 2:

Hi there,

This is definitely a bit of a tricky problem to solve. It will certainly require a bit of custom code, but I believe it is possible to do.

The way I see it is you essentially have 3 types of stock: Whole salmon, Salmon that has been cut horizontally, and Salmon that has been cut vertically. The idea is that as soon as a salmon has been cut, it’s remaining stock is “moved” from the Whole salmon stock to the respective Cut salmon stock.

With a bit of custom code to handle moving and allocating stock between the different types, it should work pretty seamlessly.

Please contact us via the support tab once you’ve purchased the full version and we’ll be more than happy to provide you with the necessary code.

Oh that would be awesome!! Ok, then ill purchase the plugin and contact you with this message as reference. Thank you so much.

I am using WooCommerce Lottery, this plugin does exactly what I am looking for and ovrrides all lotteries with the same attribute. Unlike a single product however it does not show the stock count.

The problem is that WooCommerce Lottery products don’t actually have any stock. Or rather they ignore any associated stock, and do not display it by default.

You could always force the stock quantity to be displayed by overriding the woocommerce/single-product/add-to-cart/lottery.php template, or adding a custom hook such as:

add_action('woocommerce_before_add_to_cart_form', function() {
    global $product;

    if ($product && $product->is_type('lottery')) {
        echo wc_get_stock_html($product);
    }
});

Hello Mewz

I read the plugin description and you mentioned an example for events where you can setup a limited amount of seats + time.

I need to configure an ecommerce for an amusement park that has a limit of 3000 seats between all its services (roller coaster, go-karts, etc). The point is that this 3,000 seat cap is for every day … that is, I need to have 3,000 seats for each day onwards. Do you think this plugin can help me solve this?

Regards, David

Hi David,

If you’re selling tickets per ride but you need to keep a total of 3000 stock between all rides, then attribute stock can definitely help you.

Resetting the available stock each day however isn’t something that you can do by default. But this can easily be added in with a short PHP snippet.

Please feel free to message us via the support tab if you’d like us to assist you with this.

Hello! Question before buying. I tried the pro demo here from Codecanyon, and when I look at the product it does not allow me to enter the stock amount of each individual attribute.

I want to do the Following Tshirt - Green 10 Items in stock - Blue 4 items in stock

How do i set this up?

Hi there. You can add your stock items under the Products > Attribute Stock menu. In the match rules section you’ll be able to select the appropriate attribute(s).

Please feel free to send us a message via the Support tab and we’ll be happy to set up an example for you on our demo site.

im considereing purchasing this plugin but i want to know if the stock count will show on my product page. because i tested the lite version and it seems to do what i want but it doesnt show stock count. im a little concerned that if i purchase this and install it. the stock count doesnt show up. or is somehow not compatible with my theme.

Hi @hlai85. The stock count will indeed show on the product page with the paid version. This, along with over-purchase prevention, is the only difference between the paid and lite versions.

Hello. Is there somewhere a documentation for the use of Attribute Stock with “Polylang for Woocommerce”? Regards.

Attribute Stock has not been tested with Polylang. However, Attribute Stock is fully translatable and also does not have much frontend text to translate in any case.

If there’s something specific you’re having trouble with, please contact us via the Support tab with more detail so we can look into it further for you.

Hello. Is that plugin is ok with Woocommerce 4.6 ?

Yes it is 100% compatible. WooCommerce 4.6 adds no breaking changes, so compatibility is the same as 4.5 for most plugins.

Presales Question

If I have a Three SKUs that are all the same product can I link stock

For example:

SKU123-BlackInk SKU123-BlackInk-HP SKU123-BlackInk-Cannon SKU123-BlackInk-Brother SKU123-BlackInk-Epson

When ever any other of those SKUs is sold, or inventory is updated can they all adjust?

If this plugin is on a multisite, any way to sync inventory between two websites?

With our plugin, you can link product stock together by making them all use the same attribute stock. It is not dependent on SKUs.

Unfortunately multisite synchronisation is not possible at this time.

I need to sync stock with another platform, and the service use product SKU to accomplish that. Would the attribute SKU be visible by the sync plugin / service?

Unfortunately not. Attribute stock is separate to product stock, so you would need a custom integration to make the sync service work with it.

hey PSQ. I have a quantity attribute swatch where a user can choose 5, 10 and 15 quantities. with this plugin if a user chooses the 10 option will these take 10 off the starting stock quantity? thanks

thanks! if i use the quantity multiplier in attribute stock will this update the stock remaining on the individual product?

Yes, it can. But only if you use attribute stock instead of managing stock on the product itself. If the product is managing stock, its quantity will be separate from your attribute stock and the quantity multiplier will not apply. I hope that makes sense :)

Hello, a few questions before purchase, is it possible not to display or to modify the text indicating that the stock is insufficient because it is shared? for example simply “you cannot add other products of this type, insufficient stock”

Does the quantity in stock also take into account the products currently in the basket of other users? in case two users want to add a product with the same stock: 1 product in stock, 1 product in the basket of user X, user Y cannot add the product to his basket

thank you

My sincere apologies for the delayed reply. I replied to the CodeCanyon email notification thinking it was a support email! They really need to make them not look so similar…

To answer your questions:

1) Yes, the “insufficient stock” message can be modified or disabled by adding a custom filter to your site’s code (or with a plugin like Code Snippets). I’m more than happy to assist with this if you are not comfortable writing PHP.

2) This is completely independent of Attribute Stock. By default WooCommerce doesn’t reduce any stock until an order has been checked out, and customer carts are not “aware” of each other. This is usually the desired behaviour otherwise you could have a customer add 100 items to their cart with no intention of buying, leaving no stock for other customers to add to their carts.

However, if this is the behaviour you want, you can use a plugin like WooCommerce Cart Stock Reducer which is fully compatible with Attribute Stock.

If you need any further info, please don’t hesitate to ask.

Hello,

Ive downloaded the lite-version to have a look and I have a pre-purchase question.

I basically have a product that I’m selling via a full payment or a payment plan. And I’ve added these as Variation Full and Variation Plan.

The stock for both is linked as it is the same product just on different payment methods.

Just wondering if I would be able to use you plugin to link the stock for these two variables.

Ex : Product 1 has a total of 5 stock shared between the product variations Variation Full and Variation Plan

I’ve seen that I can add a global Attribute Stock and wondering if I just set the parameters there and use a common SKU on the variations of a product that would work to do what I need it to do?

Thank you

Ok yeah, that does make it a bit more complicated. Unfortunately attribute stock doesn’t work with custom attributes, so I’m afraid the only way to do this with our plugin would be to add global attributes for each of the dates.

Perhaps as an alternative you could use one variation per date with “Any” payment option, and see if there’s a plugin that will allow you to use a different price depending on the payment option selected. Or else look at hiring a developer to add this in for you.

So I went ahead and purchased the plugin. And everything was working as expected until I viewed the shop/archive pages. The entire layout breaks with a critical error when I the plugin is enabled. I suspect it could be some conflict with the Divi builder because the backend themebuilder also breaks with the plugin enabled. Wondering if I could get you to have a look?

Thank you.

Sorry to hear you’re running into issues. Please could you send the error message and URL via the Support tab so we can get this sorted out for you.

This plugin works with Woocommerce Product Bundle?

Sure it does. In many cases it can also replace Product Bundles ;)

Thanks for the purchase!

Hello. I have been testing the lite version but I am not sure if your plugin can share stock between products with variations. For example, “Raincoat size S color Yellow form women” with “Raincoat size S color Yellow form men”. These raincoats are unisex so the stock must be shared. I need to include the products as separate products (Men and Women) with their own image galleries. Thanks in advance.

It depends on your use case, but for normal variation matching you won’t need Match all. You probably only need Limit product stock which is enabled by default in the paid version, but not available in the lite version.

Thank you very much! Great support!!

You’re welcome :)

Hello. The products that are multi-product instant pay options not work. I enable Google Pay and Apple Pay in WooCommerce (not need external plugins) and only work in my single item product. In multiple product articles instant pay button is hide. Now these products only can be bought in traditional methods. Regards.

Hi @dgdeivid, we still haven’t heard from you. Were you still having issues or did you manage to get it resolved?

Hi @MewzPlugins the problem has been solved with the latest update of the theme I use (flatsome). Thanks for the help.

That’s great news. Glad you could get the issue sorted out :)

Saul’s attention is the best! If you have doubts with the plugin, don’t worry, they will help you until you are 100% satisfied. I recommend it a million times!

Thank you very much Marco! It has been a pleasure sir ;)

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