Hiding product attributes out of stock

3 years ago
Hey guys,
new to the forum. Awesome platform.

I am facing a rather dull situation, which after browsing the forum, I see that many people have been facing, tho I do not see a solution.

My shop is for clothing, I have only 1 product attribute Size. Since the site is for baby and children clothing, the Size attribute has 15 predefined values.
When I add a product, I want to only assign the values, which are available to this product, however this doesnt work as intended (at least in my mind). Say that the values are 1 to 15, if I add for a product values from 1 to 5 with their respective quantities (and yes i'm tracking inventory by quantity) options 6 to 15 are still available in the dropdown list, and can be ordered in infinite quantities.

As this is a very huge issue for me at the moment (this is stopping us from launching the project) I would really appreciate if you could give me some directions on how to mitigate this problem.

Thank you in advance!
3 years ago
You can just remove options 6 to 15 for that product if it isn't produced in those sizes. The predefined product attribute values just provide a quick way to add a set of values to a product but once they've been added there's no link back to the predefined values so changes to the product's attribute values occur independently.
3 years ago
petemitch wrote:
You can just remove options 6 to 15 for that product if it isn't produced in those sizes. The predefined product attribute values just provide a quick way to add a set of values to a product but once they've been added there's no link back to the predefined values so changes to the product's attribute values occur independently.

Hi,
thank you for the response. However as I have written, i am removing options 6 to 15, and yet they still appear in the dropdown list.
3 years ago
sdyankov wrote:
thank you for the response. However as I have written, i am removing options 6 to 15, and yet they still appear in the dropdown list.

From your first post it doesn't sound like you are removing the product attribute values from the product, it just sounds like you haven't defined any product attribute combinations that use those values.

For example on this page on the nop demo site: http://admin-demo.nopcommerce.com/Admin/Product/Edit/25 click on the Product Attributes tab, then on the Attributes tab (NOT the attribute combinations tab) click on the View/edit values link. That takes you to this page where you can delete the attribute values that don't apply to that product.

Another possibility is that you mentioned the product is set to track inventory by quantity, but there's actually another option called Track inventory by product attributes which is what you probably want to be using. When this is selected it also enables another checkbox called Allow only existing attribute combinations which may be what you want, but is generally only required when you have more than 1 product attribute to form the attribute combinations.
2 years ago
Hi,

Is there any solution for this in nopcommerce 4.0?

I'm facing the same issue and it would be nice to have this implemented out of the box. I'm using Track Inventory for Product Attributes and I created the "Size" attribute. I added only 1 attribute combination with let's say size 50 (with quantity 2). "Allow out of stock" was set to false. Still, all the other attribute options (sizes) are visible on the product detail page (in the drop down). Of course I cannot add them to the cart - there is Out of Stock message, however it's not user friendly to present sizes in the drop down that are actually not available.

In my opinion, the dropdown for size should be only showing available attribute options (those where Quantity is above 0) - at least when specific Nopcommerce configuration setting is enabled. Setting like "Hide out of stock attribute options in drop down".

It may be more complex for combinations involving multiple attributes, but in many cases we have only one attribute (like size/color) - for which it should be pretty easy to implement.

I see that many users reported similiar issues - eg. https://nopcommerce.codeplex.com/workitem/11907, https://www.nopcommerce.com/boards/t/28267/how-to-show-out-of-stock-in-dropdown-product-attribute-value-combinations-32.aspx?p=6.

Unfortunately the solution suggested in this thread doesn't address the reported issue.
Do we already have an elegant solution for this?

Thank you!
1 year ago
Hi there,

As I can see, there is nothing new in Nop 4.10 regarding this issue. Product that are out of stock are still showing on drop down menu.

How to solve this, does anybody know?
1 year ago
The best way to solve the problem is when you solve it by yourself :-)

Finally, we managed to force NopCommerce to show/hide Product Attributes Out of Stock before you select one.
That was very painful/annoying feature for those who track inventory by product attributes e.g. apparel stores.

Right now we did not create plugin for that yet, but if somebody need that possibility, feel free to contact me over PM.
1 year ago
bzass wrote:
Hi,

Is there any solution for this in nopcommerce 4.0?

I'm facing the same issue and it would be nice to have this implemented out of the box. I'm using Track Inventory for Product Attributes and I created the "Size" attribute. I added only 1 attribute combination with let's say size 50 (with quantity 2). "Allow out of stock" was set to false. Still, all the other attribute options (sizes) are visible on the product detail page (in the drop down). Of course I cannot add them to the cart - there is Out of Stock message, however it's not user friendly to present sizes in the drop down that are actually not available.

In my opinion, the dropdown for size should be only showing available attribute options (those where Quantity is above 0) - at least when specific Nopcommerce configuration setting is enabled. Setting like "Hide out of stock attribute options in drop down".

It may be more complex for combinations involving multiple attributes, but in many cases we have only one attribute (like size/color) - for which it should be pretty easy to implement.

I see that many users reported similiar issues - eg. https://nopcommerce.codeplex.com/workitem/11907, https://www.nopcommerce.com/boards/t/28267/how-to-show-out-of-stock-in-dropdown-product-attribute-value-combinations-32.aspx?p=6.

Unfortunately the solution suggested in this thread doesn't address the reported issue.
Do we already have an elegant solution for this?

Thank you!


Here is plugin that can solve your problem
https://www.nopcommerce.com/p/3339/product-attribute-out-of-stock-plugin.aspx

Regards,
Dario
1 year ago
It's possible in version 3.7?