Using Magento 2.1.7 - Stock fustration
Hi, I need to be able to access on a category view each of the products stock qty.
I need this so I can then display a particular icon against each product dependant on the value. If 0 show an out of stock icon, else, show an in stock icon which wont be a problem but accessing the stock details from the product collection is baffling me.
Any pointers would be very gratefully received.