cancel
Showing results for 
Search instead for 
Did you mean: 

Show if selected configurable product is in stock or not

Show if selected configurable product is in stock or not

Hello

 

Within my M2 shop I show the customers if a product is in stock or not. (no stock count, just in stock or out of stock).

 

Now if i have a lot of configurable products with a single dropdown to choose the size. If the customers changes the selection I would like to update the stock state.

 

My problem is, I don't know how to attach the event on the dropdown when something changes and how to get the selected product to update my div which holds the stock state/availability state.

 

I'd appreciate your help.

1 REPLY 1

Re: Show if selected configurable product is in stock or not

Here you see what I mean:

stock_state_m2.JPG