cancel
Showing results for 
Search instead for 
Did you mean: 

Display "Only X left" for Configurable Products

Display "Only X left" for Configurable Products

Hi,

I am trying to display "Only X left" message for configurable products. I have enabled the setting in STORES >  CONFIGURATION > CATALOG > INVENTORY > STOCK OPTIONS > ONLY X LEFT THRESHOLD

 

in fact, in simple products it shows as it should, but in configurable products, it does not show.

 

Does anyone have a solution for this?

3 REPLIES 3

Re: Display "Only X left" for Configurable Products

Hi @robertbits ,

 

Can you please check below link for your requirement.

https://www.ecomsolver.com/blog/how-to-show-x-left-in-configurable-product-in-magento-2/

 

Hope this helps you!

Problem Solved! Click Kudos & Accept as Solution!

Re: Display "Only X left" for Configurable Products

@Nishu Jindal 

Thanks for your reply. To tell you the truth before I posted here I have found that article, but could not figure out in what files I need to set the code.

 

So if you have any idea what files I need to change with this code I really appreciate it.

Re: Display "Only X left" for Configurable Products

Hi @robertbits ,

 

I tried that code but unfortunately, that was not working for me as well. But I have found one extension for you according to your requirement.

 

https://marketplace.magento.com/sunarc-module-configurableqty.html

 

 

Hope this helps you!

Problem Solved! Click Kudos & Accept as Solution!