I have an issue with displaying product custom attributes. I've read every resources through google but still no success. The problem is that I have to show size attribute of configurable product on category grid and list view. Every solution on google suggested something like
$_product->getAttributeText('size')
but I ended up at just a single string - "S" or "M" instead of an array. How can I fetch all possible sizes of all simple products which belongs to particular configurable product without much hassle?
UPDATE
Joseph Mastey tarafından önerilen çözümü kullandıktan sonra başka bir sorunla karşılaştı. Ben öznitelik için mümkün olan tüm seçenekleri göstermek için başardı, ama şimdi satın mevcuttur sadece bu seçenekleri göstermek gerekir. T-shirt boyutu L stokta olan veya özürlü Örneğin, L seçeneği gösterilir edilmemelidir. Bu sorunu nasıl çözebilirim?