Hi,
Right now I have enabled the X left Threshold in Magento 2 which will show the qty left if I have less than 10 items in stock.
But I also what to display >10 in stock or >50 in stock.
I have been trying to do this, but could not figure out how.
Does anyone have an idea how to do this?
Solved! Go to Solution.
Hi @robertbits ,
This information is rendering on the product page from below Phtml file
\vendor\magento\module-catalog-inventory\view\frontend\templates\stockqty\default.phtml
Override this file in your custom theme
\app\design\frontend\ThemeVendor\ThemeName\Magento_CatalogInventory\templates\stockqty\default.phtml
Add your conditions in the above phtml file.
In admin,
Hope this helps you!
Problem Solved! Click Kudos & Accept as Solution!
Hi @robertbits ,
This information is rendering on the product page from below Phtml file
\vendor\magento\module-catalog-inventory\view\frontend\templates\stockqty\default.phtml
Override this file in your custom theme
\app\design\frontend\ThemeVendor\ThemeName\Magento_CatalogInventory\templates\stockqty\default.phtml
Add your conditions in the above phtml file.
In admin,
Hope this helps you!
Problem Solved! Click Kudos & Accept as Solution!
@Nishu Jindal Thanks for your help I really appreciate it. What I was doing wrong was that I didn't change the X threshold qty