cancel
Showing results for 
Search instead for 
Did you mean: 

how can i check product in stock / out of stock based on product attribute instead of qty field ?

how can i check product in stock / out of stock based on product attribute instead of qty field ?

Please see screenshot named as "magento2_product_edit_page.png" attached here.

I want to achieve functionality into Magento 2 as per attached screenshot here

magento2_product_edit_page.png

5 REPLIES 5

Re: how can i check product in stock / out of stock based on product attribute instead of qty fiel

I don't believe this is going to be a simple task as it will be in many parts of the system.

 

Depending on your requirements, it might be easier to change the local qty to what you would have put in the total qty field. This could be calculated by taking the distributor qty + local qty (perhaps subtracting the qty in orders that haven't been accounted for in the distributor system if needed)

----
If you've found one of my answers useful, please give "Kudos" or "Accept as Solution" as appropriate. Thanks!

Re: how can i check product in stock / out of stock based on product attribute instead of qty fiel

Thanks for reply,

 

is it possible to check out of stock/in stock based on Total Qty (Product Attribute) field instead of Magento's default Qty (Local Qty) field via programmatically?

Please suggest me and also please suggest men any other solution to achieving this functionality.

Re: how can i check product in stock / out of stock based on product attribute instead of qty fiel

As I said above really, I don't think it's going to be very easy to update to use a different field programmiatically. I would try and find a different way to do the integration so that you could use the default qty field. Like changing the way you calculate the qty during import like I mentioned. 

----
If you've found one of my answers useful, please give "Kudos" or "Accept as Solution" as appropriate. Thanks!

Re: how can i check product in stock / out of stock based on product attribute instead of qty fiel

Thanks for your suggestion,

 

I will work on other solution.

One more question, If I set "Manage Stock = No" into Advance Inventory Section of product and than set "Stock Status = In Stock" and the product saved properly with 0 qty and In-stock status.

But, is it a valid way to achieve this functionality?

And please also explain to me what is impact into the product if I set manage stock = No on backend product page.?

Re: how can i check product in stock / out of stock based on product attribute instead of qty fiel

Hi,

Did you found solution for this?

I also need to use qty items as in stock and out of stock status.

Magento’s logic about stock not correct.

Thanks