Hello!
I’m designing a website for a client, and I need to display when a product is out of stock.
I’ve tried two of the suggested methods i’ve found in the forum- This one and this one
I believe the issue must be related to the fact that i’m bulding a custom layout, and when I call the product featured image, it is not necessarily calling the ‘stock’ attribute. Hence the ribbon, or CSS declared ‘sold out’ text isn’t showing.
Is there a way to give the Product Featured Image a custom attribute that will call the ‘stock’ variable? Or is there any other suggested way to make this work?
Thanks beforehand!